From 798e93f6be6fe42a526761652d69597d3f24d8af Mon Sep 17 00:00:00 2001 From: Mario Corchero Date: Tue, 18 May 2021 15:05:46 +0200 Subject: ci: Upgrade setuptools when installing dependencies We are using `setup_requires` which uses `easy_install` in old versions of `setuptools` rather than pip. This results in the installation of the latest version of `setuptools_scm`, as `easy_install` does not support `python_requires` tags. This commit runs the CI with the latest version available of `setuptools` for Python 3.4, which should be frozen. --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0b50a27..6ce5413 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,10 @@ install: pip install -U "pip==10.0.1" PIP_ARGS="-c requirements/3.3/constraints.txt" fi + - | + if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then + pip install -U setuptools + fi - pip install -U "tox<3.8.0" $PIP_ARGS - if [[ $TOXENV == "py" ]]; then ./ci_tools/retry.sh python updatezinfo.py; fi -- cgit v1.2.1 From aa1e2831cedf37615518ac1060a508eab78ba434 Mon Sep 17 00:00:00 2001 From: Mario Corchero Date: Tue, 18 May 2021 15:40:03 +0200 Subject: ci: Prevent pip from consuming 21.1.0 Version 21.1.0 breaks Python 3.4 installations, and even if the version was yanked from `pypi.org`, the version of pip available for Python 3.4 does not recognized yanked metadata and installs it. --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5356770..9bedda8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,3 +6,4 @@ hypothesis >= 3.30 coverage mock ; python_version < '3.0' pep517 >= 0.5.0 +attrs!=21.1.0 -- cgit v1.2.1