Run set operations on files

setup.py 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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="onset",
  12. version="1.0.12",
  13. license="AGPL-3.0",
  14. author="Médéric Hurier",
  15. author_email="dev@fmind.me",
  16. description="Run set operations on files.",
  17. long_description_content_type="text/markdown",
  18. long_description=open("README.md", "r").read(),
  19. url="https://git.fmind.me/fmind/onset",
  20. packages=["onset", "onset.scripts"],
  21. package_dir={"onset.scripts": "scripts"},
  22. keywords="set file utility operation",
  23. classifiers=[
  24. "Environment :: Console",
  25. "Intended Audience :: Developers",
  26. "Development Status :: 3 - Alpha",
  27. "Programming Language :: Python :: 3",
  28. ],
  29. extras_require={
  30. os.path.dirname(f): requires(f)
  31. for f in glob.glob("*/requirements.txt")
  32. },
  33. python_requires=">=3",
  34. install_requires=requires(),
  35. entry_points={"console_scripts": ["onset=onset.scripts.console:main"]},
  36. )
  37. if __name__ == "__main__":
  38. setuptools.setup(**info)