Functional and Pythonic stdlib

setup.py 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/usr/bin/env python
  2. import os
  3. import glob
  4. import setuptools # type: ignore
  5. root = os.path.abspath(os.path.dirname(__file__))
  6. def requires(requirements="requirements.txt"):
  7. path = os.path.join(root, requirements)
  8. with open(path, "r") as f:
  9. return f.read().splitlines()
  10. info = dict(
  11. name="funpy",
  12. version="0.5.5",
  13. license="AGPL-3.0",
  14. author="Médéric Hurier",
  15. author_email="dev@fmind.me",
  16. description="Functional and Pythonic stdlib.",
  17. long_description_content_type="text/markdown",
  18. long_description=open("README.md", "r").read(),
  19. url="https://git.fmind.me/fmind/funpy",
  20. packages=["funpy"],
  21. keywords="operator function iterator parallel io",
  22. classifiers=[
  23. "Topic :: Software Development",
  24. "Intended Audience :: Developers",
  25. "Development Status :: 3 - Alpha",
  26. "Programming Language :: Python :: 3",
  27. ],
  28. extras_require={
  29. os.path.dirname(f): requires(f)
  30. for f in glob.glob("*/requirements.txt")
  31. },
  32. python_requires=">=3",
  33. install_requires=requires(),
  34. )
  35. if __name__ == "__main__":
  36. setuptools.setup(**info)