Pin/upgrade virtualenv in our tests (#7211)

* Update virtualenv to the latest version.

* Use venv from pip and pin more packages.

* Pin codecov.

* update appveyor config

* Write the path separator backwards.

* s/pip_install.py install/pip_install.py

* Prefix tools\\pip_install.py with python exe.

* Upgrade py to fix AppVeyor failures.

* add back comment

* Update virtualenv with CERTBOT_NO_PIN.

* Pass -U to upgrade tox and deps.

* Upgrade virtualenv.
This commit is contained in:
Brad Warren 2019-07-02 10:02:00 -07:00 committed by Joona Hoikkala
parent 76b7eb0628
commit 3e872627d8
3 changed files with 11 additions and 5 deletions

View file

@ -257,7 +257,6 @@ addons:
apt:
packages: # Keep in sync with letsencrypt-auto-source/pieces/bootstrappers/deb_common.sh and Boulder.
- python-dev
- python-virtualenv
- gcc
- libaugeas0
- libssl-dev
@ -267,7 +266,12 @@ addons:
- nginx-light
- openssl
install: "$(command -v pip || command -v pip3) install codecov tox"
# tools/pip_install.py is used to pin packages to a known working version
# except in tests where the environment variable CERTBOT_NO_PIN is set.
# virtualenv is listed here explicitly to make sure it is upgraded when
# CERTBOT_NO_PIN is set to work around failures we've seen when using an older
# version of virtualenv.
install: "tools/pip_install.py -U codecov tox virtualenv"
script: tox
after_success: '[ "$TOXENV" == "py27-cover" ] && codecov -F linux'

View file

@ -27,7 +27,8 @@ install:
# Upgrade pip to avoid warnings
- "python -m pip install --upgrade pip"
# Ready to install tox and coverage
- "pip install tox codecov"
# tools/pip_install.py is used to pin packages to a known working version.
- "python tools\\pip_install.py tox codecov"
build: off

View file

@ -13,6 +13,7 @@ backports.shutil-get-terminal-size==1.0.0
boto3==1.9.36
botocore==1.12.36
cloudflare==1.5.1
codecov==2.0.15
configparser==3.7.4
coverage==4.4.2
decorator==4.1.2
@ -47,7 +48,7 @@ pkginfo==1.4.2
pluggy==0.5.2
prompt-toolkit==1.0.15
ptyprocess==0.5.2
py==1.4.34
py==1.8.0
pyasn1==0.1.9
pyasn1-modules==0.0.10
Pygments==2.2.0
@ -81,6 +82,6 @@ twine==1.11.0
typed-ast==1.1.0
typing==3.6.4
uritemplate==0.6
virtualenv==15.1.0
virtualenv==16.6.1
wcwidth==0.1.7
wrapt==1.11.1