-
Notifications
You must be signed in to change notification settings - Fork 34
/
pyproject.toml
197 lines (171 loc) · 5.15 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
197
[tool.poetry]
name = "datagrepper"
version = "1.1.0"
description = "A webapp to query datanommer"
authors = [
"Fedora Infrastructure <admin@fedoraproject.org>"
]
license = "GPL-2.0-or-later"
readme = "README.md"
repository = "https://github.com/fedora-infra/datagrepper"
homepage = "https://github.com/fedora-infra/datagrepper"
packages = [
{ include = "datagrepper" },
{ include = "tests", format = "sdist" },
]
include = [
{ path = "apache/*", format = "sdist" },
{ path = "devel/*", format = "sdist" },
{ path = "COPYING", format = "sdist" },
{ path = "datagrepper/docs/*", format = "sdist" },
]
exclude = [
{ path = "datagrepper/docs/_build", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.10"
"datanommer-models" = "^1.0.0"
arrow = "^1.1.1"
docutils = ">=0.16"
flask = ">=2.0.1"
fedora-messaging = ">=2.1.0"
"moksha.common" = "^1.2.5"
pygal = ">=2.4.0"
Pygments = "^2.9.0"
python-dateutil = "^2.8.1"
psycopg2 = "^2.9.1"
cffi = "^1.14.6"
gunicorn = {version = "^20.0 || ^21.0.0 || ^22.0.0 || ^23.0.0", optional = true}
SQLAlchemy = "^1.4.0 || ^2.0.0"
flask-healthz = "^1.0.0"
# Message schemas. The reference list of all message schemas is in
# https://github.com/fedora-infra/fedora-messaging/blob/develop/docs/schema-packages.txt
anitya-schema = {version = "*", optional = true}
bodhi-messages = {version = "*", optional = true}
bugzilla2fedmsg-schema = {version = "*", optional = true}
ci-messages = {version = "*", optional = true}
copr-messaging = {version = "*", optional = true}
discourse2fedmsg-messages = {version = "*", optional = true}
fedocal-messages = {version = "*", optional = true}
fedorainfra-ansible-messages = {version = "*", optional = true}
fedora-elections-messages = {version = "*", optional = true}
fedora-image-uploader-messages = {version = "*", optional = true}
fedora-messaging-git-hook-messages = {version = "*", optional = true}
fedora-messaging-the-new-hotness-schema = {version = "*", optional = true}
fedora-planet-messages = {version = "*", optional = true}
fmn-messages = {version = "*", optional = true}
kerneltest-messages = {version = "^1.0.0", optional = true}
koji-fedoramessaging-messages = {version = "^1.2.2", optional = true}
koschei-messages = {version = "*", optional = true}
maubot-fedora-messages = {version = "*", optional = true}
mediawiki-messages = {version = "*", optional = true}
meetbot-messages = {version = "*", optional = true}
mdapi-messages = {version = "*", optional = true}
noggin-messages = {version = "*", optional = true}
nuancier-messages = {version = "*", optional = true}
pagure-messages = {version = "*", optional = true}
tahrir-messages = {version = "*", optional = true}
[tool.poetry.dev-dependencies]
pre-commit = ">=2.13.0"
black = ">=22.3.0"
isort = ">=5.9.2"
flake8 = ">=4.0.0"
pytest = ">=7.1.0"
liccheck = ">=0.6.0"
Sphinx = ">=4.3.0"
pytest-cov = ">=3.0.0"
towncrier = ">=21.3.0"
[tool.poetry.extras]
deploy = ["gunicorn"]
schemas = [
"anitya-schema",
"bodhi-messages",
"bugzilla2fedmsg-schema",
"ci-messages",
"copr-messaging",
"discourse2fedmsg-messages",
"fedocal-messages",
"fedorainfra-ansible-messages",
"fedora-elections-messages",
"fedora-image-uploader-messages",
"fedora-messaging-git-hook-messages",
"fedora-messaging-the-new-hotness-schema",
"fedora-planet-messages",
"fmn-messages",
"kerneltest-messages",
"koji-fedoramessaging-messages",
"koschei-messages",
"maubot-fedora-messages",
"mediawiki-messages",
"meetbot-messages",
"mdapi-messages",
"noggin-messages",
"nuancier-messages",
"pagure-messages",
"tahrir-messages",
]
[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 = ["py310"]
[tool.pytest.ini_options]
addopts = "-v --cov --cov-report term-missing --cov-report html --cov-report xml"
[tool.coverage.run]
branch = true
source = ["datagrepper"]
omit = ['datagrepper/__init__.py']
[tool.coverage.paths]
source = ["datagrepper"]
[tool.coverage.report]
fail_under = 63
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
]
[tool.towncrier]
package = "datagrepper"
filename = "datagrepper/docs/release_notes.rst"
directory = "news/"
title_format = "v{version}"
issue_format = "{issue}"
template = "news/_template.rst.j2"
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