Skip to content

Commit

Permalink
chore(dev/release): update bump-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed May 21, 2024
1 parent 75ed095 commit db91b8c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
7 changes: 1 addition & 6 deletions dev/release/post-09-bump-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ main() {

########################## Update Snapshot Version ##########################

git fetch --all --prune --tags --force -j$(nproc)
git switch main
git rebase apache/main

echo "Updating versions for ${RELEASE}-SNAPSHOT"
update_versions "snapshot"
git commit -m "chore: update versions for ${RELEASE}-SNAPSHOT"
Expand All @@ -64,8 +60,7 @@ main() {
echo "Updated changelog on branch."

echo "Review the commits just made."
echo "Then, push changes to apache/arrow-adbc:main with:"
echo git push apache main
echo "Then, create a new pull request."
}

main "$@"
12 changes: 6 additions & 6 deletions dev/release/utils-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ update_versions() {
else
so_version() {
local -r version=$1
local -r major_version=$(echo $c_version | sed -E -e 's/^([0-9]+)\.[0-9]+\.[0-9]+$/\1/')
local -r minor_version=$(echo $c_version | sed -E -e 's/^[0-9]+\.([0-9]+)\.[0-9]+$/\1/')
local -r major_version=$(echo $version | sed -E -e 's/^([0-9]+)\.[0-9]+\.[0-9]+$/\1/')
local -r minor_version=$(echo $version | sed -E -e 's/^[0-9]+\.([0-9]+)\.[0-9]+$/\1/')
printf "%0d%02d" ${major_version} ${minor_version}
}
local -r deb_lib_suffix=$(so_version ${base_version})
local -r next_deb_lib_suffix=$(so_version ${next_version})
local -r deb_lib_suffix=$(so_version ${PREVIOUS_VERSION_NATIVE})
local -r next_deb_lib_suffix=$(so_version ${VERSION_NATIVE})
pushd "${ADBC_DIR}/ci/linux-packages"
if [ "${deb_lib_suffix}" != "${next_deb_lib_suffix}" ]; then
for target in debian*/lib*${deb_lib_suffix}.install; do
Expand All @@ -137,8 +137,8 @@ update_versions() {
rm -f debian*/control*.bak
git add debian*/control*
fi
local -r base_major_version=$(echo ${base_version} | sed -E -e 's/^([0-9]+)\.[0-9]+\.[0-9]+$/\1/')
local -r next_major_version=$(echo ${next_version} | sed -E -e 's/^([0-9]+)\.[0-9]+\.[0-9]+$/\1/')
local -r base_major_version=$(echo ${PREVIOUS_VERSION_NATIVE} | sed -E -e 's/^([0-9]+)\.[0-9]+\.[0-9]+$/\1/')
local -r next_major_version=$(echo ${VERSION_NATIVE} | sed -E -e 's/^([0-9]+)\.[0-9]+\.[0-9]+$/\1/')
if [ "${base_major_version}" != "${next_major_version}" ]; then
for target in debian*/libadbc-*glib${base_major_version}.install; do
git mv \
Expand Down
17 changes: 10 additions & 7 deletions dev/release/versions.env
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@

# The release as a whole has a counter-based identifier (as in, 12 is the
# 12th release of ADBC). This is used to identify tags, branches, and so on.
RELEASE="12"
PREVIOUS_RELEASE="0.11.0"
RELEASE="13"
PREVIOUS_RELEASE="12"

# Individual components will have a SemVer.
VERSION_CSHARP="0.12.0"
VERSION_JAVA="0.12.0"
VERSION_CSHARP="0.13.0"
VERSION_JAVA="0.13.0"
# Because C++/GLib/Go/Python/Ruby are effectively tied at the hip, they share
# a single version number. Also covers Conda/Linux packages.
VERSION_NATIVE="1.0.0"
VERSION_R="0.12.0"
VERSION_RUST="0.12.0"
VERSION_NATIVE="1.1.0"
VERSION_R="0.13.0"
VERSION_RUST="0.13.0"

# Required by the version bump script
PREVIOUS_VERSION_NATIVE="1.0.0"

0 comments on commit db91b8c

Please sign in to comment.