Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #!/usr/bin/env python
  2. """
  3. Installation script:
  4. To release a new version to PyPi:
  5. - Ensure the version is correctly set in oscar.__init__.py
  6. - Run: python setup.py sdist upload
  7. """
  8. from setuptools import setup, find_packages
  9. import os
  10. import sys
  11. PROJECT_DIR = os.path.dirname(__file__)
  12. PY3 = sys.version_info >= (3, 0)
  13. sys.path.append(os.path.join(PROJECT_DIR, 'src'))
  14. from oscar import get_version
  15. setup(name='django-oscar',
  16. version=get_version().replace(' ', '-'),
  17. url='https://github.com/django-oscar/django-oscar',
  18. author="David Winterbottom",
  19. author_email="david.winterbottom@gmail.com",
  20. description="A domain-driven e-commerce framework for Django",
  21. long_description=open(os.path.join(PROJECT_DIR, 'README.rst')).read(),
  22. keywords="E-commerce, Django, domain-driven",
  23. license='BSD',
  24. platforms=['linux'],
  25. package_dir={'': 'src'},
  26. packages=find_packages('src'),
  27. include_package_data=True,
  28. install_requires=[
  29. 'django>=1.8.8,<1.10',
  30. # PIL is required for image fields, Pillow is the "friendly" PIL fork
  31. 'pillow>=1.7.8',
  32. # We use the ModelFormSetView from django-extra-views for the basket
  33. # page. > 0.6.5 has a bug which causes issues with Django > 1.6,
  34. # https://github.com/AndrewIngram/django-extra-views/issues/114
  35. 'django-extra-views>=0.2,<0.6.5',
  36. # Search support
  37. 'django-haystack>=2.3.1,<2.5.0',
  38. # Treebeard is used for categories
  39. 'django-treebeard>=4.0',
  40. # Sorl is used as the default thumbnailer
  41. 'sorl-thumbnail>=12.4a1',
  42. # Babel is used for currency formatting
  43. 'Babel>=1.0,<1.4',
  44. # For converting non-ASCII to ASCII when creating slugs
  45. 'Unidecode>=0.04.12,<0.05',
  46. # For manipulating search URLs
  47. 'purl>=0.7',
  48. # For phone number field
  49. 'phonenumbers>=6.3.0,<8.0.0',
  50. # Used for oscar.test.contextmanagers.mock_signal_receiver
  51. 'mock>=1.0.1,<2.0',
  52. # Used for oscar.test.newfactories
  53. 'factory-boy>=2.4.1,<2.7',
  54. # Used for automatically building larger HTML tables
  55. 'django-tables2>=1.0.4,<1.1',
  56. # Used for manipulating form field attributes in templates (eg: add
  57. # a css class)
  58. 'django-widget-tweaks>=1.4.1',
  59. ],
  60. dependency_links=[],
  61. # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
  62. classifiers=[
  63. 'Development Status :: 5 - Production/Stable',
  64. 'Environment :: Web Environment',
  65. 'Framework :: Django',
  66. 'Framework :: Django :: 1.8',
  67. 'Framework :: Django :: 1.9',
  68. 'Intended Audience :: Developers',
  69. 'License :: OSI Approved :: BSD License',
  70. 'Operating System :: Unix',
  71. 'Programming Language :: Python',
  72. 'Programming Language :: Python :: 2',
  73. 'Programming Language :: Python :: 2.7',
  74. 'Programming Language :: Python :: 3',
  75. 'Programming Language :: Python :: 3.3',
  76. 'Programming Language :: Python :: 3.4',
  77. 'Programming Language :: Python :: 3.5',
  78. 'Topic :: Software Development :: Libraries :: Application Frameworks']
  79. )
  80. # Show contributing instructions if being installed in 'develop' mode
  81. if len(sys.argv) > 1 and sys.argv[1] == 'develop':
  82. docs_url = 'http://django-oscar.readthedocs.org/en/latest/internals/contributing/index.html'
  83. mailing_list = 'django-oscar@googlegroups.com'
  84. mailing_list_url = 'https://groups.google.com/forum/?fromgroups#!forum/django-oscar'
  85. twitter_url = 'https://twitter.com/django_oscar'
  86. msg = (
  87. "You're installing Oscar in 'develop' mode so I presume you're thinking\n"
  88. "of contributing:\n\n"
  89. "(a) That's brilliant - thank you for your time\n"
  90. "(b) If you have any questions, please use the mailing list:\n %s\n"
  91. " %s\n"
  92. "(c) There are more detailed contributing guidelines that you should "
  93. "have a look at:\n %s\n"
  94. "(d) Consider following @django_oscar on Twitter to stay up-to-date\n"
  95. " %s\n\nHappy hacking!") % (mailing_list, mailing_list_url,
  96. docs_url, twitter_url)
  97. line = '=' * 82
  98. print(("\n%s\n%s\n%s" % (line, msg, line)))