setup.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. "Topic :: System :: Filesystems",
  37. "Topic :: Utilities",
  38. ],
  39. packages=setuptools.find_packages(),
  40. entry_points={
  41. "console_scripts": [
  42. "free-disk = free_disk:main",
  43. ],
  44. },
  45. install_requires=[],
  46. setup_requires=["setuptools_scm"],
  47. tests_require=["pytest"],
  48. )