From 3209d3b57db9d5f9acc7b0ac34119966d330d647 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Fri, 6 Dec 2024 11:58:43 -0500 Subject: [PATCH] Travis: Downgrade to setuptools 59.6.0 to avoid error in 71.x There seems to be a well known error in setuptools 71.x that prevents installation of cpp-coveralls on Travis now: File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 285, in _distribution_fullname canonicalize_version(version, strip_trailing_zero=False), TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero' Fall back to the default version that is used in Ubuntu Jammy (59.6.0) since later versions also lead to the same error. Link: https://github.com/pypa/setuptools/issues/4483 Signed-off-by: Stefan Berger --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3986020ef..8c64e1d5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,7 @@ matrix: TARGET="install" NPROC="nproc" dist: jammy before_script: + - sudo pip install setuptools==59.6.0 # Default Jammy version - sudo pip install cpp-coveralls script: ./autogen.sh ${CONFIG} && @@ -51,7 +52,7 @@ matrix: sudo rm -rf /dev/tpm* && sudo apt -y install devscripts equivs python3-twisted expect libtasn1-dev socat findutils gnutls-dev gnutls-bin tss2 - python3-setuptools libjson-glib-dev && + libjson-glib-dev && ./autogen.sh --with-gnutls --prefix=/usr && export SWTPM_TEST_EXPENSIVE=1 SWTPM_TEST_IBMTSS2=1 && sudo make -j$(nproc) check &&