@@ -60,7 +60,7 @@ passenv =
60
60
# Pass through the default AWS region (used for integration tests)
61
61
AWS_DEFAULT_REGION
62
62
sitepackages = False
63
- deps = -rtest/ requirements.txt
63
+ deps = -rdev_requirements/test- requirements.txt
64
64
# 'download' forces tox to always upgrade pip to the latest
65
65
download = true
66
66
commands =
@@ -91,7 +91,7 @@ commands =
91
91
# Do not select any specific markers
92
92
manual: {[testenv:base-command]commands}
93
93
# Only run examples tests
94
- examples: {[testenv:base-command]commands} examples/test/ -m " examples"
94
+ examples: {[testenv:base-command]commands} examples/test -m " examples"
95
95
96
96
# Run code coverage on the unit tests
97
97
[testenv:coverage]
@@ -106,7 +106,7 @@ sitepackages = False
106
106
passenv =
107
107
setenv =
108
108
# ########################################################
109
- deps = -rtest/ requirements.txt
109
+ deps = -rdev_requirements/test- requirements.txt
110
110
commands = {[testenv:base-command]commands} -m " local and not slow and not veryslow and not nope" --ignore =examples
111
111
112
112
# Collect requirements for use in upstream tests
@@ -149,6 +149,7 @@ sitepackages = False
149
149
recreate = True
150
150
deps =
151
151
{[testenv:build]deps}
152
+ -rdev_requirements/test-requirements.txt
152
153
commands =
153
154
{[testenv:build]commands}
154
155
{toxinidir}/test/source-build-check.sh {envtmpdir} {toxinidir}/dist
@@ -186,14 +187,7 @@ commands =
186
187
# Linters
187
188
[testenv:flake8]
188
189
basepython = python3
189
- deps =
190
- flake8
191
- flake8-docstrings
192
- flake8-isort
193
- # https://github.com/PyCQA/pydocstyle/issues/375
194
- pydocstyle<4.0.0
195
- # https://github.com/JBKahn/flake8-print/pull/30
196
- flake8-print>=3.1.0
190
+ deps = -rdev_requirements/linter-requirements.txt
197
191
commands =
198
192
flake8 \
199
193
src/dynamodb_encryption_sdk/ \
@@ -202,7 +196,7 @@ commands =
202
196
203
197
[testenv:flake8-tests]
204
198
basepython = {[testenv:flake8]basepython}
205
- deps = {[testenv:flake8]deps}
199
+ deps = -rdev_requirements/linter-requirements.txt
206
200
commands =
207
201
flake8 \
208
202
# Ignore F811 redefinition errors in tests (breaks with pytest-mock use)
@@ -214,7 +208,7 @@ commands =
214
208
215
209
[testenv:flake8-examples]
216
210
basepython = {[testenv:flake8]basepython}
217
- deps = {[testenv:flake8]deps}
211
+ deps = {[testenv:flake8]deps}
218
212
commands =
219
213
flake8 \
220
214
# Ignore C901 complexity requirements (examples optimize for straightforward readability)
@@ -232,8 +226,7 @@ commands =
232
226
basepython = python3
233
227
deps =
234
228
{[testenv]deps}
235
- pyflakes
236
- pylint
229
+ -rdev_requirements/linter-requirements.txt
237
230
commands =
238
231
pylint \
239
232
--rcfile =src/pylintrc \
@@ -261,8 +254,7 @@ commands =
261
254
262
255
[testenv:blacken-src]
263
256
basepython = python3
264
- deps =
265
- black
257
+ deps = -rdev_requirements/linter-requirements.txt
266
258
commands =
267
259
black --line-length 120 \
268
260
src/dynamodb_encryption_sdk/ \
@@ -276,28 +268,24 @@ commands =
276
268
277
269
[testenv:blacken]
278
270
basepython = python3
279
- deps =
280
- {[testenv:blacken-src]deps}
271
+ deps = {[testenv:blacken-src]deps}
281
272
commands =
282
273
{[testenv:blacken-src]commands}
283
274
284
275
[testenv:black-check]
285
276
basepython = python3
286
- deps =
287
- {[testenv:blacken]deps}
277
+ deps = {[testenv:blacken]deps}
288
278
commands =
289
279
{[testenv:blacken-src]commands} --diff
290
280
291
281
[testenv:isort-seed]
292
282
basepython = python3
293
- deps = seed-isort-config
283
+ deps = -rdev_requirements/linter-requirements.txt
294
284
commands = seed-isort-config
295
285
296
286
[testenv:isort]
297
287
basepython = python3
298
- # We need >=5.0.0 because
299
- # several configuration settings changed with 5.0.0
300
- deps = isort>=5.0.0
288
+ deps = -rdev_requirements/linter-requirements.txt
301
289
commands = isort \
302
290
src \
303
291
test \
@@ -316,8 +304,8 @@ commands = {[testenv:isort]commands} -c
316
304
[testenv:autoformat]
317
305
basepython = python3
318
306
deps =
319
- {[testenv:isort]deps}
320
307
{[testenv:blacken]deps}
308
+ {[testenv:isort]deps}
321
309
commands =
322
310
{[testenv:isort]commands}
323
311
{[testenv:blacken]commands}
@@ -337,27 +325,27 @@ commands =
337
325
basepython = python3
338
326
whitelist_externals = {[testenv:resetdocs]whitelist_externals}
339
327
deps =
340
- sphinx
341
- doc8
328
+ -rdev_requirements/doc-requirements.txt
329
+ -rdev_requirements/linter-requirements.txt
342
330
commands =
343
331
{[testenv:resetdocs]commands}
344
332
doc8 doc/index.rst doc/lib/ README.rst CHANGELOG.rst
345
333
346
334
347
335
[testenv:readme]
348
336
basepython = python3
349
- deps = readme_renderer
337
+ deps = -rdev_requirements/linter-requirements.txt
350
338
commands = python setup.py check -r -s
351
339
352
340
[testenv:bandit]
353
341
basepython = python3
354
- deps = bandit
342
+ deps = -rdev_requirements/linter-requirements.txt
355
343
commands = bandit -r src/dynamodb_encryption_sdk/
356
344
357
345
# Prone to false positives: only run independently
358
346
[testenv:vulture]
359
347
basepython = python3
360
- deps = vulture
348
+ deps = -rdev_requirements/linter-requirements.txt
361
349
commands = vulture src/dynamodb_encryption_sdk/
362
350
363
351
[testenv:linters]
@@ -387,7 +375,7 @@ commands =
387
375
# Documentation
388
376
[testenv:docs]
389
377
basepython = python3
390
- deps = -rdoc/ requirements.txt
378
+ deps = -rdev_requirements/doc- requirements.txt
391
379
commands =
392
380
sphinx-build -E -c doc/ -b html doc/ doc/build/html
393
381
sphinx-build -E -c doc/ -b linkcheck doc/ doc/build/html
@@ -404,27 +392,21 @@ commands =
404
392
[testenv:park]
405
393
basepython = python3
406
394
skip_install = true
407
- deps =
408
- pypi-parker
409
- setuptools
395
+ deps = -rdev_requirements/release-requirements.txt
410
396
commands = python setup.py park
411
397
412
398
# Release tooling
413
399
[testenv:build]
414
400
basepython = python3
415
401
skip_install = true
416
- deps =
417
- wheel
418
- setuptools
402
+ deps = -rdev_requirements/release-requirements.txt
419
403
commands =
420
404
python setup.py sdist bdist_wheel
421
405
422
406
[testenv:release-base]
423
407
basepython = python3
424
408
skip_install = true
425
- deps =
426
- {[testenv:build]deps}
427
- twine
409
+ deps = -rdev_requirements/release-requirements.txt
428
410
passenv =
429
411
# Intentionally omit TWINE_REPOSITORY_URL from the passenv list,
430
412
# as this overrides other ways of setting the repository and could
0 commit comments