1
0

setup.py 1.5 KB

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