setup.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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.8.1,<1.11",
  18. "django-modelcluster>=2.0,<3.0",
  19. "django-taggit>=0.18,<0.19",
  20. "django-treebeard>=3.0,<5.0",
  21. "djangorestframework>=3.1.3",
  22. "Pillow>=2.6.1",
  23. "beautifulsoup4>=4.5.1",
  24. "html5lib>=0.999,<1",
  25. "Unidecode>=0.04.14",
  26. "Willow>=0.4,<0.5",
  27. ]
  28. # Testing dependencies
  29. testing_extras = [
  30. # Required for running the tests
  31. 'mock>=1.0.0',
  32. 'python-dateutil>=2.2',
  33. 'pytz>=2014.7',
  34. 'Pillow>=2.7.0',
  35. 'elasticsearch>=1.0.0,<3.0',
  36. 'Jinja2>=2.8,<3.0',
  37. 'boto3>=1.1,<1.2',
  38. # For coverage and PEP8 linting
  39. 'coverage>=3.7.0',
  40. 'flake8>=2.2.0',
  41. 'isort>=4.2.0',
  42. ]
  43. # Documentation dependencies
  44. documentation_extras = [
  45. 'Sphinx>=1.3.1,<2.0',
  46. 'sphinx-autobuild>=0.5.2',
  47. 'sphinx_rtd_theme>=0.1.8',
  48. 'sphinxcontrib-spelling==2.1.1',
  49. 'pyenchant==1.6.6',
  50. ]
  51. setup(
  52. name='wagtail',
  53. version=__version__,
  54. description='A Django content management system focused on flexibility and user experience',
  55. author='Matthew Westcott',
  56. author_email='matthew.westcott@torchbox.com',
  57. url='http://wagtail.io/',
  58. packages=find_packages(),
  59. include_package_data=True,
  60. license='BSD',
  61. long_description=open('README.rst').read(),
  62. classifiers=[
  63. 'Development Status :: 5 - Production/Stable',
  64. 'Environment :: Web Environment',
  65. 'Intended Audience :: Developers',
  66. 'License :: OSI Approved :: BSD License',
  67. 'Operating System :: OS Independent',
  68. 'Programming Language :: Python',
  69. 'Programming Language :: Python :: 2',
  70. 'Programming Language :: Python :: 2.7',
  71. 'Programming Language :: Python :: 3',
  72. 'Programming Language :: Python :: 3.3',
  73. 'Programming Language :: Python :: 3.4',
  74. 'Programming Language :: Python :: 3.5',
  75. 'Framework :: Django',
  76. 'Framework :: Django :: 1.8',
  77. 'Framework :: Django :: 1.9',
  78. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  79. ],
  80. install_requires=install_requires,
  81. extras_require={
  82. 'testing': testing_extras,
  83. 'docs': documentation_extras
  84. },
  85. entry_points="""
  86. [console_scripts]
  87. wagtail=wagtail.bin.wagtail:main
  88. """,
  89. zip_safe=False,
  90. cmdclass={
  91. 'sdist': sdist,
  92. 'bdist_egg': check_bdist_egg,
  93. 'assets': assets,
  94. },
  95. )