Skip to content

docs(utils): add 26.3 versionchanged to parse_wheel_filename + complete parse_sdist_filename :raises - #1273

Merged
henryiii merged 1 commit into
pypa:mainfrom
r266-tech:docs-utils-parse-filename-26.3-annotations
Jun 19, 2026
Merged

henryiii merged 1 commit into
pypa:mainfrom
r266-tech:docs-utils-parse-filename-26.3-annotations

Conversation

@r266-tech

Copy link
Copy Markdown
Contributor

Two docstring gaps in src/packaging/utils.py, both listed in #1239:

  • parse_wheel_filename gained empty-tag-component rejection in 26.3 (via fix(utils): reject empty tag components in parse_wheel_filename/parse_tag (#577) #1234) — it now raises InvalidWheelFilename when a tag component is empty — but only parse_tag got the matching 26.3 annotation in that PR. Add the .. versionchanged:: 26.3 note.
  • parse_sdist_filename's :raises: documented the extension and dash-separator cases but omitted that an unparseable version also raises InvalidSdistFilename (the Version(...) call is wrapped). Add it.

From the #1239 Docs section: "parse_wheel_filename lacks the 26.3 versionchanged that parse_tag got for the same PR (#1234); parse_sdist_filename's :raises: list omits the invalid-version case".

parse_wheel_filename gained empty-tag-component rejection in 26.3 (pypa#1234)
but only parse_tag got the matching annotation; add .. versionchanged:: 26.3.
parse_sdist_filename's :raises list omitted the invalid-version case (the
Version() call is wrapped as InvalidSdistFilename); add it. Both from pypa#1239.
@henryiii
henryiii merged commit adc6f21 into pypa:main Jun 19, 2026
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants