Bug 1741028 - clustershell depends on Python 2
Summary: clustershell depends on Python 2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: clustershell
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephane Thiell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F31_PY2REMOVAL
TreeView+ depends on / blocked
 
Reported: 2019-08-14 05:28 UTC by Lumír Balhar
Modified: 2019-08-16 07:02 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-16 07:02:48 UTC
Type: Bug


Attachments (Terms of Use)

Description Lumír Balhar 2019-08-14 05:28:40 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 clustershell'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 clustershell.
If you need anything from us, or something is unclear, please mention it here.

Thank you.

Comment 1 Stephane Thiell 2019-08-14 06:36:28 UTC
Hi Lumír,

Thanks for this ticket. clustershell is a software written in Python that does also provide a Python library used by other tools and has full support for both Python3 since 2017. As a tool and library used by sysadmins, it always primarily depends on the python version provided by the system (so far mostly Python 2). As Python 3 is now the default and Python 2 finally being removed, I'm going to remove any Python 2 dependency in version 1.8.2, which is actually being released at the moment (perfect timing), for Fedora 31+ and EPEL-8.

Stephane Thiell

Comment 2 Lumír Balhar 2019-08-14 09:18:51 UTC
Great, thank you!

It seems that nothing in rawhide depends on python2-clustershell so this subpackage can be freely removed.

Comment 3 Stephane Thiell 2019-08-14 14:46:31 UTC
Perfect. I fixed it in https://bodhi.fedoraproject.org/updates/FEDORA-2019-91a545e43b
(I can't seem to link this update to this ticket as it has been auto-pushed to stable already.)

Comment 4 Lumír Balhar 2019-08-16 06:51:43 UTC
The last build seems to be python-3-only so you can close this bug. However, I'd not push the same change to already released versions (30, 29) because users might still use clustershell Python 2 modules there.

Comment 5 Stephane Thiell 2019-08-16 07:02:48 UTC
Thanks Lumír! That is exactly the idea. The new version of clustershell 1.8.2 in Fedora 29 and 30 does still include the Python 2 modules.


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