From 35c16e1392f2b2bff86ce10dfd148bbec6766ab7 Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 6 Apr 2021 14:03:40 +0200 Subject: [PATCH 1/4] Fix travis build with python3.6 Some dependencies (cryptography / cffi) starts requiring a rust compiler. However, using a more recent `pip` should download the correct wheel, prebuilt. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 055334346..fe569fd75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,5 @@ python: - "3.9" script: tox install: + - pip install --upgrade pip - pip install tox-travis From a57b2b1e27fc982e9178fd980fb92c0741c3b3ef Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 6 Apr 2021 14:18:04 +0200 Subject: [PATCH 2/4] Do it as Travis doc said See https://docs.travis-ci.com/user/languages/python/#new-dependency-resolver-in-pip-203 --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fe569fd75..cb583cf87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ python: - "3.8" - "3.9" script: tox +before_install: + - python -m pip install --upgrade pip install: - - pip install --upgrade pip - pip install tox-travis From a7cd52bca38b402dbcf0506548b824c97cdad40d Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 6 Apr 2021 14:27:32 +0200 Subject: [PATCH 3/4] Test pip version --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index cb583cf87..8cd0e6e72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,5 @@ script: tox before_install: - python -m pip install --upgrade pip install: + - pip --version - pip install tox-travis From aa31b8ace8f3bf2c12fff7c13a07b204c72aee8a Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 6 Apr 2021 22:37:59 +0200 Subject: [PATCH 4/4] Also upgrade virtualenv As mentioned in https://travis-ci.community/t/pip-install-cryptography-fails-on-py36/11233/4 --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8cd0e6e72..cc4db2b71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ python: - "3.9" script: tox before_install: - - python -m pip install --upgrade pip + - python -m pip install --upgrade pip virtualenv install: - - pip --version - pip install tox-travis