From Fedora Project Wiki
(Change Ready For Wrangler)
Line 222: Line 222:
* Release Notes tracking: [https://pagure.io/fedora-docs/release-notes/issue/XXX #XXX]
* Release Notes tracking: [https://pagure.io/fedora-docs/release-notes/issue/XXX #XXX]


[[Category:ChangePageIncomplete]]
[[Category:ChangeReadyForWrangler]]
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->

Revision as of 19:06, 22 November 2019


Python 3.9

Summary

Update the Python stack in Fedora from Python 3.8 to Python 3.9.

Owner

  • Email: python-maint@redhat.com
  • Release notes owner:

Current status

  • Targeted release: Fedora 33
  • Last updated: 2019-11-22
  • Tracker bug: <will be assigned by the Wrangler>
  • Release notes tracker: <will be assigned by the Wrangler>

Detailed Description

We would like to upgrade Python to 3.9 in Fedora 33 thus we are proposing this plan early.

See the upstream notes at Features for 3.9 and What's new in 3.9.

Important dates and plan

  • 2019-06-04: Python 3.9 development begins
  • 2019-11-19: Python 3.9.0 alpha 1
    • Package it as Package-x-generic-16.pngpython39 for testing purposes
    • Start the bootstrap procedure in Copr
    • Do a mass rebuild against every future release in Copr
  • 2019-12-16: Python 3.9.0 alpha 2
  • 2020-01-13: Python 3.9.0 alpha 3
  • 2020-02-11: Branch Fedora 32, Rawhide becomes future Fedora 33
    • The earliest point when we can start rebuilding in Koji side-tag
  • 2020-02-17: Python 3.9.0 alpha 4
  • 2020-03-16: Python 3.9.0 alpha 5
  • 2020-04-13: Python 3.9.0 alpha 6
  • 2020-05-18: Python 3.9.0 beta 1
    • No new features beyond this point
    • The ideal point when we can start rebuilding in Koji
  • 2020-05-30: Expected side tag-merge (optimistic)
  • 2020-06-08: Python 3.9.0 beta 2
  • 2020-05-18: Expected side tag-merge (realistic)
  • 2020-06-29: Python 3.9.0 beta 3
  • 2020-07-18: Expected side tag-merge (pessimistic)
  • 2020-07-20: Python 3.9.0 beta 4
  • 2020-07-22: Fedora 33 Mass Rebuild
    • The mass rebuild happens with fourth beta. We might need to rebuild Python packages later in exceptional case.
    • If the Koji side-tag is not merged yet at this point, we defer the change to Fedora 34.
  • 2020-08-10: Python 3.9.0 candidate 1
    • This serves as "final" for our purposes.
  • 2020-08-11: Branch Fedora 33, Rawhide becomes future Fedora 34
  • 2020-08-11: Fedora 33 Change Checkpoint: Completion deadline (testable)
  • 2020-08-25: Fedora Beta Freeze
    • If rebuild with 3.9.0rc1 is needed, we should strive to do it before the freeze - there is a window of 2 weeks.
  • 2020-09-14: Python 3.9.0 candidate 2
  • 2020-09-15: Fedora 33 Beta Release (Preferred Target)
    • Beta will likely be released with 3.9.0rc1.
  • 2020-09-22: Fedora 33 Beta Target date #1
  • 2020-10-05: Python 3.9.0 final
  • 2020-10-06: Fedora 33 Final Freeze
    • We'll update to 3.9.0 final using a freeze exception.
  • 2020-10-20: Fedora 33 Preferred Final Target date
  • 2020-10-27: Fedora 33 Final Target date #1


(From Python 3.9 Release Schedule and Fedora 33 Release Schedule.)

The schedule is somewhat tight for Fedora 33, but Python's annual release cycle was adapted for Fedora, hence we have a better chance of making it in time. It is expected that Python will be upgraded in ever odd-numbered Fedora release.

Note that upstream's "release candidates" are frozen except for blocker bugs. Since we can and will backport blocker fixes between Fedora and upstream, we essentially treat the Release Candidate as the final release.

Notes from the previous upgrade

There are notes from the previous upgrade available, so this upgrade may go smoother: SIGs/Python/UpgradingPython

Benefit to Fedora

Fedora aims to showcase the latest in free and open source software - we should have the most recent release of Python 3. Packages in Fedora can use the new features from 3.9.

There's also a benefit to the larger Python ecosystem: by building Fedora's packages against 3.9 while it's still in development, we can catch critical bugs before the final 3.9.0 release.

Scope

We will coordinate the work in a side tag and merge when ready.

  • Other developers: Maintainers of packages that fail to rebuild during the rebuilds will be asked, using e-mail and bugzilla, to fix or remove their packages from the distribution. If any issues appear, they should be solvable either by communicating with the respective upstreams first and/or applying downstream patches. Also the package maintainers should have a look at: Porting to Python 3.9. And python-maint team will be available to help with fixing issues.
  • Release engineering: #9046 A targeted rebuild for all python packages will be required, before the mass rebuild.
  • Policies and guidelines: nope
  • Trademark approval: nope

Upgrade/compatibility impact

All the packages that depend on Python 3 must be rebuilt. User written Python 3 scripts/applications may require a small amount of porting, but mostly Python 3.8 is forward compatible with Python 3.9.

How To Test

Interested testers do not need special hardware. If you have a favorite Python 3 script, module, or application, please test it with Python 3.9 and verify that it still works as you would expect. If the application you are testing does not require any other modules, you can test it using Package-x-generic-16.pngpython39 even before this change is implemented, in Fedora 30, 31 or 32.

In case your application requires other modules, or if you are testing an rpm package, it is necessary to install the 3.9 version of the python3 rpm. TODO: Right now that rpm is available in copr, along with all other python packages that build successfully with python 3.9. See https://copr.fedorainfracloud.org/coprs/g/python/python3.9/ for detailed instructions how to enable Python 3.9 copr for mock.

Once the change is in place, test if you favorite Python apps are working as they were before. File bugs if they don't.

User Experience

Regular distro users shouldn't notice any change in system behavior other than the Python 3 interpreter will be in version 3.8.

Dependencies

~3000 packages depend on Package-x-generic-16.pngpython3. See scope section.

Contingency Plan

  • Contingency mechanism: Do not merge the side tag with rawhide. If the side tag has been merged and issues arise, that will justify a downgrade, then use an epoch tag to revert to 3.7 version (never needed before)
  • Contingency deadline: TBD
  • Blocks release? Yes, we'd like to block Fedora 33 release on at least 3.9.0rc1
  • Blocks product? See above

Documentation

Python 3.9 Release Schedule

Features for 3.9

What's new in 3.9

Porting to Python 3.9

Release Notes

  • Release Notes tracking: #XXX