(Created page with "{{admon/important | Comments and Explanations | The page source contains comments providing guidance to fill out each section. They are invisible when viewing this page. To re...") |
|||
(28 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<!-- The actual name of your proposed change page should look something like: Changes/Your_Change_Proposal_Name. This keeps all change proposals in the same namespace --> | <!-- The actual name of your proposed change page should look something like: Changes/Your_Change_Proposal_Name. This keeps all change proposals in the same namespace --> | ||
= | = Python 3.11 = | ||
<!-- The name of your change proposal --> | <!-- The name of your change proposal --> | ||
== Summary == | == Summary == | ||
<!-- A sentence or two summarizing what this change is and what it will do. This information is used for the overall changeset summary page for each release. Note that motivation for the change should be in the Benefit to Fedora section below, and this part should answer the question "What?" rather than "Why?". --> | <!-- A sentence or two summarizing what this change is and what it will do. This information is used for the overall changeset summary page for each release. Note that motivation for the change should be in the Benefit to Fedora section below, and this part should answer the question "What?" rather than "Why?". --> | ||
Update the Python stack in Fedora from Python 3.10 to Python 3.11, the newest major release of the Python programming language. | |||
== Owner == | == Owner == | ||
Line 16: | Line 13: | ||
This should link to your home wiki page so we know who you are. | This should link to your home wiki page so we know who you are. | ||
--> | --> | ||
* Name: [[User: | * Name: [[User:Thrnciar|Tomáš Hrnčiar]] | ||
* Name: [[User:Churchyard|Miro Hrončok]] | |||
<!-- Include you email address that you can be reached should people want to contact you about helping with your change, status is requested, or technical issues need to be resolved. If the change proposal is owned by a SIG, please also add a primary contact person. --> | <!-- Include you email address that you can be reached should people want to contact you about helping with your change, status is requested, or technical issues need to be resolved. If the change proposal is owned by a SIG, please also add a primary contact person. --> | ||
* Email: | * Email: python-maint@redhat.com | ||
<!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo) | <!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo) | ||
* FESCo shepherd: [[User:FASAccountName| Shehperd name]] <email address> | * FESCo shepherd: [[User:FASAccountName| Shehperd name]] <email address> | ||
Line 25: | Line 23: | ||
== Current status == | == Current status == | ||
[[Category: | [[Category:ChangeAcceptedF37]] | ||
<!-- 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 --> | ||
Line 32: | Line 30: | ||
<!-- Select proper category, default is Self Contained Change --> | <!-- Select proper category, default is Self Contained Change --> | ||
[[Category: | [[Category:SystemWideChange]] | ||
<!-- [[Category:SystemWideChange]] --> | <!-- [[Category:SystemWideChange]] --> | ||
* Targeted release: [[Releases/ | * Targeted release: [[Releases/37 | Fedora Linux 37 ]] | ||
* Last updated: <!-- this is an automatic macro — you don't need to change this line --> {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | * Last updated: <!-- this is an automatic macro — you don't need to change this line --> {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | ||
<!-- After the change proposal is accepted by FESCo, tracking bug is created in Bugzilla and linked to this page | <!-- After the change proposal is accepted by FESCo, tracking bug is created in Bugzilla and linked to this page | ||
Line 43: | Line 41: | ||
ON_QA -> change is fully code complete | ON_QA -> change is fully code complete | ||
--> | --> | ||
* FESCo issue: | * FESCo issue: [https://pagure.io/fesco/issue/2677 #2677] | ||
* Tracker bug: | * Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=2016048 #2016048] | ||
* Release notes tracker: | * Release notes tracker: [https://pagure.io/fedora-docs/release-notes/issue/746 #746] | ||
== Detailed Description == | == Detailed Description == | ||
<!-- Expand on the summary, if appropriate. A couple sentences suffices to explain the goal, but the more details you can provide the better. --> | <!-- Expand on the summary, if appropriate. A couple sentences suffices to explain the goal, but the more details you can provide the better. --> | ||
== | We would like to upgrade Python to 3.11 in Fedora 37 thus we are proposing this plan early. | ||
See the upstream notes at [https://www.python.org/dev/peps/pep-0664/#features-for-3-11 Features for 3.11] and [https://docs.python.org/3.11/whatsnew/3.11.html What's new in 3.11]. | |||
=== Important dates and plan === | |||
* 2021-05-03: Python 3.11 development begins | |||
* 2021-10-04: Python 3.11.0 alpha 1 | |||
** Package it as {{package|python3.11}} for testing purposes | |||
** Start the bootstrap procedure in Copr | |||
** Do a mass rebuild against every future release in Copr | |||
* 2021-11-02: Python 3.11.0 alpha 2 | |||
* 2021-12-06: Python 3.11.0 alpha 3 | |||
* 2022-01-03: Python 3.11.0 alpha 4 | |||
* 2022-02-02: Python 3.11.0 alpha 5 | |||
* 2022-02-08: Branch Fedora 36, Rawhide becomes future Fedora 37 | |||
** The earliest point when we can start rebuilding in Koji side-tag | |||
* 2022-02-28: Python 3.11.0 alpha 6 | |||
* 2022-04-05: Python 3.11.0 alpha 7 | |||
* 2022-05-06: Python 3.11.0 beta 1 | |||
** No new features beyond this point | |||
* 2022-05-30: Python 3.11.0 beta 2 | |||
** The ideal point when we can start rebuilding in Koji | |||
* 2022-06-06: Expected side tag-merge (optimistic) | |||
* 2022-06-16: Python 3.11.0 beta 3 | |||
* 2022-06-24: Expected side tag-merge (realistic) | |||
* 2022-07-09: Python 3.11.0 beta 4 | |||
* 2022-07-18: Expected side tag-merge (pessimistic) | |||
* 2022-07-20: Fedora 37 Mass Rebuild | |||
** The mass rebuild happens with the 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 38. | |||
* 2022-08-01: Python 3.11.0 candidate 1 | |||
** This serves as "final" for our purposes. | |||
* 2022-08-09: Branch Fedora 37, Rawhide becomes future Fedora 38 | |||
* 2022-08-09: Fedora 37 Change Checkpoint: Completion deadline (testable) | |||
* 2022-08-23: Fedora Beta Freeze | |||
** If rebuild with 3.11.0rc1 is needed, we should strive to do it before the freeze - there is a window of 3 weeks. | |||
* 2022-09-05: Python 3.11.0 candidate 2 | |||
* 2022-09-13: Fedora 37 Beta Release (Preferred Target) | |||
** Beta will likely be released with 3.11.0rc2. | |||
* 2022-09-20: Fedora 37 Beta Target date #1 | |||
* 2022-10-03: Python 3.11.0 final | |||
* 2022-10-04: Fedora 37 Final Freeze | |||
** We'll update to 3.11.0 final using a freeze exception. | |||
* 2022-10-18: Fedora 37 Preferred Final Target date | |||
* 2022-10-25: Fedora 37 Final Target date #1 | |||
(From [https://www.python.org/dev/peps/pep-0664/#id4 Python 3.11 Release Schedule] and [https://fedorapeople.org/groups/schedule/f-37/f-37-key-tasks.html Fedora 37 Release Schedule].) | |||
The schedule might appear somewhat tight for Fedora 37, but Python's [https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/AKA3USBKFYKUQDSGDK4FNDYYWMKM7XKX/ annual release cycle was adapted for Fedora] and this worked fine since Python 3.9 and Fedora 33. It is now common that Python is upgraded on a similar schedule in every 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 == | == Benefit to Fedora == | ||
<!-- What is the benefit to the | |||
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.11. | |||
<!-- What is the benefit to the platform? If this is a major capability update, what has changed? If this is a new functionality, what capabilities does it bring? Why will Fedora become a better distribution or project because of this proposal?--> | |||
There's also a benefit to the larger Python ecosystem: by building Fedora's packages against 3.11 while it's still in development, we can catch critical bugs before the final 3.11.0 release. | |||
== Scope == | |||
We will coordinate the work in a side tag and merge when ready. | |||
* Proposal owners: | * Proposal owners: | ||
<!-- What work do the feature owners have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?--> | <!-- What work do the feature owners have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?--> | ||
*# Introduce {{package|python3.11}} for all Fedoras | |||
*# Prepare stuff in Copr as explained in description. | |||
*# Update {{package|python-rpm-macros}} so {{package|python3.11}} builds {{package|python3}} | |||
*# Build {{package|python3.11}} as the main Python | |||
*# Mass rebuild all the packages that runtime require `python(abi) = 3.10` and/or `libpython3.10.so.1.0` (~3800 known packages in October 2021) | |||
*# Build {{package|python3.11}} as a non-main Python | |||
* Other developers: | * 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: [https://docs.python.org/3.11/whatsnew/3.11.html#porting-to-python-3-11 Porting to Python 3.11]. The python-maint team will be available to help with fixing issues. | ||
<!-- What work do other developers have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?--> | <!-- What work do other developers have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?--> | ||
* Release engineering: [https://pagure.io/releng/ | * Release engineering: [https://pagure.io/releng/issue/10321 #10321] <!-- REQUIRED FOR SYSTEM WIDE AS WELL AS FOR SELF CONTAINED CHANGES --> A targeted rebuild for all python packages will be required, before the mass rebuild. | ||
<!-- Does this feature require coordination with release engineering (e.g. changes to installer image generation or update package delivery)? Is a mass rebuild required? include a link to the releng issue. | <!-- Does this feature require coordination with release engineering (e.g. changes to installer image generation or update package delivery)? Is a mass rebuild required? include a link to the releng issue. | ||
The issue is required to be filed prior to feature submission, to ensure that someone is on board to do any process development work and testing and that all changes make it into the pipeline; a bullet point in a change is not sufficient communication --> | The issue is required to be filed prior to feature submission, to ensure that someone is on board to do any process development work and testing, and that all changes make it into the pipeline; a bullet point in a change is not sufficient communication --> | ||
** [[Fedora_Program_Management/ReleaseBlocking/Fedora{{FedoraVersionNumber|next}}|List of deliverables]]: nope <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | |||
* | <!-- Please check the list of Fedora release deliverables and list all the differences the feature brings --> | ||
<!-- | |||
* | * Policies and guidelines: nope <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
<!-- If | <!-- Do the packaging guidelines or other documents need to be updated for this feature? If so, does it need to happen before or after the implementation is done? If a FPC ticket exists, add a link here. --> | ||
* | * Trademark approval: nope | ||
<!-- | <!-- If your Change may require trademark approval (for example, if it is a new Spin), file a ticket ( https://fedorahosted.org/council/ ) requesting trademark approval from the Fedora Council. This approval will be done via the Council's consensus-based process. --> | ||
== Upgrade/compatibility impact == | == Upgrade/compatibility impact == | ||
Line 106: | Line 145: | ||
<!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
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.10 is forward compatible with Python 3.11. | |||
== How To Test == | == How To Test == | ||
Line 125: | Line 164: | ||
<!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
Interested testers do not need special hardware. If you have a favourite Python 3 script, module, or application, please test it with Python 3.11 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|python3.11}} even before this change is implemented, in Fedora 34, 35 or 36. | |||
In case your application requires other modules, or if you are testing an rpm package, it is necessary to install the 3.11 version of the python3 rpm. Right now that rpm is available in copr, along with all other python packages that build successfully with python 3.11. See https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ for detailed instructions on how to enable Python 3.11 copr for mock. | |||
Once the change is in place, test if your favourite Python apps are working as they were before. File bugs if they don't. | |||
== User Experience == | == User Experience == | ||
Line 137: | Line 181: | ||
- Green has been scientifically proven to be the most relaxing color. The move to a default background color of green with green text will result in Fedora users being the most relaxed users of any operating system. | - Green has been scientifically proven to be the most relaxing color. The move to a default background color of green with green text will result in Fedora users being the most relaxed users of any operating system. | ||
--> | --> | ||
Regular distro users shouldn't notice any change in system behaviour other than the Python 3 interpreter will be in version 3.11. | |||
== Dependencies == | == Dependencies == | ||
Line 143: | Line 189: | ||
<!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
4000+ packages depend on Python 3 and ~3800 packages need rebuilding when Python is upgraded. See scope section. | |||
== Contingency Plan == | == Contingency Plan == | ||
<!-- If you cannot complete your feature by the final development freeze, what is the backup plan? This might be as simple as "Revert the shipped configuration". Or it might not (e.g. rebuilding a number of dependent packages). If you feature is not completed in time we want to assure others that other parts of Fedora will not be in jeopardy. --> | <!-- If you cannot complete your feature by the final development freeze, what is the backup plan? This might be as simple as "Revert the shipped configuration". Or it might not (e.g. rebuilding a number of dependent packages). If you feature is not completed in time we want to assure others that other parts of Fedora will not be in jeopardy. --> | ||
* Contingency mechanism: | * 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.10 version (never needed before) <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
<!-- When is the last time the contingency mechanism can be put in place? This will typically be the beta freeze. --> | <!-- When is the last time the contingency mechanism can be put in place? This will typically be the beta freeze. --> | ||
* Contingency deadline: | * Contingency deadline: TBD <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
<!-- Does finishing this feature block the release, or can we ship with the feature in incomplete state? --> | <!-- Does finishing this feature block the release, or can we ship with the feature in incomplete state? --> | ||
* Blocks release? | * Blocks release? Yes, we'd like to block Fedora 37 release on at least 3.11.0rc1 <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
* Blocks product? See above <!-- Applicable for Changes that blocks specific product release/Fedora.next --> | |||
== Documentation == | == Documentation == | ||
Line 158: | Line 205: | ||
<!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
[https://www.python.org/dev/peps/pep-0664/ Python 3.11 Release Schedule] | |||
[https://www.python.org/dev/peps/pep-0664/#features-for-3-11 Features for 3.11] | |||
[https://docs.python.org/3.11/whatsnew/3.11.html What's new in 3.11] | |||
[https://docs.python.org/3.11/whatsnew/3.11.html#porting-to-python-3-11 Porting to Python 3.11] | |||
== Release Notes == | == Release Notes == | ||
Line 166: | Line 219: | ||
Release Notes are not required for initial draft of the Change Proposal but has to be completed by the Change Freeze. | Release Notes are not required for initial draft of the Change Proposal but has to be completed by the Change Freeze. | ||
--> | --> | ||
* Migrating user installed packages - https://pagure.io/fedora-docs/release-notes/issue/503 |
Latest revision as of 13:59, 7 July 2022
Python 3.11
Summary
Update the Python stack in Fedora from Python 3.10 to Python 3.11, the newest major release of the Python programming language.
Owner
- Name: Tomáš Hrnčiar
- Name: Miro Hrončok
- Email: python-maint@redhat.com
Current status
- Targeted release: Fedora Linux 37
- Last updated: 2022-07-07
- FESCo issue: #2677
- Tracker bug: #2016048
- Release notes tracker: #746
Detailed Description
We would like to upgrade Python to 3.11 in Fedora 37 thus we are proposing this plan early.
See the upstream notes at Features for 3.11 and What's new in 3.11.
Important dates and plan
- 2021-05-03: Python 3.11 development begins
- 2021-10-04: Python 3.11.0 alpha 1
- Package it as
python3.11
for testing purposes - Start the bootstrap procedure in Copr
- Do a mass rebuild against every future release in Copr
- Package it as
- 2021-11-02: Python 3.11.0 alpha 2
- 2021-12-06: Python 3.11.0 alpha 3
- 2022-01-03: Python 3.11.0 alpha 4
- 2022-02-02: Python 3.11.0 alpha 5
- 2022-02-08: Branch Fedora 36, Rawhide becomes future Fedora 37
- The earliest point when we can start rebuilding in Koji side-tag
- 2022-02-28: Python 3.11.0 alpha 6
- 2022-04-05: Python 3.11.0 alpha 7
- 2022-05-06: Python 3.11.0 beta 1
- No new features beyond this point
- 2022-05-30: Python 3.11.0 beta 2
- The ideal point when we can start rebuilding in Koji
- 2022-06-06: Expected side tag-merge (optimistic)
- 2022-06-16: Python 3.11.0 beta 3
- 2022-06-24: Expected side tag-merge (realistic)
- 2022-07-09: Python 3.11.0 beta 4
- 2022-07-18: Expected side tag-merge (pessimistic)
- 2022-07-20: Fedora 37 Mass Rebuild
- The mass rebuild happens with the 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 38.
- 2022-08-01: Python 3.11.0 candidate 1
- This serves as "final" for our purposes.
- 2022-08-09: Branch Fedora 37, Rawhide becomes future Fedora 38
- 2022-08-09: Fedora 37 Change Checkpoint: Completion deadline (testable)
- 2022-08-23: Fedora Beta Freeze
- If rebuild with 3.11.0rc1 is needed, we should strive to do it before the freeze - there is a window of 3 weeks.
- 2022-09-05: Python 3.11.0 candidate 2
- 2022-09-13: Fedora 37 Beta Release (Preferred Target)
- Beta will likely be released with 3.11.0rc2.
- 2022-09-20: Fedora 37 Beta Target date #1
- 2022-10-03: Python 3.11.0 final
- 2022-10-04: Fedora 37 Final Freeze
- We'll update to 3.11.0 final using a freeze exception.
- 2022-10-18: Fedora 37 Preferred Final Target date
- 2022-10-25: Fedora 37 Final Target date #1
(From Python 3.11 Release Schedule and Fedora 37 Release Schedule.)
The schedule might appear somewhat tight for Fedora 37, but Python's annual release cycle was adapted for Fedora and this worked fine since Python 3.9 and Fedora 33. It is now common that Python is upgraded on a similar schedule in every 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.11.
There's also a benefit to the larger Python ecosystem: by building Fedora's packages against 3.11 while it's still in development, we can catch critical bugs before the final 3.11.0 release.
Scope
We will coordinate the work in a side tag and merge when ready.
- Proposal owners:
- Introduce
python3.11
for all Fedoras - Prepare stuff in Copr as explained in description.
- Update
python-rpm-macros
sopython3.11
buildspython3
- Build
python3.11
as the main Python - Mass rebuild all the packages that runtime require
python(abi) = 3.10
and/orlibpython3.10.so.1.0
(~3800 known packages in October 2021) - Build
python3.11
as a non-main Python
- Introduce
- 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.11. The python-maint team will be available to help with fixing issues.
- Release engineering: #10321 A targeted rebuild for all python packages will be required, before the mass rebuild.
- List of deliverables: nope
- 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.10 is forward compatible with Python 3.11.
How To Test
Interested testers do not need special hardware. If you have a favourite Python 3 script, module, or application, please test it with Python 3.11 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 python3.11
even before this change is implemented, in Fedora 34, 35 or 36.
In case your application requires other modules, or if you are testing an rpm package, it is necessary to install the 3.11 version of the python3 rpm. Right now that rpm is available in copr, along with all other python packages that build successfully with python 3.11. See https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ for detailed instructions on how to enable Python 3.11 copr for mock.
Once the change is in place, test if your favourite 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 behaviour other than the Python 3 interpreter will be in version 3.11.
Dependencies
4000+ packages depend on Python 3 and ~3800 packages need rebuilding when Python is upgraded. 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.10 version (never needed before)
- Contingency deadline: TBD
- Blocks release? Yes, we'd like to block Fedora 37 release on at least 3.11.0rc1
- Blocks product? See above
Documentation
Release Notes
- Migrating user installed packages - https://pagure.io/fedora-docs/release-notes/issue/503