Skip to content

Move tomllib compatibility to dedicated module#2349

Open
sirosen wants to merge 1 commit intojazzband:mainfrom
sirosen:tomllib-compat
Open

Move tomllib compatibility to dedicated module#2349
sirosen wants to merge 1 commit intojazzband:mainfrom
sirosen:tomllib-compat

Conversation

@sirosen
Copy link
Member

@sirosen sirosen commented Mar 6, 2026

I intend to close #2108 with this change.
I don't consider the importlib.metadata compatibility module to be equally important.


A new, piptools._compat.tomllib_compat module provides a wrapper over
tomllib/tomli across Python versions.

Inspired by #2108
Co-authored-by: chrysle [email protected]

Contributor checklist
  • Included tests for the changes.
  • A change note is created in changelog.d/ (see changelog.d/README.md
    for instructions) or the PR text says "no changelog needed".
Maintainer checklist
  • If no changelog is needed, apply the bot:chronographer:skip label.
  • Assign the PR to an existing or new milestone for the target version
    (following Semantic Versioning).

A new, `piptools._compat.tomllib_compat` module provides a wrapper over
tomllib/tomli across Python versions.

Inspired by jazzband#2108
Co-authored-by: chrysle <[email protected]>
@sirosen sirosen added this to the 7.5.4 milestone Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant