setup.py 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #!/usr/bin/env python
  2. import sys, os
  3. from wagtail.wagtailcore import __version__
  4. try:
  5. from setuptools import setup, find_packages
  6. except ImportError:
  7. from distutils.core import setup
  8. # Hack to prevent "TypeError: 'NoneType' object is not callable" error
  9. # in multiprocessing/util.py _exit_function when setup.py exits
  10. # (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
  11. try:
  12. import multiprocessing
  13. except ImportError:
  14. pass
  15. # Disable parallel builds, because Pillow 2.5.3 does some crazy monkeypatching of
  16. # the build process on multicore systems, which breaks installation of libsass
  17. os.environ['MAX_CONCURRENCY'] = '1'
  18. PY3 = sys.version_info[0] == 3
  19. install_requires = [
  20. "Django>=1.6.2,<1.8",
  21. "South==1.0.0",
  22. "django-compressor>=1.4",
  23. "django-libsass>=0.2",
  24. "django-modelcluster>=0.4",
  25. "django-taggit==0.12.2",
  26. "django-treebeard==2.0",
  27. "Pillow>=2.3.0",
  28. "beautifulsoup4>=4.3.2",
  29. "html5lib==0.999",
  30. "Unidecode>=0.04.14",
  31. "six==1.7.3",
  32. 'requests==2.3.0',
  33. ]
  34. if not PY3:
  35. install_requires += [
  36. "unicodecsv>=0.9.4"
  37. ]
  38. setup(
  39. name='wagtail',
  40. version=__version__,
  41. description='A Django content management system focused on flexibility and user experience',
  42. author='Matthew Westcott',
  43. author_email='matthew.westcott@torchbox.com',
  44. url='http://wagtail.io/',
  45. packages=find_packages(),
  46. include_package_data=True,
  47. license='BSD',
  48. long_description=open('README.rst').read(),
  49. classifiers=[
  50. 'Development Status :: 5 - Production/Stable',
  51. 'Environment :: Web Environment',
  52. 'Intended Audience :: Developers',
  53. 'License :: OSI Approved :: BSD License',
  54. 'Operating System :: OS Independent',
  55. 'Programming Language :: Python',
  56. 'Programming Language :: Python :: 2',
  57. 'Programming Language :: Python :: 2.6',
  58. 'Programming Language :: Python :: 2.7',
  59. 'Programming Language :: Python :: 3',
  60. 'Programming Language :: Python :: 3.2',
  61. 'Programming Language :: Python :: 3.3',
  62. 'Programming Language :: Python :: 3.4',
  63. 'Framework :: Django',
  64. 'Topic :: Internet :: WWW/HTTP :: Site Management',
  65. ],
  66. install_requires=install_requires,
  67. entry_points="""
  68. [console_scripts]
  69. wagtail=wagtail.bin.wagtail:main
  70. """,
  71. zip_safe=False,
  72. )