Bug 2392538 (RETIRE_PYTHON_TOML) - Gracefully retire python-toml
Summary: Gracefully retire python-toml
Keywords:
Status: CLOSED WONTFIX
Alias: RETIRE_PYTHON_TOML
Product: Fedora
Classification: Fedora
Component: python-toml
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2392562 2392565 2392568 2392570 2392571 2392559 2392560 2392561 2392563 2392564 2392566 2392567 2392569
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-02 11:58 UTC by Cristian Le
Modified: 2025-09-22 16:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-09-22 16:19:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Cristian Le 2025-09-02 11:58:15 UTC
python-toml has been orphaned and will likely be retired in the coming weeks. There are still a handful of packages that have not migrated, so I am creating a tracker bug here and later create corresponding bugs to the other packages.

The original document seems to be still very helpful for the affected packages https://fedoraproject.org/wiki/Changes/DeprecatePythonToml, specifically I am highlighting the following snippets:
- Importing tomlib with backport to tomli
```
if sys.version_info < (3, 11):
    import tomli as tomllib
else:
    import tomllib
```
- Dependency required `tomli;python_version<"3.11"`
- Only other API changes should be
  + Change all references of TomlDecodeError to TOMLDecodeError.
  + Open files in binary mode, if passing file objects to tomllib.load()

Reproducible: Always

Comment 1 Maxwell G 2025-09-22 16:19:50 UTC
Automation has figured out the package is retired in Fedora Rawhide.

If you like it to be unretired, please open a ticket at
https://pagure.io/releng/new_issue?template=package_unretirement


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