Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 65190f8

Browse files
authored
release: Strip whitespace from version_with_suffix (#1242)
1 parent d140c3f commit 65190f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release/pypi/prep_binary_for_pypi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ for whl_file in "$@"; do
4040
set -x
4141
unzip -q "${whl_file}" -d "${whl_dir}"
4242
)
43-
version_with_suffix=$(grep '^Version:' "${whl_dir}"/*/METADATA | cut -d' ' -f2)
43+
version_with_suffix=$(grep '^Version:' "${whl_dir}"/*/METADATA | cut -d' ' -f2 | tr -d "[:space:]")
4444
version_with_suffix_escaped=${version_with_suffix/+/%2B}
4545

4646
# Remove all suffixed +bleh versions

0 commit comments

Comments
 (0)