-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
185 lines (157 loc) · 3.84 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
[tool.poetry]
name = "discourse2fedmsg"
version = "0.1.0"
description = "discourse2fedmsg"
license = "GPL-3.0-or-later"
authors = [
"Fedora Infrastructure <[email protected]>"
]
readme = "README.md"
keywords = ["web", "fedora"]
repository = "http://github.com/fedora-infra/discourse2fedmsg"
homepage = "http://github.com/fedora-infra/discourse2fedmsg"
include = [
"tox.ini",
"*.example",
"docs/*",
"docs/*/*",
"tests/*",
"tests/*/*",
]
classifiers = [
"Environment :: Web Environment",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
[tool.poetry.dependencies]
python = "^3.8"
flask = "^3.0.0"
flask-healthz = "^1.0.0"
flask-talisman = "^1.0.0"
gunicorn = ">=20.0.0"
fedora-messaging = ">=2.1.0"
discourse2fedmsg-messages = "^1.0.0"
[tool.poetry.dev-dependencies]
pytest = ">=6.2.4"
pytest-cov = ">=2.12.1"
pytest-mock = ">=3.6.1"
bandit = ">=1.6"
black = ">=21.6b0"
flake8 = ">=3.9.2"
isort = ">=5.1"
coverage = {extras = ["toml"], version = ">=7.0.0"}
liccheck = ">=0.6.0"
sphinx = ">=5.0"
beautifulsoup4 = ">=4.9"
pre-commit = ">=3.2.0"
sphinxcontrib-napoleon = ">=0.7"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
lines_after_imports = 2
force_alphabetical_sort_within_sections = true
[tool.black]
target-version = ["py38"]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
source = ["discourse2fedmsg"]
[tool.coverage.paths]
source = ["discourse2fedmsg"]
[tool.coverage.report]
fail_under = 80
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
]
omit = [
"discourse2fedmsg/__init__.py"
]
[tool.towncrier]
package = "discourse2fedmsg"
filename = "docs/release_notes.rst"
directory = "news/"
title_format = "v{version}"
issue_format = "{issue}"
template = "news/_template.rst"
underlines = "=^-"
wrap = true
all_bullets = true
[[tool.towncrier.type]]
directory = "bic"
name = "Backwards Incompatible Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "dependency"
name = "Dependency Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bug"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "dev"
name = "Development Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "docs"
name = "Documentation Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "other"
name = "Other Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "author"
name = "Contributors"
showcontent = true
[tool.liccheck]
authorized_licenses = [
"bsd",
"new bsd",
"simplified bsd",
"apache",
"apache 2.0",
"apache software",
"gnu lgpl",
"gpl v2",
"GNU General Public License v2 or later (GPLv2+)",
"GNU General Public License v3 (GPLv3)",
"GNU General Public License v3 or later (GPLv3+)",
"GNU Library or Lesser General Public License (LGPL)",
"GNU Lesser General Public License v2 or later (LGPLv2+)",
"GNU Lesser General Public License v3 or later (LGPLv3+)",
"GPLv3+",
"LGPLv2+",
"gpl v3",
"lgpl with exceptions or zpl",
"isc",
"isc license (iscl)",
"mit",
"python software foundation",
"zpl 2.1",
"mpl-2.0",
"MPL 2.0",
"Mozilla Public License 2.0 (MPL 2.0)",
"lgpl",
"CC0 (copyright waived)",
"Public Domain",
"Public Domain <http://unlicense.org>",
"Zope Public",
]