[Debian-ha-maintainers] Bug#1061794: crmsh fails its autopkg tests with Python 3.12

Florent 'Skia' Jacquet florent.jacquet at canonical.com
Tue Feb 13 16:49:50 GMT 2024


Hi,

Those two patches should fix autopkgtest.

The importlib one shouldn't be a problem.

The looseversion one, otoh, requires a bit more attention. LooseVersion 
was part of distutils, and got removed with Python 3.12, but there 
doesn't seem to be any replacement anywhere in the standard library.
There are basically two solutions here for now:
   * use that patch since setuptools is already packaged and provide a 
working implementation of LooseVersion. It's still in a `._distutils` 
module, which doesn't make it appear as being officially part of the 
API, meaning it could break eventually if it gets removed from here too.
   * make another patch that would make use of the `looseversion` 
package [1], that is currently not packaged in Debian, but should 
probably be the safer way forward, since the only purpose of that 
package is to provide that API. I haven't yet started the work of 
packaging that `looseversion` module, and don't know if that's the right 
path forward.

Obviously, this also depends on what solution upstream will take to 
support Python 3.12. I've already opened an issue here: 
https://github.com/ClusterLabs/crmsh/issues/1324

I also have that branch that passes autopkgtests locally: 
https://git.launchpad.net/~hyask/ubuntu/+source/crmsh/log/

[1]: https://github.com/effigies/looseversion



Skia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python3.12-importlib.diff
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-ha-maintainers/attachments/20240213/6089b203/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python3.12-looseversion.diff
Type: text/x-patch
Size: 1558 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-ha-maintainers/attachments/20240213/6089b203/attachment-0001.bin>


More information about the Debian-ha-maintainers mailing list