setup.py 1.6 KB

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