Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1738111 - python-humblewx depends on Python 2
Summary: python-humblewx depends on Python 2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-humblewx
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rickard Lindberg
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F31_PY2REMOVAL 1739052
TreeView+ depends on / blocked
 
Reported: 2019-08-06 13:05 UTC by Lumír Balhar
Modified: 2019-08-22 05:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-22 05:48:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lumír Balhar 2019-08-06 13:05:30 UTC
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.

Comment 1 Rickard Lindberg 2019-08-08 08:27:12 UTC
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.

Comment 2 Rickard Lindberg 2019-08-09 11:22:19 UTC
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?

Comment 3 Lumír Balhar 2019-08-09 13:58:33 UTC
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.

Comment 4 Rickard Lindberg 2019-08-10 15:41:44 UTC
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?

Comment 5 Lumír Balhar 2019-08-11 09:03:37 UTC
(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?

Comment 6 Rickard Lindberg 2019-08-11 11:26:52 UTC
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?

Comment 7 Lumír Balhar 2019-08-12 05:47:41 UTC
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.

Comment 8 Rickard Lindberg 2019-08-12 07:41:01 UTC
> Let's wait till python2-humblewx becomes a leaf package and then you can
> remove it.

Cool. Will there be a notification of this?

Comment 9 Lumír Balhar 2019-08-12 07:58:07 UTC
(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!

Comment 10 Ben Cotton 2019-08-13 17:05:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 11 Ben Cotton 2019-08-13 17:11:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 12 Lumír Balhar 2019-08-15 06:28:36 UTC
timeline is retired in rawhide and therefore nothing depends on python2-humblewx so the subpackage can be removed.

Comment 13 Lumír Balhar 2019-08-22 05:48:02 UTC
After the rebuild, python2-humblewx is no longer present in rawhide. Thank you!

https://koji.fedoraproject.org/koji/buildinfo?buildID=1359561


Note You need to log in before you can comment on or make changes to this bug.