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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. from oscar import get_version
  12. PROJECT_DIR = os.path.dirname(__file__)
  13. # Change to the current directory to solve an issue installing Oscar on the
  14. # Vagrant machine.
  15. if PROJECT_DIR:
  16. os.chdir(PROJECT_DIR)
  17. setup(name='django-oscar',
  18. version=get_version().replace(' ', '-'),
  19. url='https://github.com/tangentlabs/django-oscar',
  20. author="David Winterbottom",
  21. author_email="david.winterbottom@tangentlabs.co.uk",
  22. description="A domain-driven e-commerce framework for Django",
  23. long_description=open(os.path.join(PROJECT_DIR, 'README.rst')).read(),
  24. keywords="E-commerce, Django, domain-driven",
  25. license='BSD',
  26. platforms=['linux'],
  27. packages=find_packages(exclude=["sandbox*", "tests*"]),
  28. include_package_data=True,
  29. install_requires=[
  30. 'django>=1.4,<1.5',
  31. 'PIL==1.1.7',
  32. 'South>=0.7.6,<0.8',
  33. 'django-extra-views>=0.2,<0.6',
  34. 'django-haystack==2.0.0-beta',
  35. 'django-treebeard>=1.61,<1.62',
  36. 'sorl-thumbnail==11.12',
  37. 'python-memcached>=1.48,<1.49',
  38. 'Babel>=0.9,<0.10',
  39. 'django-compressor>=1.2,<1.3',
  40. # For converting non-ASCII to ASCII when creating slugs
  41. 'Unidecode>=0.04.12,<0.05',
  42. 'virtual-node>=0.0.1',
  43. 'virtual-less>=0.0.1-1.3.3'],
  44. dependency_links=['https://github.com/toastdriven/django-haystack/tarball/f91a9a7ce6fb26093f4ecf09b28d71cf4b59283c#egg=django-haystack-2.0.0-beta'],
  45. # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
  46. classifiers=[
  47. 'Development Status :: 4 - Beta',
  48. 'Environment :: Web Environment',
  49. 'Framework :: Django',
  50. 'Intended Audience :: Developers',
  51. 'License :: OSI Approved :: BSD License',
  52. 'Operating System :: Unix',
  53. 'Programming Language :: Python',
  54. 'Topic :: Other/Nonlisted Topic']
  55. )
  56. # Show contributing instructions if being installed in 'develop' mode
  57. if len(sys.argv) > 1 and sys.argv[1] == 'develop':
  58. docs_url = 'http://django-oscar.readthedocs.org/en/latest/contributing.html'
  59. mailing_list = 'django-oscar@googlegroups.com'
  60. mailing_list_url = 'https://groups.google.com/forum/?fromgroups#!forum/django-oscar'
  61. twitter_url = 'https://twitter.com/django_oscar'
  62. msg = (
  63. "You're installing Oscar in 'develop' mode so I presume you're thinking\n"
  64. "of contributing:\n\n"
  65. "(a) That's brilliant - thank you for your time\n"
  66. "(b) If you have any questions, please use the mailing list:\n %s\n"
  67. " %s\n"
  68. "(c) There are more detailed contributing guidelines that you should "
  69. "have a look at:\n %s\n"
  70. "(d) Consider following @django_oscar on Twitter to stay up-to-date\n"
  71. " %s\n\nHappy hacking!") % (mailing_list, mailing_list_url,
  72. docs_url, twitter_url)
  73. line = '=' * 82
  74. print "\n%s\n%s\n%s" % (line, msg, line)