[issue2551267] travis ci python 2.7 environment missing GPG testing.

John Rouillard <[email protected]> Mon, 27 Feb 2023 17:14:03 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

Sometime between end of December and mid February CI builds on travis-ci have been failing
when compiling gpgme.

The error is:

    pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '0.23ubuntu1' 
(package: distro-info)

Ref: https://github.com/pypa/setuptools/issues/3772
     https://stackoverflow.com/questions/75272737/error-invalid-version-0-23ubuntu1-package-
distro-info
     https://bugs.launchpad.net/ubuntu/+source/distro-info/+bug/1991606

I have:

  * verified that setuptools is at a version less than 66
  * tried to install python-gpg (which is not available
      for the ubuntu 20.04 (focal) release but was available for 18.04.
  * apt-get remove distro-info
  * upgraded to gpgme-1.18.0

My guess is something internal to the gpgme  build is upgrading setuptools
or it parsing/calling some underlying routine that is failing.

I verified that setuptools < 66 before the gpgme tarball is unpacked,
configured and built (rev a94e223f1e3e).

On python3 tests, I have worked around this by installing python3-gpg.

GitHub Actions python2 tests on 22.04 ubuntu work.
So we do have gpg testing for 2.7 roundup.

For now I am removing the pip install gpg for python 2.7 on travis.

Maybe fix this when/if we upgrade to ubuntu 22.04 from 20.04 on travis.

----------
components: Infrastructure
messages: 7736
nosy: rouilj
priority: low
severity: minor
status: new
title: travis ci python 2.7 environment missing GPG testing.
type: behavior

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551267>
_________________________________________________