2
0

setup.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #!/usr/bin/env python
  2. from wagtail import __version__
  3. from wagtail.utils.setup import assets, check_bdist_egg, sdist
  4. try:
  5. from setuptools import find_packages, setup
  6. except ImportError:
  7. from distutils.core import setup
  8. # Hack to prevent "TypeError: 'NoneType' object is not callable" error
  9. # in multiprocessing/util.py _exit_function when setup.py exits
  10. # (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
  11. try:
  12. import multiprocessing # noqa
  13. except ImportError:
  14. pass
  15. install_requires = [
  16. "Django>=2.2,<3.2",
  17. "django-modelcluster>=5.1,<6.0",
  18. "django-taggit>=1.0,<2.0",
  19. "django-treebeard>=4.2.0,<5.0",
  20. "djangorestframework>=3.11.1,<4.0",
  21. "django-filter>=2.2,<3.0",
  22. "draftjs_exporter>=2.1.5,<3.0",
  23. "Pillow>=4.0.0,<9.0.0",
  24. "beautifulsoup4>=4.8,<4.9",
  25. "html5lib>=0.999,<2",
  26. "Willow>=1.4,<1.5",
  27. "requests>=2.11.1,<3.0",
  28. "l18n>=2018.5",
  29. "xlsxwriter>=1.2.8,<2.0",
  30. "tablib[xls,xlsx]>=0.14.0",
  31. "anyascii>=0.1.5",
  32. ]
  33. # Testing dependencies
  34. testing_extras = [
  35. # Required for running the tests
  36. 'python-dateutil>=2.2',
  37. 'pytz>=2014.7',
  38. 'elasticsearch>=5.0,<6.0',
  39. 'Jinja2>=2.8,<3.0',
  40. 'boto3>=1.16,<1.17',
  41. 'freezegun>=0.3.8',
  42. 'openpyxl>=2.6.4',
  43. 'Unidecode>=0.04.14,<2.0',
  44. # For coverage and PEP8 linting
  45. 'coverage>=3.7.0',
  46. 'flake8>=3.6.0',
  47. 'isort==5.6.4', # leave this pinned - it tends to change rules between patch releases
  48. 'flake8-blind-except==0.1.1',
  49. 'flake8-print==2.0.2',
  50. 'doc8==0.8.1',
  51. # For templates linting
  52. 'jinjalint>=0.5',
  53. # Pipenv hack to fix broken dependency causing CircleCI failures
  54. 'docutils==0.15',
  55. # django-taggit 1.3.0 made changes to verbose_name which affect migrations;
  56. # the test suite migrations correspond to >=1.3.0
  57. 'django-taggit>=1.3.0,<2.0',
  58. ]
  59. # Documentation dependencies
  60. documentation_extras = [
  61. 'pyenchant>=3.1.1,<4',
  62. 'sphinxcontrib-spelling>=5.4.0,<6',
  63. 'Sphinx>=1.5.2',
  64. 'sphinx-autobuild>=0.6.0',
  65. 'sphinx_rtd_theme>=0.1.9',
  66. ]
  67. setup(
  68. name='wagtail',
  69. version=__version__,
  70. description='A Django content management system.',
  71. author='Wagtail core team + contributors',
  72. author_email='hello@wagtail.io', # For support queries, please see https://docs.wagtail.io/en/stable/support.html
  73. url='https://wagtail.io/',
  74. packages=find_packages(),
  75. include_package_data=True,
  76. license='BSD',
  77. long_description="Wagtail is an open source content management \
  78. system built on Django, with a strong community and commercial support. \
  79. It’s focused on user experience, and offers precise control for \
  80. designers and developers.\n\n\
  81. For more details, see https://wagtail.io, https://docs.wagtail.io and \
  82. https://github.com/wagtail/wagtail/.",
  83. classifiers=[
  84. 'Development Status :: 5 - Production/Stable',
  85. 'Environment :: Web Environment',
  86. 'Intended Audience :: Developers',
  87. 'License :: OSI Approved :: BSD License',
  88. 'Operating System :: OS Independent',
  89. 'Programming Language :: Python',
  90. 'Programming Language :: Python :: 3',
  91. 'Programming Language :: Python :: 3.6',
  92. 'Programming Language :: Python :: 3.7',
  93. 'Programming Language :: Python :: 3.8',
  94. 'Programming Language :: Python :: 3.9',
  95. 'Framework :: Django',
  96. 'Framework :: Django :: 2.2',
  97. 'Framework :: Django :: 3.0',
  98. 'Framework :: Django :: 3.1',
  99. 'Framework :: Wagtail',
  100. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  101. ],
  102. python_requires='>=3.6',
  103. install_requires=install_requires,
  104. extras_require={
  105. 'testing': testing_extras,
  106. 'docs': documentation_extras
  107. },
  108. entry_points="""
  109. [console_scripts]
  110. wagtail=wagtail.bin.wagtail:main
  111. """,
  112. zip_safe=False,
  113. cmdclass={
  114. 'sdist': sdist,
  115. 'bdist_egg': check_bdist_egg,
  116. 'assets': assets,
  117. },
  118. )