setup.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #!/usr/bin/env python
  2. import sys
  3. from wagtail.wagtailcore 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.10",
  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.4.1",
  24. "html5lib>=0.999,<1",
  25. "Unidecode>=0.04.14",
  26. "Willow>=0.3b4,<0.4",
  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',
  36. 'Jinja2>=2.8,<3.0',
  37. # For coverage and PEP8 linting
  38. 'coverage>=3.7.0',
  39. 'flake8>=2.2.0',
  40. 'isort>=4.2.0',
  41. ]
  42. # Documentation dependencies
  43. documentation_extras = [
  44. 'Sphinx>=1.3.1',
  45. 'sphinx-autobuild>=0.5.2',
  46. 'sphinx_rtd_theme>=0.1.8',
  47. 'sphinxcontrib-spelling==2.1.1',
  48. 'pyenchant==1.6.6',
  49. ]
  50. setup(
  51. name='wagtail',
  52. version=__version__,
  53. description='A Django content management system focused on flexibility and user experience',
  54. author='Matthew Westcott',
  55. author_email='matthew.westcott@torchbox.com',
  56. url='http://wagtail.io/',
  57. packages=find_packages(),
  58. include_package_data=True,
  59. license='BSD',
  60. long_description=open('README.rst').read(),
  61. classifiers=[
  62. 'Development Status :: 5 - Production/Stable',
  63. 'Environment :: Web Environment',
  64. 'Intended Audience :: Developers',
  65. 'License :: OSI Approved :: BSD License',
  66. 'Operating System :: OS Independent',
  67. 'Programming Language :: Python',
  68. 'Programming Language :: Python :: 2',
  69. 'Programming Language :: Python :: 2.7',
  70. 'Programming Language :: Python :: 3',
  71. 'Programming Language :: Python :: 3.3',
  72. 'Programming Language :: Python :: 3.4',
  73. 'Programming Language :: Python :: 3.5',
  74. 'Framework :: Django',
  75. 'Framework :: Django :: 1.8',
  76. 'Framework :: Django :: 1.9',
  77. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  78. ],
  79. install_requires=install_requires,
  80. extras_require={
  81. 'testing': testing_extras,
  82. 'docs': documentation_extras
  83. },
  84. entry_points="""
  85. [console_scripts]
  86. wagtail=wagtail.bin.wagtail:main
  87. """,
  88. zip_safe=False,
  89. cmdclass={
  90. 'sdist': sdist,
  91. 'bdist_egg': check_bdist_egg,
  92. 'assets': assets,
  93. },
  94. )