Skip to content

Commit 368a830

Browse files
committed
Update beta version format
For Python, a beta release has the format `x.y.zbw` (e.g. `0.4.0b2`). We update the prep-release.sh script to use this format.
1 parent 7fa2727 commit 368a830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/release/scripts/prep-release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ enforce_latest_code() {
3232
fi
3333
}
3434

35-
# Function to validate the version number format x.y.z(-beta.w)
35+
# Function to validate the version number format x.y.z(bw)
3636
update_and_validate_version() {
3737
while true; do
3838
# Prompt the user to input the version number
39-
read -p "Enter the version number (format: x.y.z(-beta.w)): " version
39+
read -p "Enter the version number (format: x.y.z(bw)): " version
4040

4141
# Validate the version number format
42-
if [[ "${version}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-beta\.[0-9]+)?$ ]]; then
42+
if [[ "${version}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(b[0-9]+)?$ ]]; then
4343
if [[ "${current_version}" != "${version}" ]]; then
4444
# TODO: Check the less than case as well.
4545
echo "New version number is: ${version}"
@@ -49,7 +49,7 @@ update_and_validate_version() {
4949
fi
5050
else
5151
echo "Invalid version number format: ${version}"
52-
echo "Please enter a version number in the 'x.y.z(-beta.w)' format."
52+
echo "Please enter a version number in the 'x.y.z(bw)' format."
5353
fi
5454
done
5555
}

0 commit comments

Comments
 (0)