setup.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/env python
  2. from __future__ import absolute_import, division, print_function
  3. import sys
  4. from setuptools import setup
  5. has_enum = sys.version_info >= (3, 4)
  6. readme = """
  7. enum-compat
  8. ===========
  9. This is a virtual package, its whole purpose is to install enum34 on
  10. Python older than 3.4. On Python 3.4+ it's a no-op.
  11. """
  12. if __name__ == '__main__':
  13. setup(
  14. name='enum-compat',
  15. version='0.0.2',
  16. description='enum/enum34 compatibility package',
  17. long_description=readme,
  18. author='Jakub Stasiak',
  19. author_email='jakub@stasiak.at',
  20. url='https://github.com/jstasiak/enum-compat',
  21. license='MIT',
  22. zip_safe=False,
  23. classifiers=[
  24. 'Intended Audience :: Developers',
  25. 'Topic :: Software Development :: Libraries',
  26. 'Programming Language :: Python',
  27. 'Programming Language :: Python :: 2',
  28. 'Programming Language :: Python :: 2.6',
  29. 'Programming Language :: Python :: 2.7',
  30. 'Programming Language :: Python :: 3',
  31. 'Programming Language :: Python :: 3.3',
  32. 'Programming Language :: Python :: 3.4',
  33. 'Programming Language :: Python :: 3.5',
  34. ],
  35. keywords=[
  36. 'enum', 'compatibility', 'enum34',
  37. ],
  38. install_requires=[] if has_enum else ['enum34'],
  39. )