2014-02-03 17:14:46 +00:00
|
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
2016-08-18 04:49:19 +00:00
|
|
|
|
from wagtail import __version__
|
2020-10-13 12:53:25 +00:00
|
|
|
|
from wagtail.utils.setup import assets, check_bdist_egg, sdist
|
2014-07-01 13:35:10 +00:00
|
|
|
|
|
2014-02-07 15:39:59 +00:00
|
|
|
|
try:
|
2020-10-16 14:55:15 +00:00
|
|
|
|
from setuptools import find_packages, setup
|
2014-02-07 15:39:59 +00:00
|
|
|
|
except ImportError:
|
|
|
|
|
from distutils.core import setup
|
2014-02-03 17:14:46 +00:00
|
|
|
|
|
2014-02-07 18:12:06 +00:00
|
|
|
|
|
2014-09-10 16:37:57 +00:00
|
|
|
|
# Hack to prevent "TypeError: 'NoneType' object is not callable" error
|
|
|
|
|
# in multiprocessing/util.py _exit_function when setup.py exits
|
|
|
|
|
# (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
|
2014-02-07 18:12:06 +00:00
|
|
|
|
try:
|
2020-10-02 15:56:26 +00:00
|
|
|
|
import multiprocessing # noqa
|
2014-02-07 18:12:06 +00:00
|
|
|
|
except ImportError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2014-07-01 13:35:10 +00:00
|
|
|
|
install_requires = [
|
2022-01-07 10:32:22 +00:00
|
|
|
|
"Django>=3.2,<4.1",
|
2022-03-11 14:05:16 +00:00
|
|
|
|
"django-modelcluster>=6.0,<7.0",
|
2022-03-01 13:50:23 +00:00
|
|
|
|
"django-permissionedforms>=0.1,<1.0",
|
2022-05-02 13:47:48 +00:00
|
|
|
|
"django-taggit>=2.0,<4.0",
|
2022-02-15 06:52:42 +00:00
|
|
|
|
"django-treebeard>=4.5.1,<5.0",
|
2020-08-06 00:40:14 +00:00
|
|
|
|
"djangorestframework>=3.11.1,<4.0",
|
2022-06-22 10:03:31 +00:00
|
|
|
|
"django-filter>=2.2,<23",
|
2018-11-20 16:14:36 +00:00
|
|
|
|
"draftjs_exporter>=2.1.5,<3.0",
|
2022-01-07 16:52:24 +00:00
|
|
|
|
"Pillow>=4.0.0,<10.0.0",
|
2022-07-05 10:56:28 +00:00
|
|
|
|
"beautifulsoup4>=4.8,<4.12",
|
2018-04-12 10:56:50 +00:00
|
|
|
|
"html5lib>=0.999,<2",
|
2020-06-09 08:29:48 +00:00
|
|
|
|
"Willow>=1.4,<1.5",
|
2016-11-08 19:23:35 +00:00
|
|
|
|
"requests>=2.11.1,<3.0",
|
2019-09-06 11:30:07 +00:00
|
|
|
|
"l18n>=2018.5",
|
2021-08-10 16:25:30 +00:00
|
|
|
|
"xlsxwriter>=1.2.8,<4.0",
|
2020-05-11 17:19:20 +00:00
|
|
|
|
"tablib[xls,xlsx]>=0.14.0",
|
2020-07-20 00:41:07 +00:00
|
|
|
|
"anyascii>=0.1.5",
|
2021-04-22 15:18:49 +00:00
|
|
|
|
"telepath>=0.1.1,<1",
|
2014-07-01 13:35:10 +00:00
|
|
|
|
]
|
|
|
|
|
|
2016-02-03 01:56:48 +00:00
|
|
|
|
# Testing dependencies
|
|
|
|
|
testing_extras = [
|
|
|
|
|
# Required for running the tests
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"python-dateutil>=2.7",
|
|
|
|
|
"pytz>=2014.7",
|
|
|
|
|
"elasticsearch>=5.0,<6.0",
|
2022-03-25 04:24:06 +00:00
|
|
|
|
"Jinja2>=3.0,<3.2",
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"boto3>=1.16,<1.17",
|
|
|
|
|
"freezegun>=0.3.8",
|
|
|
|
|
"openpyxl>=2.6.4",
|
|
|
|
|
"azure-mgmt-cdn>=5.1,<6.0",
|
|
|
|
|
"azure-mgmt-frontdoor>=0.3,<0.4",
|
2022-02-18 15:34:33 +00:00
|
|
|
|
"django-pattern-library>=0.7,<0.8",
|
2016-02-03 01:56:48 +00:00
|
|
|
|
# For coverage and PEP8 linting
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"coverage>=3.7.0",
|
2022-03-29 16:44:14 +00:00
|
|
|
|
"black==22.3.0",
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"flake8>=3.6.0",
|
|
|
|
|
"isort==5.6.4", # leave this pinned - it tends to change rules between patch releases
|
|
|
|
|
"flake8-blind-except==0.1.1",
|
|
|
|
|
"flake8-comprehensions==3.8.0",
|
|
|
|
|
"flake8-print==2.0.2",
|
|
|
|
|
"doc8==0.8.1",
|
|
|
|
|
"flake8-assertive==2.0.0",
|
2019-04-23 11:58:58 +00:00
|
|
|
|
# For templates linting
|
2022-03-30 11:27:48 +00:00
|
|
|
|
"curlylint==0.13.1",
|
2022-02-12 01:04:21 +00:00
|
|
|
|
# For template indenting
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"djhtml==1.4.13",
|
2021-10-14 14:05:36 +00:00
|
|
|
|
# for validating string formats in .po translation files
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"polib>=1.1,<2.0",
|
2016-02-03 01:56:48 +00:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Documentation dependencies
|
|
|
|
|
documentation_extras = [
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"pyenchant>=3.1.1,<4",
|
|
|
|
|
"sphinxcontrib-spelling>=5.4.0,<6",
|
|
|
|
|
"Sphinx>=1.5.2",
|
|
|
|
|
"sphinx-autobuild>=0.6.0",
|
2022-04-07 21:43:15 +00:00
|
|
|
|
"sphinx-wagtail-theme==5.1.1",
|
2022-03-09 11:48:19 +00:00
|
|
|
|
"myst_parser==0.17.0",
|
2016-02-03 01:56:48 +00:00
|
|
|
|
]
|
2014-07-01 13:35:10 +00:00
|
|
|
|
|
2014-02-03 17:14:46 +00:00
|
|
|
|
setup(
|
2022-02-14 13:25:00 +00:00
|
|
|
|
name="wagtail",
|
2014-09-09 11:57:01 +00:00
|
|
|
|
version=__version__,
|
2022-02-14 13:25:00 +00:00
|
|
|
|
description="A Django content management system.",
|
|
|
|
|
author="Wagtail core team + contributors",
|
|
|
|
|
author_email="hello@wagtail.org", # For support queries, please see https://docs.wagtail.org/en/stable/support.html
|
|
|
|
|
url="https://wagtail.org/",
|
2022-03-04 16:12:54 +00:00
|
|
|
|
project_urls={
|
|
|
|
|
"Documentation": "https://docs.wagtail.org",
|
|
|
|
|
"Source": "https://github.com/wagtail/wagtail",
|
|
|
|
|
},
|
2014-02-07 18:12:06 +00:00
|
|
|
|
packages=find_packages(),
|
|
|
|
|
include_package_data=True,
|
2022-02-14 13:25:00 +00:00
|
|
|
|
license="BSD",
|
2018-03-14 13:59:02 +00:00
|
|
|
|
long_description="Wagtail is an open source content management \
|
|
|
|
|
system built on Django, with a strong community and commercial support. \
|
|
|
|
|
It’s focused on user experience, and offers precise control for \
|
|
|
|
|
designers and developers.\n\n\
|
2022-02-02 10:39:14 +00:00
|
|
|
|
For more details, see https://wagtail.org, https://docs.wagtail.org and \
|
2018-03-14 13:59:02 +00:00
|
|
|
|
https://github.com/wagtail/wagtail/.",
|
2014-02-07 15:39:59 +00:00
|
|
|
|
classifiers=[
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
|
"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 :: Wagtail",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: Site Management",
|
2014-02-07 15:39:59 +00:00
|
|
|
|
],
|
2022-02-14 13:25:00 +00:00
|
|
|
|
python_requires=">=3.7",
|
2014-07-01 13:35:10 +00:00
|
|
|
|
install_requires=install_requires,
|
2022-02-14 13:25:00 +00:00
|
|
|
|
extras_require={"testing": testing_extras, "docs": documentation_extras},
|
2014-06-19 11:16:22 +00:00
|
|
|
|
entry_points="""
|
|
|
|
|
[console_scripts]
|
2014-07-31 09:31:00 +00:00
|
|
|
|
wagtail=wagtail.bin.wagtail:main
|
2014-06-19 11:16:22 +00:00
|
|
|
|
""",
|
2014-02-07 18:12:06 +00:00
|
|
|
|
zip_safe=False,
|
2015-04-23 01:11:49 +00:00
|
|
|
|
cmdclass={
|
2022-02-14 13:25:00 +00:00
|
|
|
|
"sdist": sdist,
|
|
|
|
|
"bdist_egg": check_bdist_egg,
|
|
|
|
|
"assets": assets,
|
2015-04-23 01:11:49 +00:00
|
|
|
|
},
|
2014-02-07 15:39:59 +00:00
|
|
|
|
)
|