From Fedora Project Wiki
Line 6: Line 6:
<!-- 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 to a new upstream release of python-packaging contains a breaking change. Since version 23+ upstream removed support for [https://github.com/pypa/packaging/pull/407 LegacySpecifier and LegacyVersion] some packages will break. This is a breaking change and projects are encouraged to adhere to the grammar defined in [https://peps.python.org/pep-0508/#complete-grammar PEP 508].  
Update to a new upstream release of python-packaging contains a breaking change. Since version 22+ upstream removed support for [https://github.com/pypa/packaging/pull/407 LegacySpecifier and LegacyVersion] some packages will break. This is a breaking change and projects are encouraged to adhere to the grammar defined in [https://peps.python.org/pep-0508/#complete-grammar PEP 508].


== Owner ==
== Owner ==

Revision as of 13:50, 24 January 2023


Packaging 22+

Summary

Update to a new upstream release of python-packaging contains a breaking change. Since version 22+ upstream removed support for LegacySpecifier and LegacyVersion some packages will break. This is a breaking change and projects are encouraged to adhere to the grammar defined in PEP 508.

Owner


Current status

  • Targeted release: Fedora Linux 38
  • Last updated: 2023-01-24
  • FESCo issue: <will be assigned by the Wrangler>
  • Tracker bug: <will be assigned by the Wrangler>
  • Release notes tracker: <will be assigned by the Wrangler>

Detailed Description

>>> # before 22.0
>>> packaging.version.parse("This is a completely random string")
<LegacyVersion('This is a completely random string')>
>>> # after 22.0
>>> packaging.version.parse("This is a completely random string")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "[...]/.venv/lib/python3.10/site-packages/packaging/version.py", line 52, in parse
    return Version(version)
  File "[...]/.venv/lib/python3.10/site-packages/packaging/version.py", line 197, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'This is a completely random string'

Feedback

Benefit to Fedora

Scope

  • Proposal owners:
  • Other developers:
  • Policies and guidelines: N/A (not needed for this Change)
  • Trademark approval: N/A (not needed for this Change)
  • Alignment with Objectives:

Upgrade/compatibility impact

How To Test

User Experience

Dependencies

Contingency Plan

  • Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
  • Contingency deadline: N/A (not a System Wide Change)
  • Blocks release? N/A (not a System Wide Change), Yes/No


Documentation

N/A (not a System Wide Change)

Release Notes