1
0

setup.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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=["disk", "files", "cleanup", "free", "delete", "old",],
  19. classifiers=[
  20. "Development Status :: 3 - Alpha",
  21. "Intended Audience :: System Administrators",
  22. "License :: OSI Approved :: MIT License",
  23. "Operating System :: POSIX",
  24. "Programming Language :: Python :: 3.4",
  25. "Programming Language :: Python :: 3.5",
  26. "Programming Language :: Python :: 3.6",
  27. "Programming Language :: Python :: 3.7",
  28. "Programming Language :: Python :: 3.8",
  29. "Topic :: System :: Filesystems",
  30. "Topic :: Utilities",
  31. ],
  32. packages=setuptools.find_packages(),
  33. entry_points={"console_scripts": ["free-disk = free_disk:main",],},
  34. install_requires=[],
  35. setup_requires=["setuptools_scm",],
  36. tests_require=["pylint>=2.3.0", "pytest",],
  37. )