File: pyproject.toml

package info (click to toggle)
python-debian 1.0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,260 kB
  • sloc: python: 12,905; makefile: 239; sh: 25
file content (168 lines) | stat: -rw-r--r-- 3,502 bytes parent folder | download
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
# https://peps.python.org/pep-0517/
[build-system]
requires = [
    "setuptools>=61",
    "setuptools_scm[toml]>=6.2",
    "wheel",
]
build-backend = "setuptools.build_meta"

# https://peps.python.org/pep-0621/
[project]
name = "python-debian"
dynamic = [
    "version",
]
description = "Modules to read and manipulate many file formats related to Debian packages and repositories"
readme = "README.rst"
requires-python = ">=3.7"
license = { text = "GPL-2.0-or-later" }
authors = [
    {name = "Debian python-debian Maintainers", email = "pkg-python-debian-maint@lists.alioth.debian.org"},
]
classifiers = [
  "Development Status :: 5 - Production/Stable",
  "Programming Language :: Python",
  "Intended Audience :: Developers",
  "License :: DFSG approved",
  "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
  "Operating System :: POSIX",
]
keywords = ["debian", "linux", "metadata", "packages", "packaging"]
dependencies = [
    "charset-normalizer",
]

[project.urls]
homepage = "https://salsa.debian.org/python-debian-team/python-debian"

# https://peps.python.org/pep-0621/#dependencies-optional-dependencies
[project.optional-dependencies]
test = [
    "pytest",
    "pytest-cov",
]

# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[tool.setuptools]
include-package-data = true
platforms = [ "any" ]
# packages = [
#     "debian",
#     "debian.tests",
#     "debian._deb822_repro",
# ]

[tool.setuptools.packages.find]
where = ["src"]
include = [
    "debian*",
]
exclude = [
    "debian/tests",
]
namespaces = false

[tool.setuptools.package-data]
"*" = [
    "py.typed",
    "*.pyi",
]

[tool.setuptools_scm]
write_to = "src/debian/_version.py"
# needs setuptools_scm > 8
# version_file = "debian/_version.py"


# https://docs.pytest.org/en/6.2.x/customize.html
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
    "--import-mode=prepend",
    # "--cov-report=term-missing",
    # "--cov=src/debian",
    # "--cov=tests",
    "--doctest-modules",
    "-v",
    "-rsx",
]
log_level = "DEBUG"
filterwarnings = [
]
testpaths = [
    "src",
    "tests",
]
pythonpath = "src"


# https://coverage.readthedocs.io/en/6.4/config.html
[tool.coverage.run]
branch = true
source = [
    "src",
    "tests",
]

[tool.coverage.report]
exclude_lines = [
    "pragma: no cover",
    "if TYPE_CHECKING:",
    "@overload",
    "except ImportError",
    "if __name__ == .__main__.:",
]



# https://mypy.readthedocs.io/en/stable/config_file.html
[tool.mypy]
files = [
    "src",
    "tests",
]
strict = true
show_error_codes = true
pretty = true
ignore_missing_imports = true
warn_unused_ignores = false



[tool.pylint.main]
extension-pkg-whitelist = ["apt_pkg"]
# ignore = ["tests"]
persistent = false

[tool.pylint."messages control"]
disable = [
    "consider-using-f-string",
    "fixme",
    "invalid-name",
    "locally-disabled",
    "missing-docstring",
    "protected-access",
    "raise-missing-from",
    "super-with-arguments",
    "too-few-public-methods",
    "too-many-ancestors",
    "too-many-boolean-expressions",
    "too-many-branches",
    "too-many-instance-attributes",
    "too-many-arguments",
    "too-many-lines",
    "too-many-locals",
    "too-many-nested-blocks",
    "too-many-positional-arguments",
    "too-many-public-methods",
    "too-many-statements",
    "unsubscriptable-object",
    "useless-object-inheritance",
]

[tool.pylint.reports]
reports = false

[tool.pylint.similarities]
min-similarity-lines = 999