@@ -16,9 +16,9 @@ skip_missing_interpreters = true
16
16
17
17
[testenv]
18
18
description = run the tests with pytest under {basepython}
19
- setenv = PIP_DISABLE_VERSION_CHECK = 1
20
- COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
21
- VIRTUALENV_NO_DOWNLOAD = 1
19
+ setenv =
20
+ PIP_DISABLE_PIP_VERSION_CHECK = 1
21
+ COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
22
22
passenv =
23
23
CURL_CA_BUNDLE
24
24
http_proxy
@@ -27,7 +27,8 @@ passenv =
27
27
REQUESTS_CA_BUNDLE
28
28
SSL_CERT_FILE
29
29
PYTEST_*
30
- deps = pip == 19.1.1
30
+ PIP_CACHE_DIR
31
+ deps = pip >= 19.3.1
31
32
extras = testing
32
33
commands = pytest \
33
34
--cov " {envsitepackagesdir}/tox" \
@@ -38,14 +39,14 @@ commands = pytest \
38
39
39
40
[testenv:docs]
40
41
description = invoke sphinx-build to build the HTML docs
41
- basepython = python3.7
42
+ basepython = python3.8
42
43
extras = docs
43
44
commands = sphinx-build -d " {toxworkdir}/docs_doctree" docs " {toxworkdir}/docs_out" --color -W -bhtml {posargs}
44
45
python -c ' import pathlib; print("documentation available under file://\{ 0\} ".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
45
46
46
47
[testenv:package_description]
47
48
description = check that the long description is valid
48
- basepython = python3.7
49
+ basepython = python3.8
49
50
deps = twine >= 1.12.1
50
51
# TODO installing readme-renderer[md] should not be necessary
51
52
readme-renderer[md] >= 24.0
@@ -57,15 +58,16 @@ commands = pip wheel -w {envtmpdir}/build --no-deps .
57
58
58
59
[testenv:fix_lint]
59
60
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
60
- basepython = python3.7
61
- passenv = {[testenv]passenv}
62
- # without PROGRAMDATA cloning using git for Windows will fail with an
63
- # `error setting certificate verify locations` error
64
- PROGRAMDATA
61
+ basepython = python3.8
62
+ passenv =
63
+ {[testenv]passenv}
64
+ # without PROGRAMDATA cloning using git for Windows will fail with an `error setting certificate verify locations` error
65
+ PROGRAMDATA
66
+ PRE_COMMIT_HOME
65
67
extras = lint
66
68
deps = pre-commit >= 1.14.4, < 2
67
69
skip_install = True
68
- commands = pre-commit run --all-files --show-diff-on-failure
70
+ commands = pre-commit run --all-files --show-diff-on-failure {posargs}
69
71
python -c ' import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
70
72
71
73
@@ -90,10 +92,10 @@ parallel_show_output = True
90
92
[testenv:exit_code]
91
93
# to see how the InvocationError is displayed, use
92
94
# PYTHONPATH=.:$PYTHONPATH python3 -m tox -e exit_code
93
- basepython = python3.7
95
+ basepython = python3.8
94
96
description = commands with several exit codes
95
97
skip_install = True
96
- commands = python3.7 -c " import sys; sys.exit(139)"
98
+ commands = python3.8 -c " import sys; sys.exit(139)"
97
99
98
100
[testenv:X]
99
101
description = print the positional arguments passed in with echo
@@ -150,7 +152,7 @@ known_third_party = apiclient,docutils,filelock,flaky,freezegun,git,httplib2,oau
150
152
151
153
[testenv:release]
152
154
description = do a release, required posarg of the version number
153
- basepython = python3.7
155
+ basepython = python3.8
154
156
passenv = *
155
157
deps = gitpython >= 2.1.10
156
158
towncrier >= 18.5.0
@@ -159,7 +161,7 @@ commands = python {toxinidir}/tasks/release.py --version {posargs}
159
161
160
162
[testenv:notify]
161
163
description = notify people about the release of the library
162
- basepython = python3.7
164
+ basepython = python3.8
163
165
skip_install = true
164
166
passenv = *
165
167
deps = gitpython >= 2.1.10
0 commit comments