Skip to content

[codex] Clarify prefix-match suffix documentation#2049

Open
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:codex/prefix-match-suffix-docs
Open

[codex] Clarify prefix-match suffix documentation#2049
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:codex/prefix-match-suffix-docs

Conversation

@Sean-Kenneth-Doherty
Copy link
Copy Markdown

@Sean-Kenneth-Doherty Sean-Kenneth-Doherty commented May 17, 2026

Summary

  • clarify that prefix-match wildcards must end at a release segment
  • list pre-release, post-release, developmental release, and local version suffixes as invalid before .*
  • add examples for 1.0a1.*, 1.0.post1.*, 1.0.dev1.*, and 1.0+foo1.*

Why

The current version-matching text only calls out developmental and local suffixes. pypa/packaging#831 notes that this makes post-release prefix matches like ==1.2.3.post4.* look valid from the spec text even though packaging rejects them. This updates the docs to match the implemented behavior and complements pypa/packaging#1188.

Tests

  • uvx nox -s build
  • git diff --check

📚 Documentation preview 📚: https://python-packaging-user-guide--2049.org.readthedocs.build/en/2049/

@Sean-Kenneth-Doherty Sean-Kenneth-Doherty marked this pull request as ready for review May 17, 2026 03:16
@Sean-Kenneth-Doherty
Copy link
Copy Markdown
Author

Reverified locally and moved this out of draft. Validation from this pass:

  • uvx nox -s build -> Sphinx build succeeded
  • git diff --check origin/main...HEAD -> 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.

1 participant