-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
223 lines (141 loc) · 3.24 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
[metadata]
name = mapbind
version = 1.1.0
description = Assignment-aware binding functions
author = Christopher O'Brien
author_email = [email protected]
copyright_years = 2017-2024
license = GNU Lesser General Public License v.3
license_files =
LICENSE
long_description = file: README.md
long_description_content_type = text/markdown
home_page = https://github.com/obriencj/python-mapbind
platform = any
project_urls =
Source = https://github.com/obriencj/python-mapbind
Bug Reports = https://github.com/obriencj/python-mapbind/issues
classifiers =
Intended Audience :: Developers
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
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 :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development
[options]
python_requires = >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4
packages =
mapbind
zip_safe = False
[bdist_wheel]
universal = 1
[aliases]
test = nosetests
[tox:tox]
envlist = flake8,bandit,twine,py{37,38,39,310,311}
skip_missing_interpreters = true
[testenv]
commands =
python -B -m nose
sitepackages = false
deps =
nose-py3
[testenv:py27]
deps =
nose
[testenv:bandit-sarif]
basepython = python3.9
commands =
python -B -m bandit --ini setup.cfg \
-f sarif -o bandit.sarif \
-qr mapbind
python -B -m sarif summary bandit.sarif
deps =
bandit
bandit-sarif-formatter
sarif-tools
[testenv:flake8]
basepython = python3.9
commands =
python -B -m flake8 mapbind
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:sphinx]
basepython = python3.9
# somewhere, some idiot is proud of the removal of the build_sphinx
# setuptools integration.
commands =
python -B -m sphinx.cmd.build -b dirhtml \
docs build/sphinx/dirhtml
python -B -m sphinx.cmd.build -b html \
docs build/sphinx/html
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
[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
mypy_path = stubs/
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
# The end.