Python 2 will be replaced with Python 3 in the next RHEL major release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, see the deprecation notes for RHEL 7.5 [1]:

  Python 2 has been deprecated
  ============================

  Python 2 will be replaced with Python 3 in the next Red Hat Enterprise
  Linux (RHEL) major release.

  See the Conservative Python 3 Porting Guide [2] for information on how
  to migrate large code bases to Python 3.

While this might have been obvious from the conditionals we have been adding in some specfiles [3][4], this is AFAIK the first time this has been publicly announced.

This is important for those who like to maintain a single spec for everything. Previously, there have been messages on the devel list that encouraged people to change the python3 conditional from "if fedora" to "if fedora or rhel > 7" [5]. Please make a note that it will not be that simple, because you'll also need to add conditionals for python2, see for example already mentioned [3] or [4].

(If the conditionals are getting too complicated, consider not using them at all and maintain multiple branches of the specs instead.)

This is also important for everybody who still runs their code on Python 2. Please consider to migrate ASAP. The Conservative Python 3 Porting Guide [2] is very helpful. (I'm looking mostly at Fedora infra and QA here.)

We (Red Hat Python Maint and Fedora Python SIG) are happy to help. If you feel lost, talk to us. Also, this is a reminder that we intend to orphan Python 2 from Fedora [6] and so far nobody volunteered to maintain it.

Python 2 will go upstream EOL in 1.75 years [7].

[1] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.5_release_notes/chap-red_hat_enterprise_linux-7.5_release_notes-deprecated_functionality
[2] https://portingguide.readthedocs.io/en/latest/
[3] https://src.fedoraproject.org/rpms/createrepo_c/pull-request/3#request_diff [4] https://src.fedoraproject.org/rpms/python-bugzilla/pull-request/2#request_diff [5] https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/thread/UG6XYG3EPLMLA5N47AK63NCF2Y6MDWFJ/ [6] https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/thread/2XDT6S62SEN4KGWQCOUYKXLBYVTKJ5VI/
[7] https://pythonclock.org/

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux