setup.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.1.3,<4.0",
  22. "draftjs_exporter>=2.0,<2.1",
  23. "Pillow>=2.6.1,<5.0",
  24. "beautifulsoup4>=4.5.1,<5.0",
  25. "html5lib>=0.999,<1",
  26. "Unidecode>=0.04.14,<1.0",
  27. "Willow>=1.1,<1.2",
  28. "requests>=2.11.1,<3.0",
  29. ]
  30. # Testing dependencies
  31. testing_extras = [
  32. # Required for running the tests
  33. 'mock>=1.0.0',
  34. 'python-dateutil>=2.2',
  35. 'pytz>=2014.7',
  36. 'Pillow>=2.7.0',
  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 focused on flexibility and user experience',
  60. author='Matthew Westcott',
  61. author_email='matthew.westcott@torchbox.com',
  62. url='http://wagtail.io/',
  63. packages=find_packages(),
  64. include_package_data=True,
  65. license='BSD',
  66. long_description=open('README.rst').read(),
  67. classifiers=[
  68. 'Development Status :: 5 - Production/Stable',
  69. 'Environment :: Web Environment',
  70. 'Intended Audience :: Developers',
  71. 'License :: OSI Approved :: BSD License',
  72. 'Operating System :: OS Independent',
  73. 'Programming Language :: Python',
  74. 'Programming Language :: Python :: 3',
  75. 'Programming Language :: Python :: 3.4',
  76. 'Programming Language :: Python :: 3.5',
  77. 'Programming Language :: Python :: 3.6',
  78. 'Framework :: Django',
  79. 'Framework :: Django :: 1.11',
  80. 'Framework :: Django :: 2.0',
  81. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  82. ],
  83. install_requires=install_requires,
  84. extras_require={
  85. 'testing': testing_extras,
  86. 'docs': documentation_extras
  87. },
  88. entry_points="""
  89. [console_scripts]
  90. wagtail=wagtail.bin.wagtail:main
  91. """,
  92. zip_safe=False,
  93. cmdclass={
  94. 'sdist': sdist,
  95. 'bdist_egg': check_bdist_egg,
  96. 'assets': assets,
  97. },
  98. )