Python 2.7 will reach end-of-life in January 2020, over 9 years after it was released. This falls within the Fedora 31 lifetime. Packages that depend on Python 2 are being switched to Python 3 or removed from Fedora: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages Python 2 will be retired in Fedora 32: https://fedoraproject.org/wiki/Changes/RetirePython2 To help planning, we'd like to know the plans for python-humblewx's future. Specifically: - What is the reason for the Python2 dependency? (Is it software written in Python, or does it just provide Python bindings, or use Python in the build system or test runner?) - What are the upstream/community plans/timelines regarding Python 3? - What is the guidance for porting to Python 3? (Assuming that there is someone who generally knows how to port to Python 3, but doesn't know anything about the particular package, what are the next steps to take?) This bug is filed semi-automatically, and might not have all the context specific to python-humblewx. If you need anything from us, or something is unclear, please mention it here. Thank you.
The reason it depends on Python 2 is that it depends on wxPython (which for a long time was not ported to Python 3). Now that wxPython has a release for Python 3, humbewx can be ported. But I have not had time to do that. (I am the upstream author as well.) Not sure when I will have time either.
I've checked now and it seems humblewx is compatible with Python 3. I guess a new package should be created, python3-humblewx, that has updated dependencies?
The best way here would be to add a new subpackage python3-humblewx and test it with some Python 3 software. Timeline project depends on python2-humblewx so it would be best to coordinate with them and remove python2-humblewx from the rawhide once timeline is ported or retired.
I've added python3-humblewx to the spec file now: https://src.fedoraproject.org/rpms/python-humblewx/c/c8f1466c94bfe395507d7739648a7b9244d0b4cb?branch=master Is there anything more I need to do?
(In reply to Rickard Lindberg from comment #4) > I've added python3-humblewx to the spec file now: > https://src.fedoraproject.org/rpms/python-humblewx/c/ > c8f1466c94bfe395507d7739648a7b9244d0b4cb?branch=master > > Is there anything more I need to do? Could you please build the new package in koji so we can check that the new python3- subpackage has no python 2 dependencies?
I did a scratch build and it worked: https://koji.fedoraproject.org/koji/taskinfo?taskID=36929242 The `fedpkg build` failed though: https://koji.fedoraproject.org/koji/taskinfo?taskID=36929265 > BuildError: Error running GIT command "git clone -n git://pkgs.fedoraproject.org/rpms/python-humblewx /var/lib/mock/f31-build-17203303-1234567/root/chroot_tmpdir/scmroot/python-humblewx", see checkout.log for details I'm not sure why that is. Any idea?
It was probably just a temporary issue with the builder's network. I've done a regular build without any issue. https://koji.fedoraproject.org/koji/taskinfo?taskID=36946943 It also seems that everything is okay and resulting packages require what they should: # rpm -q --requires python3-humblewx python(abi) = 3.7 python3-wxpython4 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsZstd) <= 5.4.18-1 # rpm -q --requires python2-humblewx python(abi) = 2.7 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsZstd) <= 5.4.18-1 wxPython Let's wait till python2-humblewx becomes a leaf package and then you can remove it.
> Let's wait till python2-humblewx becomes a leaf package and then you can > remove it. Cool. Will there be a notification of this?
(In reply to Rickard Lindberg from comment #8) > > Let's wait till python2-humblewx becomes a leaf package and then you can > > remove it. > > Cool. Will there be a notification of this? Yes, we are monitoring it and will use this bug for further communication. Thank you!
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to 31.
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to '31'.
timeline is retired in rawhide and therefore nothing depends on python2-humblewx so the subpackage can be removed.
After the rebuild, python2-humblewx is no longer present in rawhide. Thank you! https://koji.fedoraproject.org/koji/buildinfo?buildID=1359561