setup.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. from distutils.core import setup
  2. import sys
  3. packages = []
  4. if ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or
  5. (sys.version_info[0] == 3 and sys.version_info[1] < 1)):
  6. packages.append('importlib')
  7. version_classifiers = ['Programming Language :: Python :: %s' % version
  8. for version in ['2', '2.3', '2.4', '2.5', '2.6',
  9. '3', '3.0']]
  10. other_classifiers = [
  11. 'Development Status :: 5 - Production/Stable',
  12. 'License :: OSI Approved :: Python Software Foundation License',
  13. ]
  14. readme_file = open('README', 'r')
  15. try:
  16. detailed_description = readme_file.read()
  17. finally:
  18. readme_file.close()
  19. setup(
  20. name='importlib',
  21. version='1.0.3',
  22. description='Backport of importlib.import_module() from Python 2.7',
  23. long_description=detailed_description,
  24. author='Brett Cannon',
  25. author_email='brett@python.org',
  26. #url='',
  27. packages=packages,
  28. classifiers=version_classifiers + other_classifiers,
  29. )