Skip to content

Commit

Permalink
allow previous behavior
Browse files Browse the repository at this point in the history
Signed-off-by: simon-mo <[email protected]>
  • Loading branch information
simon-mo committed Oct 24, 2024
1 parent d86eeb0 commit 1722eef
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .buildkite/upload-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ wheel="${wheel_files[0]}"
# Rename 'linux' to 'manylinux1' in the wheel filename
new_wheel="${wheel/linux/manylinux1}"
mv -- "$wheel" "$new_wheel"

# Update the wheel variable to the new filename
wheel="$new_wheel"

# Extract the version from the wheel
version=$(unzip -p "$wheel" '**/METADATA' | grep '^Version: ' | cut -d' ' -f2)
echo "Version: $version"

# If the version contains "dev", rename it to v1.0.0.dev so there's one consistent name.
# If the version contains "dev", rename it to v1.0.0.dev for consistency
if [[ $version == *dev* ]]; then
mv -- "$wheel" "${wheel/$version/1.0.0.dev}"
version="1.0.0.dev"
new_version="1.0.0.dev"
new_wheel="${wheel/$version/$new_version}"
mv -- "$wheel" "$new_wheel"
wheel="$new_wheel"
version="$new_version"
fi

# Upload the wheel to S3
Expand Down

0 comments on commit 1722eef

Please sign in to comment.