setup.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import sys
  2. from setuptools import setup, find_packages
  3. if sys.version_info[0] < 3:
  4. import __builtin__ as builtins
  5. else:
  6. import builtins
  7. builtins.__SETUP__ = True
  8. version = __import__("promise").get_version()
  9. IS_PY3 = sys.hexversion >= 0x03000000
  10. tests_require = [
  11. "pytest>=2.7.3",
  12. "pytest-cov",
  13. "coveralls",
  14. "futures",
  15. "pytest-benchmark",
  16. "mock",
  17. ]
  18. if IS_PY3:
  19. tests_require += ["pytest-asyncio"]
  20. setup(
  21. name="promise",
  22. version=version,
  23. description="Promises/A+ implementation for Python",
  24. long_description=open("README.rst").read(),
  25. url="https://github.com/syrusakbary/promise",
  26. download_url="https://github.com/syrusakbary/promise/releases",
  27. author="Syrus Akbary",
  28. author_email="me@syrusakbary.com",
  29. license="MIT",
  30. classifiers=[
  31. "Development Status :: 5 - Production/Stable",
  32. "Intended Audience :: Developers",
  33. "Topic :: Software Development :: Libraries",
  34. "Programming Language :: Python :: 2",
  35. "Programming Language :: Python :: 2.7",
  36. "Programming Language :: Python :: 3",
  37. "Programming Language :: Python :: 3.3",
  38. "Programming Language :: Python :: 3.4",
  39. "Programming Language :: Python :: 3.5",
  40. "Programming Language :: Python :: 3.6",
  41. "Programming Language :: Python :: 3.7",
  42. "Programming Language :: Python :: 3.8",
  43. "Programming Language :: Python :: Implementation :: PyPy",
  44. "License :: OSI Approved :: MIT License",
  45. ],
  46. keywords="concurrent future deferred promise",
  47. packages=find_packages(exclude=["tests"]),
  48. # PEP-561: https://www.python.org/dev/peps/pep-0561/
  49. package_data={"promise": ["py.typed"]},
  50. extras_require={"test": tests_require},
  51. install_requires=[
  52. "typing>=3.6.4; python_version < '3.5'",
  53. "six"
  54. ],
  55. tests_require=tests_require,
  56. )