1
0

setup.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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=[ # https://pypi.org/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.9",
  30. "Programming Language :: Python :: 3.10",
  31. "Topic :: System :: Filesystems",
  32. "Topic :: Utilities",
  33. ],
  34. packages=setuptools.find_packages(),
  35. entry_points={
  36. "console_scripts": [
  37. "free-disk = free_disk:_main",
  38. ],
  39. },
  40. # >=3.5 pathlib.Path.read_text()
  41. # >=3.6 f-strings
  42. # >=3.8 walrus operator
  43. python_requires=">=3.9", # <3.9 untested
  44. install_requires=[],
  45. setup_requires=["setuptools_scm"],
  46. tests_require=["pytest"],
  47. )