-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
196 lines (179 loc) · 4.33 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
authors = [
{name = "Arch Linux", email = "[email protected]"},
]
dynamic = ["version"]
license = {text = "GPL-3.0-or-later"}
requires-python = ">=3.10,<4.0"
dependencies = [
"aiofiles>=22.1.0",
"email-validator>=1.3.0",
"jinja2>=3.1.2",
"orjson>=3.8.0",
"pydantic>=1.10.2",
"python-magic>=0.4.27",
"pyxdg>=0.28",
"pyzstd>=0.15.3",
"subprocess-tee>=0.3.5",
"tomli>=2.0.1",
]
name = "repod"
description = "Tooling to maintain binary package repositories for Linux distributions using the pacman package manager"
readme = "README.md"
keywords = [
"arch linux",
"repository",
"pacman",
"packages",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Documentation :: Sphinx",
"Topic :: Internet",
"Topic :: Security :: Cryptography",
"Topic :: Software Development",
"Topic :: System :: Archiving :: Packaging",
"Topic :: System :: Operating System",
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
"Typing :: Typed",
]
[project.urls]
"Bug Tracker" = "https://gitlab.archlinux.org/archlinux/repod/-/issues/"
homepage = "https://gitlab.archlinux.org/archlinux/repod"
repository = "https://gitlab.archlinux.org/archlinux/repod"
documentation = "https://repod.archlinux.page"
[project.optional-dependencies]
alt_vercmp = ["pyalpm<1.0.0,>=0.10.6"]
alt_file = ["file-magic<1.0.0,>=0.4.0"]
[project.scripts]
repod-file = "repod.cli:repod_file"
[tool.pdm]
version = {source = "scm"}
[tool.pdm.dev-dependencies]
dev = [
"black>=22.8.0",
"coverage>=6.4.4",
"coverage-conditional-plugin>=0.7.0",
"flake8>=5.0.4",
"isort>=5.10.1",
"mypy[install-types,reports]>=0.991",
"pytest>=7.1.3",
"pytest-asyncio>=0.19.0",
"pytest-lazy-fixture>=0.6.3",
"sphinx>=5.2.1",
"sphinx-rtd-theme>=1.0.0",
"sphinx-argparse>=0.3.1",
"sphinxcontrib-programoutput>=0.17",
"tox>=3.26.0",
"vulture>=2.6",
"pydocstyle>=6.1.1",
"bandit>=1.7.4",
]
[tool.pdm.build]
excludes = [
"./**/.git",
"docs/_build/",
"docs/schema/",
]
includes = [
"repod",
]
package-dir = "."
source-includes = [
"tests/",
"docs/",
"LICENSE",
"justfile",
]
[tool.pytest.ini_options]
markers = ["integration", "regex"]
asyncio_mode = "auto"
[tool.bandit]
targets = ["docs", "repod", "tests"]
exclude_dirs = [
".git/",
".idea/",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".tox",
".venv",
]
[tool.black]
line-length = 120
exclude = '''
/(
\.direnv|
|\.eggs
|\.git
|\.hg
|\.mypy_cache
|\.nox
|\.tox
|\.venv
|\.svn
|_build
|buck-out
|db-write
|db2json
|dbscripts
|build
|dist
)/
'''
[tool.coverage.path]
source = "repod"
[tool.coverage.report]
omit = ["tests/*", ".tox/*", "db-write/*", "db2json/*", "dbscripts/*"]
precision = 2
show_missing = true
[tool.coverage.run]
branch = true
command_line = "-m pytest --junit-xml=junit-report.xml -vv tests/ -m 'not integration and not regex'"
omit = ["tests/*", ".tox/*", "db-write/*", "db2json/*", "dbscripts/*"]
relative_files = true
plugins = ["coverage_conditional_plugin"]
[tool.coverage.xml]
output = ".tox/coverage.xml"
[tool.coverage.coverage_conditional_plugin.rules]
no-cover-nonlinux = "'linux' not in sys.platform"
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.mypy]
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
follow_imports = "silent"
follow_imports_for_stubs = true
ignore_errors = false
ignore_missing_imports = true
local_partial_types = false
no_implicit_optional = true
show_error_codes = true
strict_equality = true
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"