Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (47 loc) 路 1.49 KB
/
Copy pathsetup.py
File metadata and controls
49 lines (47 loc) 路 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import pathlib
import setuptools
setuptools.setup(
name="free-disk",
use_scm_version=True,
description="delete file with oldest modification date"
" until a minimum of --free-bytes are available on disk",
long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
long_description_content_type="text/markdown",
author="Fabian Peter Hammerle",
author_email="fabian@hammerle.me",
url="https://github.com/fphammerle/free-disk",
license="MIT",
keywords=[
"disk",
"files",
"cleanup",
"free",
"delete",
"old",
],
classifiers=[ # https://pypi.org/classifiers/
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
# .github/workflows/python.yml
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Filesystems",
"Topic :: Utilities",
],
packages=setuptools.find_packages(),
entry_points={
"console_scripts": [
"free-disk = free_disk:_main",
],
},
# >=3.5 pathlib.Path.read_text()
# >=3.6 f-strings
# >=3.8 walrus operator
python_requires=">=3.10", # <3.10 untested
install_requires=[],
tests_require=["pytest"],
)