Skip to content

Commit

Permalink
Slightly speed up pip installs by skipping the version check in CI.
Browse files Browse the repository at this point in the history
Also remove some old version upgrading cruft.
  • Loading branch information
Julian committed Jun 1, 2022
1 parent b621484 commit fd3a457
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ setenv =
whitelist_externals =
mkdir
commands =
{envpython} -m pip install 'pip>=21.1.1' # Evade CVE-2021-28363

noextra: {envpython} -m pip install {toxinidir}
format,perf: {envpython} -m pip install '{toxinidir}[format]'
format_nongpl: {envpython} -m pip install '{toxinidir}[format_nongpl]'
noextra: {envpython} -m pip install --disable-pip-version-check {toxinidir}
format,perf: {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format]'
format_nongpl: {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format_nongpl]'

# Ignore the deprecation warning until pypa/setuptools#3276 is released
tests,coverage,codecov: {envpython} -Werror -W"ignore:module 'sre_constants' is deprecated:DeprecationWarning" -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema}
Expand Down Expand Up @@ -69,11 +67,7 @@ commands =
[testenv:safety]
deps = safety
commands =
{envpython} -m pip install 'pip>=21.1.1' # Evade CVE-2021-28363

# Remove once pypa/pip#7555 is closed.
{envpython} -m pip install --use-feature=in-tree-build '{toxinidir}[format]'

{envpython} -m pip install --disable-pip-version-check '{toxinidir}[format]'
{envpython} -m safety check

[testenv:secrets]
Expand Down

0 comments on commit fd3a457

Please sign in to comment.