-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.cfg
401 lines (271 loc) · 7.91 KB
/
setup.cfg
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
# This file defines the general configuration for the kojismokydingo
# wheel, as well as the the tools tox, nose, flake8, mypy, coverage,
# bandit, and sphinx. However, most interactions should be facilitated
# via targets in the Makefile rather than invoking tox or setup.py
# directly.
[metadata]
name = kojismokydingo
version = 2.3.0
description = A collection of Koji client plugins and utils
author = Christopher O'Brien
# O'Brien breaks so many tools.
author_email = obriencj@gmail.com
copyright_years = 2020-2024
license = GNU General Public License v3 (GPLv3)
license_files =
LICENSE
long_description = file: README.md
long_description_content_type = text/markdown
home_page = https://github.com/obriencj/koji-smoky-dingo
platform = any
project_urls =
Source = https://github.com/obriencj/koji-smoky-dingo
Bug Reports = https://github.com/obriencj/koji-smoky-dingo/issues
Documentation = https://obriencj.github.io/koji-smoky-dingo
Discussions = https://obriencj.github.io/koji-smoky-dingo/discussions
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Natural Language :: English
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Software Development :: Build Tools
Topic :: Utilities
[options]
packages =
koji_cli_plugins
kojismokydingo
kojismokydingo.cli
kojismokydingo.sift
kojismokydingo.standalone
zip_safe = False
install_requires =
appdirs
koji
typing_extensions ; python_version < '3.10'
tests_require =
docutils
[options.entry_points]
koji_smoky_dingo =
affected-targets = kojismokydingo.cli.tags:AffectedTargets
block-env-var = kojismokydingo.cli.tags:BlockEnvVar
block-rpm-macro = kojismokydingo.cli.tags:BlockRPMMacro
bulk-move-builds = kojismokydingo.cli.builds:BulkMoveBuilds
bulk-tag-builds = kojismokydingo.cli.builds:BulkTagBuilds
bulk-untag-builds = kojismokydingo.cli.builds:BulkUntagBuilds
check-hosts = kojismokydingo.cli.hosts:CheckHosts
check-repo = kojismokydingo.cli.tags:CheckRepo
client-config = kojismokydingo.cli.clients:ClientConfig
cginfo = kojismokydingo.cli.users:ShowCGInfo
filter-builds = kojismokydingo.cli.builds:FilterBuilds
filter-tags = kojismokydingo.cli.tags:FilterTags
latest-archives = kojismokydingo.cli.archives:LatestArchives
list-btypes = kojismokydingo.cli.builds:ListBTypes
list-build-archives = kojismokydingo.cli.archives:ListBuildArchives
list-cgs = kojismokydingo.cli.builds:ListCGs
list-component-builds = kojismokydingo.cli.builds:ListComponents
list-env-vars = kojismokydingo.cli.tags:ListEnvVars
list-rpm-macros = kojismokydingo.cli.tags:ListRPMMacros
list-tag-extras = kojismokydingo.cli.tags:ListTagExtras
open = kojismokydingo.cli.clients:ClientOpen
perminfo = kojismokydingo.cli.users:ShowPermissionInfo
pull-container = kojismokydingo.cli.builds:PullContainer
remove-env-var = kojismokydingo.cli.tags:RemoveEnvVar
remove-rpm-macro = kojismokydingo.cli.tags:RemoveRPMMacro
renum-tag-inheritance = kojismokydingo.cli.tags:RenumTagInheritance
repoquery = kojismokydingo.cli.tags:RepoQuery
set-env-var = kojismokydingo.cli.tags:SetEnvVar
set-rpm-macro = kojismokydingo.cli.tags:SetRPMMacro
swap-tag-inheritance = kojismokydingo.cli.tags:SwapTagInheritance
userinfo = kojismokydingo.cli.users:ShowUserInfo
console_scripts =
ksd-filter-builds = kojismokydingo.standalone.builds:ksd_filter_builds
ksd-filter-tags = kojismokydingo.standalone.tags:ksd_filter_tags
[options.package_data]
kojismokydingo =
py.typed
[aliases]
# nose acts enough like the original test command, but without the
# extremely obnoxious deprecation warning. And why are they
# deprecating the test command? So someone can remove approximately 40
# lines of code from setuptools, despite the test command being the
# most convenient and available way to get started with unit testing.
test = nosetests
[vars]
nose = nose-py3
# nose = git+https://github.com/obriencj/nose-py3@safer_str
[tox:tox]
envlist = flake8,mypy,bandit,twine,py{37,38,39,310,311,312},coverage
skip_missing_interpreters = True
[testenv]
setenv =
COVERAGE_FILE = .coverage.{envname}
commands =
python -B -m coverage run -m nose tests
sitepackages = False
deps =
coverage
{[vars]nose}
download = True
[testenv:py36]
# this prevents systems with newer pythons from exploding. For some
# reason virtualenv tries to run the venv's pip with its own python
# version, not the matching one. Due to insanity with the recent
# python leadership, there are breaking API changes in 3.11 and
# onwards which make the vendored 3.6 site packages fail.
download = False
[testenv:koji-git]
# Koji 1.34.0 snuck in an API break with the removal of some values.
# We don't want to be surprised by that again, so we'll schedule this
# test to be triggered nightly. This should give us lots of warning if
# there's a python API change that hits us.
basepython = python3.9
deps =
git+https://pagure.io/koji.git@master
{[vars]nose}
recreate = True
[testenv:bandit]
basepython = python3.9
commands =
python -B -m bandit --ini setup.cfg \
-qr kojismokydingo/ koji_cli_plugins/
deps =
bandit
skip_install = True
[testenv:bandit-sarif]
basepython = python3.9
commands =
python -B -m bandit --ini setup.cfg \
-f sarif -o bandit.sarif \
-qr kojismokydingo/ koji_cli_plugins/
python -B -m sarif summary bandit.sarif
deps =
bandit
bandit-sarif-formatter
sarif-tools
skip_install = True
[testenv:flake8]
basepython = python3.9
commands =
python -B -m flake8 kojismokydingo/ koji_cli_plugins/
deps =
flake8
skip_install = True
[testenv:twine]
basepython = python3.9
commands =
python -B -m build -n .
python -B -m twine check dist/*.whl
deps =
build
twine
skip_install = True
[testenv:mypy]
basepython = python3.9
commands =
python -B -m mypy kojismokydingo --show-traceback
deps =
mypy
types-setuptools
[testenv:quicktest]
basepython = python3.9
commands =
python -B -I -m nose tests
deps =
{[vars]nose}
download = True
[testenv:coverage]
# this is just here to combine the coverage output together
setenv =
COVERAGE_FILE = .coverage
basepython = python
commands =
python -B -m coverage combine
python -B -m coverage report
python -B -m coverage html
deps =
coverage
skip_install = True
[testenv:sphinx]
basepython = python3.9
commands =
python -B -m sphinx.cmd.build -b dirhtml docs build/sphinx
deps =
sphinx
[testenv:build]
basepython = python3.9
commands =
python -B -m build -n .
deps =
build
[nosetests]
all-modules = 1
no-byte-compile = 1
verbosity = 2
[coverage:run]
source =
koji_cli_plugins
kojismokydingo
omit =
*.pyi
[coverage:report]
exclude_lines =
\.\.\.
pass
pragma: no cover
@abstract
[bandit]
# B101 complains about asserts
skips = B101
[flake8]
# E303 complains about more than one blank lines between methods in a class
# E731 assigning a lambda to a variable
# E741 ambiguous variable name
# F401 ambiguous variable name
# F812 list comprehension redefines variable (I reuse tmp names)
# W504 line break after binary operator
ignore =
E303,E731,E741,
F401,F812,
W504
filename =
*.py
*.pyi
exclude =
__pycache__
.*
build
dist
docs
gh-pages
htmlcov
setup.py
tests
todo
tools
[mypy]
no_site_packages = False
ignore_missing_imports = True
strict_optional = False
# I am intentionally making proxytype available as both a plugin, and
# as an importable module for type annotations
mypy_path = mypy/
plugins = mypy/proxytype.py
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
#
# The end.