Skip to content

Commit

Permalink
Travis: Downgrade to setuptools 59.6.0 to avoid error in 71.x
Browse files Browse the repository at this point in the history
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: pypa/setuptools#4483
Signed-off-by: Stefan Berger <[email protected]>
  • Loading branch information
stefanberger committed Dec 6, 2024
1 parent 8304e76 commit 2c59f9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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} &&
Expand All @@ -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 &&
Expand Down

0 comments on commit 2c59f9c

Please sign in to comment.