setup.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
  9. long_description_content_type="text/markdown",
  10. author="Fabian Peter Hammerle",
  11. author_email="fabian@hammerle.me",
  12. url="https://github.com/fphammerle/free-disk",
  13. license="MIT",
  14. keywords=[
  15. "disk",
  16. "files",
  17. "cleanup",
  18. "free",
  19. "delete",
  20. "old",
  21. ],
  22. classifiers=[ # https://pypi.org/classifiers/
  23. "Development Status :: 3 - Alpha",
  24. "Intended Audience :: System Administrators",
  25. "License :: OSI Approved :: MIT License",
  26. "Operating System :: POSIX",
  27. # .github/workflows/python.yml
  28. "Programming Language :: Python :: 3.10",
  29. "Topic :: System :: Filesystems",
  30. "Topic :: Utilities",
  31. ],
  32. packages=setuptools.find_packages(),
  33. entry_points={
  34. "console_scripts": [
  35. "free-disk = free_disk:_main",
  36. ],
  37. },
  38. # >=3.5 pathlib.Path.read_text()
  39. # >=3.6 f-strings
  40. # >=3.8 walrus operator
  41. python_requires=">=3.10", # <3.10 untested
  42. install_requires=[],
  43. tests_require=["pytest"],
  44. )