General Abstract Meta Programming for Python

setup.py 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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="gampy",
  12. version="1.0.1",
  13. license="AGPL-3.0",
  14. author="Médéric Hurier",
  15. author_email="dev@fmind.me",
  16. description="General Abstract Meta Programming for Python",
  17. long_description_content_type="text/markdown",
  18. long_description=open("README.md", "r").read(),
  19. url="https://git.fmind.me/fmind/gampy",
  20. packages=["gampy"],
  21. keywords="general abstract meta programming",
  22. classifiers=[
  23. "Development Status :: 3 - Alpha",
  24. "Programming Language :: Python :: 3",
  25. ],
  26. extras_require={
  27. os.path.dirname(f): requires(f)
  28. for f in glob.glob("*/requirements.txt")
  29. },
  30. python_requires=">=3.7.0",
  31. install_requires=requires(),
  32. )
  33. if __name__ == "__main__":
  34. setuptools.setup(**info)