setup.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #!/usr/bin/env python
  2. import sys
  3. from setuptools.command.sdist import sdist
  4. from wagtail.wagtailcore import __version__
  5. from wagtail.utils.setup import assets, add_subcommand, check_bdist_egg
  6. try:
  7. from setuptools import setup, find_packages
  8. except ImportError:
  9. from distutils.core import setup
  10. # Hack to prevent "TypeError: 'NoneType' object is not callable" error
  11. # in multiprocessing/util.py _exit_function when setup.py exits
  12. # (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
  13. try:
  14. import multiprocessing
  15. except ImportError:
  16. pass
  17. PY3 = sys.version_info[0] == 3
  18. install_requires = [
  19. "Django>=1.7.1,<1.9",
  20. "django-compressor>=1.4",
  21. "django-modelcluster>=0.6",
  22. "django-taggit>=0.13.0",
  23. "django-treebeard==3.0",
  24. "django-sendfile==0.3.7",
  25. "Pillow>=2.6.1",
  26. "beautifulsoup4>=4.3.2",
  27. "html5lib==0.999",
  28. "Unidecode>=0.04.14",
  29. "six>=1.7.0",
  30. 'requests>=2.0.0',
  31. "Willow==0.2.1",
  32. ]
  33. if not PY3:
  34. install_requires += [
  35. "unicodecsv>=0.9.4"
  36. ]
  37. setup(
  38. name='wagtail',
  39. version=__version__,
  40. description='A Django content management system focused on flexibility and user experience',
  41. author='Matthew Westcott',
  42. author_email='matthew.westcott@torchbox.com',
  43. url='http://wagtail.io/',
  44. packages=find_packages(),
  45. include_package_data=True,
  46. license='BSD',
  47. long_description=open('README.rst').read(),
  48. classifiers=[
  49. 'Development Status :: 5 - Production/Stable',
  50. 'Environment :: Web Environment',
  51. 'Intended Audience :: Developers',
  52. 'License :: OSI Approved :: BSD License',
  53. 'Operating System :: OS Independent',
  54. 'Programming Language :: Python',
  55. 'Programming Language :: Python :: 2',
  56. 'Programming Language :: Python :: 2.7',
  57. 'Programming Language :: Python :: 3',
  58. 'Programming Language :: Python :: 3.3',
  59. 'Programming Language :: Python :: 3.4',
  60. 'Framework :: Django',
  61. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  62. ],
  63. install_requires=install_requires,
  64. entry_points="""
  65. [console_scripts]
  66. wagtail=wagtail.bin.wagtail:main
  67. """,
  68. zip_safe=False,
  69. cmdclass={
  70. 'sdist': add_subcommand(sdist, [('assets', None)]),
  71. 'bdist_egg': check_bdist_egg,
  72. 'assets': assets,
  73. },
  74. )