2
0

setup.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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,<2.1",
  23. "Pillow>=4.0.0,<6.0",
  24. "beautifulsoup4>=4.5.1,<4.6.1",
  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. 'elasticsearch>=1.0.0,<3.0',
  37. 'Jinja2>=2.8,<3.0',
  38. 'boto3>=1.4,<1.5',
  39. 'freezegun>=0.3.8',
  40. # For coverage and PEP8 linting
  41. 'coverage>=3.7.0',
  42. 'flake8>=2.2.0',
  43. 'isort==4.2.5',
  44. 'flake8-blind-except==0.1.1',
  45. 'flake8-print==2.0.2',
  46. ]
  47. # Documentation dependencies
  48. documentation_extras = [
  49. 'pyenchant==1.6.8',
  50. 'sphinxcontrib-spelling>=2.3.0',
  51. 'Sphinx>=1.5.2',
  52. 'sphinx-autobuild>=0.6.0',
  53. 'sphinx_rtd_theme>=0.1.9',
  54. ]
  55. setup(
  56. name='wagtail',
  57. version=__version__,
  58. description='A Django content management system focused on flexibility and user experience',
  59. author='Matthew Westcott',
  60. author_email='matthew.westcott@torchbox.com',
  61. url='http://wagtail.io/',
  62. packages=find_packages(),
  63. include_package_data=True,
  64. license='BSD',
  65. long_description=open('README.rst').read(),
  66. classifiers=[
  67. 'Development Status :: 5 - Production/Stable',
  68. 'Environment :: Web Environment',
  69. 'Intended Audience :: Developers',
  70. 'License :: OSI Approved :: BSD License',
  71. 'Operating System :: OS Independent',
  72. 'Programming Language :: Python',
  73. 'Programming Language :: Python :: 3',
  74. 'Programming Language :: Python :: 3.4',
  75. 'Programming Language :: Python :: 3.5',
  76. 'Programming Language :: Python :: 3.6',
  77. 'Framework :: Django',
  78. 'Framework :: Django :: 1.11',
  79. 'Framework :: Django :: 2.0',
  80. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  81. ],
  82. install_requires=install_requires,
  83. extras_require={
  84. 'testing': testing_extras,
  85. 'docs': documentation_extras
  86. },
  87. entry_points="""
  88. [console_scripts]
  89. wagtail=wagtail.bin.wagtail:main
  90. """,
  91. zip_safe=False,
  92. cmdclass={
  93. 'sdist': sdist,
  94. 'bdist_egg': check_bdist_egg,
  95. 'assets': assets,
  96. },
  97. )