您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

setup.py 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. from oscar import get_version
  11. PROJECT_DIR = os.path.dirname(__file__)
  12. # Change to the current directory to solve an issue installing Oscar on the Vagrant machine.
  13. if PROJECT_DIR:
  14. os.chdir(PROJECT_DIR)
  15. setup(name='django-oscar',
  16. version=get_version().replace(' ', '-'),
  17. url='https://github.com/tangentlabs/django-oscar',
  18. author="David Winterbottom",
  19. author_email="david.winterbottom@tangentlabs.co.uk",
  20. description="A domain-driven e-commerce framework for Django 1.3+",
  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. packages=find_packages(exclude=["sandbox*", "tests*"]),
  26. include_package_data=True,
  27. install_requires=[
  28. 'django>=1.4',
  29. 'PIL==1.1.7',
  30. 'South>=0.7.6',
  31. 'django-extra-views>=0.2,<0.6',
  32. 'django-haystack==2.0.0-beta',
  33. 'django-treebeard==1.61',
  34. 'sorl-thumbnail==11.12',
  35. 'python-memcached==1.48',
  36. 'Babel==0.9.6',
  37. ],
  38. dependency_links=['http://github.com/toastdriven/django-haystack/tarball/master#egg=django-haystack-2.0.0-beta'],
  39. # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
  40. classifiers=['Environment :: Web Environment',
  41. 'Framework :: Django',
  42. 'Intended Audience :: Developers',
  43. 'License :: OSI Approved :: BSD License',
  44. 'Operating System :: Unix',
  45. 'Programming Language :: Python']
  46. )