setup.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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,<5.0",
  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. "l18n",
  30. ]
  31. # Testing dependencies
  32. testing_extras = [
  33. # Required for running the tests
  34. 'mock>=1.0.0',
  35. 'python-dateutil>=2.2',
  36. 'pytz>=2014.7',
  37. 'elasticsearch>=1.0.0,<3.0',
  38. 'Jinja2>=2.8,<3.0',
  39. 'boto3>=1.4,<1.5',
  40. 'freezegun>=0.3.8',
  41. # For coverage and PEP8 linting
  42. 'coverage>=3.7.0',
  43. 'flake8>=2.2.0',
  44. 'isort==4.2.5',
  45. 'flake8-blind-except==0.1.1',
  46. 'flake8-print==2.0.2',
  47. ]
  48. # Documentation dependencies
  49. documentation_extras = [
  50. 'pyenchant==1.6.8',
  51. 'sphinxcontrib-spelling>=2.3.0',
  52. 'Sphinx>=1.5.2',
  53. 'sphinx-autobuild>=0.6.0',
  54. 'sphinx_rtd_theme>=0.1.9',
  55. ]
  56. setup(
  57. name='wagtail',
  58. version=__version__,
  59. description='A Django content management system.',
  60. author='Wagtail core team + contributors',
  61. author_email='hello@wagtail.io', # For support queries, please see http://docs.wagtail.io/en/stable/support.html
  62. url='http://wagtail.io/',
  63. packages=find_packages(),
  64. include_package_data=True,
  65. license='BSD',
  66. long_description="Wagtail is an open source content management \
  67. system built on Django, with a strong community and commercial support. \
  68. It’s focused on user experience, and offers precise control for \
  69. designers and developers.\n\n\
  70. For more details, see https://wagtail.io, http://docs.wagtail.io and \
  71. https://github.com/wagtail/wagtail/.",
  72. classifiers=[
  73. 'Development Status :: 5 - Production/Stable',
  74. 'Environment :: Web Environment',
  75. 'Intended Audience :: Developers',
  76. 'License :: OSI Approved :: BSD License',
  77. 'Operating System :: OS Independent',
  78. 'Programming Language :: Python',
  79. 'Programming Language :: Python :: 3',
  80. 'Programming Language :: Python :: 3.4',
  81. 'Programming Language :: Python :: 3.5',
  82. 'Programming Language :: Python :: 3.6',
  83. 'Framework :: Django',
  84. 'Framework :: Django :: 1.11',
  85. 'Framework :: Django :: 2.0',
  86. 'Framework :: Wagtail',
  87. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  88. ],
  89. install_requires=install_requires,
  90. extras_require={
  91. 'testing': testing_extras,
  92. 'docs': documentation_extras
  93. },
  94. entry_points="""
  95. [console_scripts]
  96. wagtail=wagtail.bin.wagtail:main
  97. """,
  98. zip_safe=False,
  99. cmdclass={
  100. 'sdist': sdist,
  101. 'bdist_egg': check_bdist_egg,
  102. 'assets': assets,
  103. },
  104. )