setup.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. "Topic :: System :: Filesystems",
  29. "Topic :: Utilities",
  30. ],
  31. packages=setuptools.find_packages(),
  32. entry_points={"console_scripts": ["free-disk = free_disk:main",],},
  33. install_requires=[],
  34. setup_requires=["setuptools_scm",],
  35. tests_require=["pylint>=2.3.0", "pytest",],
  36. )