setup.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #!/usr/bin/env python
  2. import sys
  3. from wagtail import __version__
  4. from wagtail.utils.setup import assets, sdist, check_bdist_egg
  5. try:
  6. from setuptools import setup, find_packages
  7. except ImportError:
  8. from distutils.core import setup
  9. # Hack to prevent "TypeError: 'NoneType' object is not callable" error
  10. # in multiprocessing/util.py _exit_function when setup.py exits
  11. # (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
  12. try:
  13. import multiprocessing
  14. except ImportError:
  15. pass
  16. install_requires = [
  17. "Django>=1.11,<2.1",
  18. "django-modelcluster>=4.0,<5.0",
  19. "django-taggit>=0.22.2,<1.0",
  20. "django-treebeard>=4.2.0,<5.0",
  21. "djangorestframework>=3.7.4,<4.0",
  22. "draftjs_exporter>=2.0,<3.0",
  23. "Pillow>=4.0.0,<6.0",
  24. "beautifulsoup4>=4.5.1,<4.6.1",
  25. "html5lib>=0.999,<2",
  26. "Unidecode>=0.04.14,<2.0",
  27. "Willow>=1.1,<1.2",
  28. "requests>=2.11.1,<3.0",
  29. "pytz>=2016.6", # for l18n
  30. "six>=1.11,<2.0", # for l18n
  31. ]
  32. # Testing dependencies
  33. testing_extras = [
  34. # Required for running the tests
  35. 'mock>=1.0.0',
  36. 'python-dateutil>=2.2',
  37. 'pytz>=2014.7',
  38. 'elasticsearch>=1.0.0,<3.0',
  39. 'Jinja2>=2.8,<3.0',
  40. 'boto3>=1.4,<1.5',
  41. 'freezegun>=0.3.8',
  42. # For coverage and PEP8 linting
  43. 'coverage>=3.7.0',
  44. 'flake8>=2.2.0',
  45. 'isort==4.2.5',
  46. 'flake8-blind-except==0.1.1',
  47. 'flake8-print==2.0.2',
  48. ]
  49. # Documentation dependencies
  50. documentation_extras = [
  51. 'pyenchant==1.6.8',
  52. 'sphinxcontrib-spelling>=2.3.0',
  53. 'Sphinx>=1.5.2',
  54. 'sphinx-autobuild>=0.6.0',
  55. 'sphinx_rtd_theme>=0.1.9',
  56. ]
  57. setup(
  58. name='wagtail',
  59. version=__version__,
  60. description='A Django content management system.',
  61. author='Wagtail core team + contributors',
  62. author_email='hello@wagtail.io', # For support queries, please see http://docs.wagtail.io/en/stable/support.html
  63. url='http://wagtail.io/',
  64. packages=find_packages(),
  65. include_package_data=True,
  66. license='BSD',
  67. long_description="Wagtail is an open source content management \
  68. system built on Django, with a strong community and commercial support. \
  69. It’s focused on user experience, and offers precise control for \
  70. designers and developers.\n\n\
  71. For more details, see https://wagtail.io, http://docs.wagtail.io and \
  72. https://github.com/wagtail/wagtail/.",
  73. classifiers=[
  74. 'Development Status :: 5 - Production/Stable',
  75. 'Environment :: Web Environment',
  76. 'Intended Audience :: Developers',
  77. 'License :: OSI Approved :: BSD License',
  78. 'Operating System :: OS Independent',
  79. 'Programming Language :: Python',
  80. 'Programming Language :: Python :: 3',
  81. 'Programming Language :: Python :: 3.4',
  82. 'Programming Language :: Python :: 3.5',
  83. 'Programming Language :: Python :: 3.6',
  84. 'Framework :: Django',
  85. 'Framework :: Django :: 1.11',
  86. 'Framework :: Django :: 2.0',
  87. 'Framework :: Wagtail',
  88. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  89. ],
  90. install_requires=install_requires,
  91. extras_require={
  92. 'testing': testing_extras,
  93. 'docs': documentation_extras
  94. },
  95. entry_points="""
  96. [console_scripts]
  97. wagtail=wagtail.bin.wagtail:main
  98. """,
  99. zip_safe=False,
  100. cmdclass={
  101. 'sdist': sdist,
  102. 'bdist_egg': check_bdist_egg,
  103. 'assets': assets,
  104. },
  105. )