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