From d86eeb082d4fc8fa508bdfac8d5bcfad47202350 Mon Sep 17 00:00:00 2001 From: simon-mo Date: Thu, 24 Oct 2024 11:10:15 -0700 Subject: [PATCH] allow previous behavior Signed-off-by: simon-mo --- .buildkite/upload-wheels.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.buildkite/upload-wheels.sh b/.buildkite/upload-wheels.sh index 5c1d4730c8a16..5e01b9469291f 100644 --- a/.buildkite/upload-wheels.sh +++ b/.buildkite/upload-wheels.sh @@ -25,6 +25,12 @@ wheel="$new_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 [[ $version == *dev* ]]; then + mv -- "$wheel" "${wheel/$version/1.0.0.dev}" + version="1.0.0.dev" +fi + # Upload the wheel to S3 aws s3 cp "$wheel" "s3://vllm-wheels/$BUILDKITE_COMMIT/" aws s3 cp "$wheel" "s3://vllm-wheels/nightly/"