-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
114 lines (97 loc) · 2.39 KB
/
pyproject.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[project]
name = "gentoo-cache-manager"
dynamic = ["version"]
description = "🗃️ Helps tweaking build cache settings for individual packages"
authors = [
{name = "Aliaksei Urbanski", email = "[email protected]"},
]
maintainers = [
{name = "Aliaksei Urbanski", email = "[email protected]"},
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
# "Intended Audience :: Gentoo Linux Users",
"Intended Audience :: System Administrators",
# "Operating System :: POSIX :: Linux :: Gentoo Linux",
"Topic :: Software Development",
# "Topic :: System :: Caching",
"Topic :: System :: Installation/Setup",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"click",
"portage",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
keywords = ["gentoo", "cache", "manager", "ccache"]
[project.urls]
Repository = "https://github.com/Jamim/gentoo-cache-manager"
Issues = "https://github.com/Jamim/gentoo-cache-manager/issues"
[project.scripts]
gcm = "gcm.cli:cli"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
version = {source = "file", path = "src/gcm/__init__.py"}
distribution = true
[tool.pdm.dev-dependencies]
lint = [
"mypy",
"ruff",
]
test = [
"pytest",
"pytest-cov",
"pytest-env",
]
[tool.pdm.scripts]
lint-ruff = "scripts/ruff"
[tool.ruff]
line-length = 79
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
[tool.ruff.lint.isort]
known-local-folder = ["gcm"]
[tool.mypy]
files = "src/**/*.py"
strict = true
[[tool.mypy.overrides]]
module = [
"portage",
"portage.dbapi.dep_expand",
"portage.exception",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--cov gcm"
[tool.pytest_env]
PORTAGE_CONFIGROOT = "tests/data"
[tool.coverage.run]
branch = true