Skip to content

Commit fd3a457

Browse files
committed
Slightly speed up pip installs by skipping the version check in CI.
Also remove some old version upgrading cruft.
1 parent b621484 commit fd3a457

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

tox.ini

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ setenv =
2222
whitelist_externals =
2323
mkdir
2424
commands =
25-
{envpython} -m pip install 'pip>=21.1.1' # Evade CVE-2021-28363
26-
27-
noextra: {envpython} -m pip install {toxinidir}
28-
format,perf: {envpython} -m pip install '{toxinidir}[format]'
29-
format_nongpl: {envpython} -m pip install '{toxinidir}[format_nongpl]'
25+
noextra: {envpython} -m pip install --disable-pip-version-check {toxinidir}
26+
format,perf: {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format]'
27+
format_nongpl: {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format_nongpl]'
3028

3129
# Ignore the deprecation warning until pypa/setuptools#3276 is released
3230
tests,coverage,codecov: {envpython} -Werror -W"ignore:module 'sre_constants' is deprecated:DeprecationWarning" -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema}
@@ -69,11 +67,7 @@ commands =
6967
[testenv:safety]
7068
deps = safety
7169
commands =
72-
{envpython} -m pip install 'pip>=21.1.1' # Evade CVE-2021-28363
73-
74-
# Remove once pypa/pip#7555 is closed.
75-
{envpython} -m pip install --use-feature=in-tree-build '{toxinidir}[format]'
76-
70+
{envpython} -m pip install --disable-pip-version-check '{toxinidir}[format]'
7771
{envpython} -m safety check
7872

7973
[testenv:secrets]

0 commit comments

Comments
 (0)