Bug 2392538 (RETIRE_PYTHON_TOML)

Summary: Gracefully retire python-toml
Product: [Fedora] Fedora Reporter: Cristian Le <fedora>
Component: python-tomlAssignee: Orphan Owner <extras-orphan>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: extras-orphan, mhroncok, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-22 16:19:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2392570, 2392571, 2392559, 2392560, 2392561, 2392562, 2392563, 2392564, 2392565, 2392566, 2392567, 2392568, 2392569    
Bug Blocks:    

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