setup.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. return install_requires
  17. setup(
  18. name='django-jet',
  19. version=__import__('jet').VERSION,
  20. description='Modern template for Django admin interface with improved functionality',
  21. long_description=read('README.rst'),
  22. author='Denis Kildishev',
  23. author_email='support@jet.geex-arts.com',
  24. url='https://github.com/geex-arts/django-jet',
  25. packages=find_packages(),
  26. license='GPLv2',
  27. classifiers=[
  28. 'Development Status :: 4 - Beta',
  29. 'Framework :: Django',
  30. 'License :: Free for non-commercial use',
  31. 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
  32. 'Intended Audience :: Developers',
  33. 'Intended Audience :: System Administrators',
  34. 'Operating System :: OS Independent',
  35. 'Programming Language :: Python',
  36. 'Programming Language :: Python :: 2.6',
  37. 'Programming Language :: Python :: 2.7',
  38. 'Programming Language :: Python :: 3.2',
  39. 'Programming Language :: Python :: 3.3',
  40. 'Programming Language :: Python :: 3.4',
  41. 'Environment :: Web Environment',
  42. 'Topic :: Software Development',
  43. 'Topic :: Software Development :: User Interfaces',
  44. ],
  45. zip_safe=False,
  46. include_package_data=True,
  47. install_requires=get_install_requires()
  48. )