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

Fix incompatibility with bionic #9769

Merged
merged 2 commits into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .buildkite/scripts/test_old_deps.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/usr/bin/env bash

# this script is run by buildkite in a plain `xenial` container; it installs the
# minimal requirements for tox and hands over to the py35-old tox environment.
# minimal requirements for tox and hands over to the py3-old tox environment.

set -ex

apt-get update
apt-get install -y python3.5 python3.5-dev python3-pip libxml2-dev libxslt-dev xmlsec1 zlib1g-dev tox
apt-get install -y python3 python3-dev python3-pip libxml2-dev libxslt-dev xmlsec1 zlib1g-dev tox

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
exec tox -e py3-old,combine
1 change: 1 addition & 0 deletions changelog.d/9769.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix incompatibility with `tox` 2.5.
22 changes: 14 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ commands =
# we use "env" rather than putting a value in `setenv` so that it is not
# inherited by other tox environments.
#
# keep this in sync with the copy in `testenv:py35-old`.
# keep this in sync with the copy in `testenv:py3-old`.
#
/usr/bin/env COVERAGE_PROCESS_START={toxinidir}/.coveragerc "{envbindir}/trial" {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:}

Expand Down Expand Up @@ -103,8 +103,9 @@ usedevelop=true

# A test suite for the oldest supported versions of Python libraries, to catch
# any uses of APIs not available in them.
[testenv:py35-old]
skip_install=True
[testenv:py3-old]
skip_install = true
usedevelop = false
deps =
# Old automat version for Twisted
Automat == 0.3.0
Expand Down Expand Up @@ -136,7 +137,8 @@ commands =
python -m synmark {posargs:}

[testenv:packaging]
skip_install=True
skip_install = true
usedevelop = false
deps =
check-manifest
commands =
Expand All @@ -154,7 +156,8 @@ extras = lint
commands = isort -c --df --sp setup.cfg {[base]lint_targets}

[testenv:check-newsfragment]
skip_install = True
skip_install = true
usedevelop = false
deps = towncrier>=18.6.0rc1
commands =
python -m towncrier.check --compare-with=origin/develop
Expand All @@ -163,7 +166,8 @@ commands =
commands = {toxinidir}/scripts-dev/generate_sample_config --check

[testenv:combine]
skip_install = True
skip_install = true
usedevelop = false
deps =
coverage
pip>=10 ; python_version >= '3.6'
Expand All @@ -173,14 +177,16 @@ commands=
coverage report

[testenv:cov-erase]
skip_install = True
skip_install = true
usedevelop = false
deps =
coverage
commands=
coverage erase

[testenv:cov-html]
skip_install = True
skip_install = true
usedevelop = false
deps =
coverage
commands=
Expand Down