-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
177 lines (156 loc) · 4.01 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
# SPDX-FileCopyrightText: 2022 Maxwell G <[email protected]>
# SPDX-License-Identifier: GPL-2.0-or-later
[build-system]
# >=3.7 is needed for external-data
# It should be safe to downgrade this to >=3.2 if you can handle those
# seperately
requires = ["flit_core >=3.7,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "fedrq"
dynamic = ["description", "version"]
authors = [{ name = "Maxwell G", email = "[email protected]" }]
readme = "README.md"
license = { text = "GPL-2.0-or-later AND Unlicense AND MIT" }
classifiers = [
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
"Development Status :: 5 - Production/Stable",
"Typing :: Typed",
"Environment :: Console",
]
dependencies = [
# This cannot be installed from PyPI
# "dnf",
"pydantic >= 1, < 3",
"tomli; python_version<'3.11'",
"requests",
"rpm",
# Optional dependency for `fedrq check-config --dump`
# "tomli-w",
]
requires-python = ">=3.9"
[project.optional-dependencies]
codeqa = [
"ruff",
"reuse >= 4",
]
doc = [
# mkdocstrings-python uses black to format function signatures
"black",
# This is a transitive dependency of mkdocstrings-python
# 0.32.0 breaks black function signature formatting
"griffe !=0.32.0, !=0.32.1",
"mkdocs",
"mkdocs-exclude",
"mkdocs-gen-files",
"mkdocs-material",
"mkdocstrings[python]>=0.18",
"releaserr",
]
formatters = [
"black",
# 5.13.0 introduced https://github.com/PyCQA/isort/issues/2206
"isort !=5.13.0",
]
typing = [
"argcomplete",
"basedpyright",
"fedrq[test]",
"mypy",
"tomli-w",
"types-requests",
"typing_extensions",
]
test = [
"pytest",
"pytest-mock",
"tomli-w",
]
dev = [
"fedrq[codeqa]",
"fedrq[doc]",
"fedrq[formatters]",
"fedrq[test]",
"fedrq[typing]",
"nox",
]
[project.urls]
Homepage = "https://fedrq.gtmx.me"
Changelog = "https://fedrq.gtmx.me/News"
"Mailing List" = "https://lists.sr.ht/~gotmax23/fedrq"
Source = "https://git.sr.ht/~gotmax23/fedrq"
[project.scripts]
fedrq = "fedrq.cli:main"
[tool.flit.sdist]
include = [
"src/fedrq/data/",
"LICENSES/*",
]
[tool.flit.external-data]
# Currently, this just contains share/licenses/fedrq to work around flit's lack
# of proper support for including these files in dist-info.
# To comply with the license, its must be included in the wheel.
directory = ".data"
[tool.mypy]
check_untyped_defs = true
# plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["argcomplete.*", "dnf.*", "hawkey.*", "libdnf5.*", "rpm.*"]
ignore_missing_imports = true
[tool.basedpyright]
typeCheckingMode = "standard"
[tool.pytest.ini_options]
markers = ["no_rpm_mock: Tests that cannot be run in a mock chroot w/o networking"]
addopts = [
"--import-mode=importlib",
]
pythonpath = ["."]
[tool.isort]
profile = "black"
# add_imports = [
# 'from __future__ import annotations',
# ]
[tool.coverage.run]
source = [
"fedrq",
]
omit = [
"src/fedrq/_compat.py",
"src/fedrq/__main__.py",
]
[tool.coverage.paths]
source = [
"src",
"*/site-packages",
]
[tool.coverage.report]
# https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
# These should use single quotes in TOML, as they're regular expressions.
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if __name__ == .__main__.:',
'if TYPE_CHECKING:',
'if t\.TYPE_CHECKING:',
'@(abc\.)?abstractmethod',
'@overload',
'except ImportError',
'raise AssertionError\("unreachable"\)',
'\.\.\.',
]
omit = [
"src/fedrq/_compat.py",
"src/fedrq/__main__.py",
]
[tool.pip-tools]
resolver = "backtracking"
allow-unsafe = true
quiet = true
strip-extras = true