From 10f419c348530b4237900a8f79de45b420837cca Mon Sep 17 00:00:00 2001 From: Ross Clark Date: Fri, 11 Aug 2023 14:41:27 +0100 Subject: [PATCH 1/2] fix compatibility for wagtail 3 --- setup.py | 36 ++++++++++++++++++++++++++++++++ test_page/models.py | 2 +- wagtailreacttaxonomy/__init__.py | 2 +- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e29e90f --- /dev/null +++ b/setup.py @@ -0,0 +1,36 @@ +from os import path +from setuptools import find_packages, setup +from wagtailreacttaxonomy 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-reacttaxonomy', + version=__VERSION__, + packages=find_packages(), + include_package_data=True, + license='MIT', + url='https://github.com/nhsuk/wagtail-reacttaxonomy', + description='Add React Taxonomy component to a wagtail page and store it as a json in the db', + long_description=long_description, + long_description_content_type='text/markdown', + author='Yohan Lebret', + author_email='yohan.lebret@gmail.com', + classifiers=[ + 'Environment :: Web Environment', + 'Framework :: Django', + 'Framework :: Django :: 4.0', + 'Framework :: Wagtail', + 'Framework :: Wagtail :: 3.0.3', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Topic :: Internet :: WWW/HTTP', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', + ], +) \ No newline at end of file diff --git a/test_page/models.py b/test_page/models.py index 949d0b2..f7798f3 100644 --- a/test_page/models.py +++ b/test_page/models.py @@ -67,4 +67,4 @@ class TaxTestPage(Page, TaxonomyMixin): ObjectList(taxonomy_term_panels, heading='Taxonomy'), ]) -pre_save.connect(format_permissions_json, sender=TestModel) \ No newline at end of file +pre_save.connect(format_permissions_json, sender=TestModel) diff --git a/wagtailreacttaxonomy/__init__.py b/wagtailreacttaxonomy/__init__.py index 4310a47..1b2e78a 100644 --- a/wagtailreacttaxonomy/__init__.py +++ b/wagtailreacttaxonomy/__init__.py @@ -1 +1 @@ -__VERSION__ = '0.1' +__VERSION__ = '0.00.01' From be80ac403a191e468bf89294526c77566958548f Mon Sep 17 00:00:00 2001 From: Ross Clark Date: Fri, 11 Aug 2023 14:54:18 +0100 Subject: [PATCH 2/2] setup changes --- pyproject.toml | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 17ea8d9..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,44 +0,0 @@ -[build-system] -requires = [ - "setuptools>=61.2", -] -build-backend = "setuptools.build_meta" - -[project] -name = "wagtail-reacttaxonomy" -version = "0.1" -authors = [ - { name = "Yohan Lebret", email = "yohan.lebret@gmail.com" }, -] -description = "Add React Taxonomy component to a wagtail page and store it as a json in the db" -classifiers = [ - "Environment :: Web Environment", - "Framework :: Django", - "Framework :: Django :: 4.0", - "Framework :: Wagtail", - "Framework :: Wagtail :: 3", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Topic :: Internet :: WWW/HTTP", - "Topic :: Internet :: WWW/HTTP :: Dynamic Content", -] - -[project.license] -text = "MIT" - -[project.readme] -file = "README.md" -content-type = "text/markdown" - -[project.urls] -Homepage = "https://github.com/nhsuk/wagtail-reacttaxonomy" - -[tool.setuptools] -include-package-data = true - -[tool.setuptools.packages.find] -namespaces = false \ No newline at end of file