setup.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # coding: utf-8
  2. import os.path
  3. import io
  4. import re
  5. from setuptools import setup, find_packages
  6. here = os.path.abspath(os.path.dirname(__file__))
  7. README = io.open(os.path.join(here, 'README.rst'), encoding='utf8').read()
  8. CHANGES = io.open(os.path.join(here, 'CHANGES.txt'), encoding='utf8').read()
  9. with io.open(os.path.join(here, 'wheel', '__init__.py'), encoding='utf8') as version_file:
  10. metadata = dict(re.findall(r"""__([a-z]+)__ = "([^"]+)""", version_file.read()))
  11. setup(name='wheel',
  12. version=metadata['version'],
  13. description='A built-package format for Python.',
  14. long_description=README + '\n\n' + CHANGES,
  15. classifiers=[
  16. "Development Status :: 5 - Production/Stable",
  17. "Intended Audience :: Developers",
  18. "License :: OSI Approved :: MIT License",
  19. "Programming Language :: Python",
  20. "Programming Language :: Python :: 2",
  21. "Programming Language :: Python :: 2.7",
  22. "Programming Language :: Python :: 3",
  23. "Programming Language :: Python :: 3.4",
  24. "Programming Language :: Python :: 3.5",
  25. "Programming Language :: Python :: 3.6"
  26. ],
  27. author='Daniel Holth',
  28. author_email='dholth@fastmail.fm',
  29. maintainer=u'Alex Grönholm',
  30. maintainer_email='alex.gronholm@nextday.fi',
  31. url='https://github.com/pypa/wheel',
  32. keywords=['wheel', 'packaging'],
  33. license='MIT',
  34. packages=find_packages(),
  35. python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
  36. extras_require={
  37. 'signatures': ['keyring', 'keyrings.alt'],
  38. 'signatures:sys_platform!="win32"': ['pyxdg'],
  39. 'faster-signatures': ['ed25519ll'],
  40. 'test': ['pytest >= 3.0.0', 'pytest-cov']
  41. },
  42. include_package_data=True,
  43. zip_safe=False,
  44. entry_points={
  45. 'console_scripts': [
  46. 'wheel=wheel.tool:main'
  47. ],
  48. 'distutils.commands': [
  49. 'bdist_wheel=wheel.bdist_wheel:bdist_wheel'
  50. ]
  51. }
  52. )