Skip to content

Commit 6bc8b25

Browse files
committed
fix: escape name segment of stamped wheel files
1 parent 6854dc3 commit 6bc8b25

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Unreleased changes template.
9090
transitions transitioning on the `python_version` flag.
9191
Fixes [#2685](https://github.com/bazel-contrib/rules_python/issues/2685).
9292
* (toolchains) Run the check on the Python interpreter in isolated mode, to ensure it's not affected by userland environment variables, such as `PYTHONPATH`.
93+
* (py_wheel) Ensure the filename segment is escaped in when using stamping wheel names.
9394

9495
{#v0-0-0-added}
9596
### Added

python/private/py_wheel.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _py_wheel_impl(ctx):
310310

311311
filename_segments = [
312312
_escape_filename_distribution_name(ctx.attr.distribution),
313-
normalize_pep440(version),
313+
_escape_filename_segment(normalize_pep440(version)),
314314
_escape_filename_segment(python_tag),
315315
_escape_filename_segment(abi),
316316
_escape_filename_segment(ctx.attr.platform),

0 commit comments

Comments
 (0)