-
Notifications
You must be signed in to change notification settings - Fork 149
/
pyproject.toml
175 lines (153 loc) · 4.21 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
# SPDX-FileCopyrightText: 2018 Free Software Foundation Europe e.V. <https://fsfe.org>
# SPDX-FileCopyrightText: 2022 Alliander N.V. <https://www.alliander.com>
# SPDX-FileCopyrightText: 2022 Carmen Bianca Bakker <[email protected]>
# SPDX-FileCopyrightText: 2023 DB Systel GmbH
#
# SPDX-License-Identifier: GPL-3.0-or-later
[tool.poetry]
name = "reuse"
version = "5.0.2"
description = "reuse is a tool for compliance with the REUSE recommendations."
authors = [
"Free Software Foundation Europe <[email protected]>",
]
maintainers = [
"Carmen Bianca Bakker <[email protected]>",
"Max Mehl <[email protected]>",
"Linus Sehn <[email protected]>",
]
license = "Apache-2.0 AND CC0-1.0 AND CC-BY-SA-4.0 AND GPL-3.0-or-later"
readme = "README.md"
packages = [
{ include = "reuse", from = "src" }
]
include = [
{ path = "src/reuse/locale/**/*.mo", format="wheel" },
{ path = "tests", format = "sdist" },
{ path = "po", format = "sdist" },
{ path = "AUTHORS.rst", format = "sdist" },
{ path = "README.md", format = "sdist" },
{ path = "CHANGELOG.md", format = "sdist" },
{ path = "CONTRIBUTING.md", format = "sdist" },
{ path = ".reuse", format = "sdist" },
{ path = "REUSE.toml", format = "sdist" },
{ path = "LICENSES", format = "sdist" },
{ path = "docs", format = "sdist" },
]
homepage = "https://reuse.software/"
repository = "https://github.com/fsfe/reuse-tool"
documentation = "https://reuse.readthedocs.org/"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved",
"License :: DFSG approved",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
]
[tool.poetry.dependencies]
python = "^3.9"
Jinja2 = ">=3.0.0"
binaryornot = ">=0.4.4"
"boolean.py" = ">=3.8"
license-expression = ">=1.0"
python-debian = ">=0.1.34,!=0.1.45,!=0.1.46,!=0.1.47"
# TODO: Consider removing this dependency in favour of tomllib when dropping
# Python 3.10.
tomlkit = ">=0.8"
attrs = ">=21.3"
click = ">=8.0"
[tool.poetry.group.test.dependencies]
pytest = ">=6.0.0"
pytest-cov = ">=2.10.0"
freezegun = ">=1.0.0"
[tool.poetry.group.docs.dependencies]
Sphinx = ">=4.0.0"
myst-parser = ">=2.0.0"
sphinxcontrib-apidoc = ">=0.3.0"
furo = ">=2023.3.27"
[tool.poetry.group.dev.dependencies]
black = ">=20"
isort = ">=5.6.0"
pre-commit = ">=2.9.0"
bumpver = ">=2023.1129"
pylint = ">=2.12.2"
mypy = ">=1.0"
GitPython = ">=3.0"
protokolo = { version = ">=2.1.0", python = "^3.11" }
[tool.poetry.group.lsp]
optional = true
[tool.poetry.group.lsp.dependencies]
python-lsp-server = "*"
pylsp-mypy = "*"
pyls-isort = "*"
python-lsp-black = "*"
[tool.poetry.scripts]
reuse = "reuse.cli.main:main"
[tool.poetry.build]
generate-setup-file = false
script = "_build.py"
[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
[bumpver]
current_version = "v5.0.2"
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "Bump version: {old_version} → {new_version}"
tag_message = "{new_version}"
tag_scope = "default"
pre_commit_hook = ""
post_commit_hook = ""
commit = true
tag = false
push = false
[bumpver.file_patterns]
"pyproject.toml" = [
'^version = "{pep440_version}"$',
'^current_version = "{version}"$',
]
"src/reuse/__init__.py" = [
'__version__ = "{pep440_version}"$',
]
"docs/conf.py" = [
'release = "{pep440_version}"$',
]
"README.md" = [
'rev: {version}$',
]
[tool.protokolo]
changelog = "CHANGELOG.md"
markup = "markdown"
directory = "changelog.d"
[tool.black]
line-length = 80
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 80
[tool.pytest.ini_options]
addopts = "--doctest-modules"
[tool.mypy]
files = [
"src/reuse/**.py",
"tests/**.py",
]
exclude = [
'^_build\.py$',
'^conf\.py$',
]
[[tool.mypy.overrides]]
module = "reuse.*"
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
module = [
"binaryornot.check",
"boolean.boolean",
"license_expression",
"pkg_resources",
]
ignore_missing_imports = true