setup.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import pathlib
  2. import setuptools
  3. setuptools.setup(
  4. name="free-disk",
  5. use_scm_version=True,
  6. description="delete file with oldest modification date"
  7. " until a minimum of --free-bytes are available on disk",
  8. # Path.read_text() new in python v3.5
  9. long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
  10. long_description_content_type="text/markdown",
  11. author="Fabian Peter Hammerle",
  12. author_email="fabian@hammerle.me",
  13. url="https://github.com/fphammerle/free-disk",
  14. license="MIT",
  15. keywords=[
  16. "disk",
  17. "files",
  18. "cleanup",
  19. "free",
  20. "delete",
  21. "old",
  22. ],
  23. classifiers=[
  24. "Development Status :: 3 - Alpha",
  25. "Intended Audience :: System Administrators",
  26. "License :: OSI Approved :: MIT License",
  27. "Operating System :: POSIX",
  28. # .github/workflows/python.yml
  29. "Programming Language :: Python :: 3.7",
  30. "Programming Language :: Python :: 3.8",
  31. "Programming Language :: Python :: 3.9",
  32. "Programming Language :: Python :: 3.10",
  33. "Topic :: System :: Filesystems",
  34. "Topic :: Utilities",
  35. ],
  36. packages=setuptools.find_packages(),
  37. entry_points={
  38. "console_scripts": [
  39. "free-disk = free_disk:_main",
  40. ],
  41. },
  42. # >=3.5 pathlib.Path.read_text()
  43. # >=3.6 f-strings
  44. # <3.7 untested
  45. python_requires=">=3.7",
  46. install_requires=[],
  47. setup_requires=["setuptools_scm"],
  48. tests_require=["pytest"],
  49. )