diff --git a/.circleci/config.yml b/.circleci/config.yml index 682e74d..e21da58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,8 @@ jobs: - pip-{{ .Branch }}- - pip-main- - - run: pip install -e .[testing] + - run: pip install flit + - run: flit install --deps production --extras testing - type: cache-save key: pip-{{ .Branch }}-{{ epoch }} @@ -36,7 +37,8 @@ jobs: - checkout - run: git clone git@github.com:wagtail/wagtail.git - - run: pip install -e .[testing] + - run: pip install flit + - run: flit install --deps production --extras testing - run: pip install ./wagtail - run: python testmanage.py test diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 19c7bdb..0000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -16 \ No newline at end of file diff --git a/.prettierrc.toml b/.prettierrc.toml deleted file mode 100644 index 009474b..0000000 --- a/.prettierrc.toml +++ /dev/null @@ -1,2 +0,0 @@ -tabWidth = 4 -singleQuote = true diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..24e25e0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,56 @@ +[build-system] +requires = ["flit_core >=3.2,<4"] +build-backend = "flit_core.buildapi" + +[project] +name = "wagtail-editable-help" +authors = [{name = "Matt Westcott", email = "matthew@torchbox.com"}] +description = "Make help text editable in the Wagtail admin" +readme = "README.md" +license = {file = "LICENSE"} +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Framework :: Django", + "Framework :: Django :: 3.2", + "Framework :: Django :: 4.0", + "Framework :: Django :: 4.1", + "Framework :: Wagtail", + "Framework :: Wagtail :: 2", + "Framework :: Wagtail :: 3", + "Framework :: Wagtail :: 4" +] +dynamic = ["version"] +requires-python = ">=3.7" +dependencies = [ + "Django>=3.0,<4.2", + "wagtail>=2.15,<5", + "telepath>=0.3,<1" +] + +[project.optional-dependencies] +testing = [ + "dj-database-url==0.5.0", + "freezegun==0.3.15" +] + +[project.urls] +Source = "https://github.com/wagtail/wagtail-editable-help" +Documentation = "https://github.com/wagtail/wagtail-editable-help#readme" + +[tool.flit.module] +name = "wagtail_editable_help" + +[tool.flit.sdist] +exclude = [ + "wagtail_editable_help/test", + "testmanage.py", +] diff --git a/setup.py b/setup.py deleted file mode 100644 index 923a26e..0000000 --- a/setup.py +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env python - -from os import path - -from setuptools import find_packages, setup - -from wagtail_editable_help import __version__ - - -this_directory = path.abspath(path.dirname(__file__)) -with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: - long_description = f.read() - -setup( - name="wagtail-editable-help", - version=__version__, - description="Make help text editable in the Wagtail admin", - long_description=long_description, - long_description_content_type='text/markdown', - author="Matt Westcott", - author_email="matthew@torchbox.com", - url="", - packages=find_packages(), - include_package_data=True, - license="BSD", - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Framework :: Django", - "Framework :: Django :: 3.2", - "Framework :: Django :: 4.0", - "Framework :: Django :: 4.1", - "Framework :: Wagtail", - "Framework :: Wagtail :: 2", - "Framework :: Wagtail :: 3", - ], - install_requires=[ - "Django>=3.0,<4.2", - "wagtail>=2.15,<5", - "telepath>=0.3,<1", - ], - extras_require={ - "testing": ["dj-database-url==0.5.0", "freezegun==0.3.15"], - }, - zip_safe=False, -)