Skip to content

Commit 8694578

Browse files
authored
Add support for pre-releases to Python platform key regex (#12380)
Needed for more test cases on top of #12374
1 parent ec49980 commit 8694578

File tree

1 file changed

+3
-4
lines changed
  • crates/uv/tests/it/common

1 file changed

+3
-4
lines changed

crates/uv/tests/it/common/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,9 @@ impl TestContext {
290290
\d+ # An actual patch version
291291
)
292292
)? # (we allow the patch version to be missing entirely, e.g., in a request)
293-
[a-z]? # Pre-release letter
294-
(?:
295-
\+[a-z]+ # An optional variant variant, such as `+free-threaded
296-
)?
293+
(?:(?:a|b|rc)[0-9]+)? # Pre-release version component, e.g., `a6` or `rc2`
294+
(?:[td])? # A short variant, such as `t` (for freethreaded) or `d` (for debug)
295+
(?:\+[a-z]+)? # A long variant, such as `+free-threaded`
297296
)
298297
-
299298
[a-z0-9]+ # Operating system (e.g., 'macos')

0 commit comments

Comments
 (0)