setup.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import os
  2. from setuptools import setup, find_packages
  3. def read(fname):
  4. path = os.path.join(os.path.dirname(__file__), fname)
  5. try:
  6. file = open(path, encoding='utf-8')
  7. except TypeError:
  8. file = open(path)
  9. return file.read()
  10. def get_install_requires():
  11. install_requires = ['Django']
  12. try:
  13. import importlib
  14. except ImportError:
  15. install_requires.append('importlib')
  16. try:
  17. from collections import OrderedDict
  18. except ImportError:
  19. install_requires.append('ordereddict')
  20. return install_requires
  21. setup(
  22. name='django-jet',
  23. version=__import__('jet').VERSION,
  24. description='Modern template for Django admin interface with improved functionality',
  25. long_description=read('README.rst'),
  26. author='Denis Kildishev',
  27. author_email='support@jet.geex-arts.com',
  28. url='https://github.com/geex-arts/django-jet',
  29. packages=find_packages(),
  30. license='AGPLv3',
  31. classifiers=[
  32. 'Development Status :: 5 - Production/Stable',
  33. 'Framework :: Django',
  34. 'License :: Free for non-commercial use',
  35. 'License :: OSI Approved :: GNU Affero General Public License v3',
  36. 'Intended Audience :: Developers',
  37. 'Intended Audience :: System Administrators',
  38. 'Operating System :: OS Independent',
  39. 'Programming Language :: Python',
  40. 'Programming Language :: Python :: 2.6',
  41. 'Programming Language :: Python :: 2.7',
  42. 'Programming Language :: Python :: 3.2',
  43. 'Programming Language :: Python :: 3.3',
  44. 'Programming Language :: Python :: 3.4',
  45. 'Environment :: Web Environment',
  46. 'Topic :: Software Development',
  47. 'Topic :: Software Development :: User Interfaces',
  48. ],
  49. zip_safe=False,
  50. include_package_data=True,
  51. install_requires=get_install_requires()
  52. )