Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix Python 3.5 old deps build by using a compatible pip version. (#9217)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Callahan <[email protected]>

pip 21.0 stopped supporting Python 3.5.
  • Loading branch information
clokep authored Jan 25, 2021
1 parent e448dbb commit a71be9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .buildkite/scripts/test_old_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ apt-get install -y python3.5 python3.5-dev python3-pip libxml2-dev libxslt-dev x

export LANG="C.UTF-8"

# Prevent virtualenv from auto-updating pip to an incompatible version
export VIRTUALENV_NO_DOWNLOAD=1

exec tox -e py35-old,combine
1 change: 1 addition & 0 deletions changelog.d/9217.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the Python 3.5 old dependencies build.
15 changes: 7 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ deps =
# installed on that).
#
# anyway, make sure that we have a recent enough setuptools.
setuptools>=18.5
setuptools>=18.5 ; python_version >= '3.6'
setuptools>=18.5,<51.0.0 ; python_version < '3.6'

# we also need a semi-recent version of pip, because old ones fail to
# install the "enum34" dependency of cryptography.
pip>=10
pip>=10 ; python_version >= '3.6'
pip>=10,<21.0 ; python_version < '3.6'

# directories/files we run the linters on.
# if you update this list, make sure to do the same in scripts-dev/lint.sh
Expand Down Expand Up @@ -104,15 +106,10 @@ usedevelop=true
[testenv:py35-old]
skip_install=True
deps =
# Ensure a version of setuptools that supports Python 3.5 is installed.
setuptools < 51.0.0

# Old automat version for Twisted
Automat == 0.3.0

lxml
coverage
coverage-enable-subprocess==1.0
{[base]deps}

commands =
# Make all greater-thans equals so we test the oldest version of our direct
Expand Down Expand Up @@ -169,6 +166,8 @@ commands = {toxinidir}/scripts-dev/generate_sample_config --check
skip_install = True
deps =
coverage
pip>=10 ; python_version >= '3.6'
pip>=10,<21.0 ; python_version < '3.6'
commands=
coverage combine
coverage report
Expand Down

0 comments on commit a71be9d

Please sign in to comment.