Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-44556: [Release][MSYS2] Update python-pyarrow too #44557

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions dev/release/post-13-msys2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,30 @@ echo "Creating branch: ${branch}"
git branch -D ${branch} || :
git checkout -b ${branch}

pkgbuild=mingw-w64-arrow/PKGBUILD
echo "Updating PKGBUILD: ${pkgbuild}"
sha256sum=$(curl \
--location \
"https://www.apache.org/dyn/closer.lua?action=download&filename=arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha256" | \
cut -d' ' -f1)
sed \
-i.bak \
-e "s/^pkgver=.*\$/pkgver=${version}/" \
-e "s/^pkgrel=.*\$/pkgrel=1/" \
-e "s/^sha256sums=.*\$/sha256sums=('${sha256sum}'/" \
${pkgbuild}
rm ${pkgbuild}.bak
git add ${pkgbuild}
git commit -m "arrow: Update to ${version}"
for package in arrow python-pyarrow; do
pkgbuild=mingw-w64-${package}/PKGBUILD
echo "Updating PKGBUILD: ${pkgbuild}"
sha256sum=$(curl \
--location \
"https://www.apache.org/dyn/closer.lua?action=download&filename=arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha256" | \
cut -d' ' -f1)
sed \
-i.bak \
-e "s/^pkgver=.*\$/pkgver=${version}/" \
-e "s/^pkgrel=.*\$/pkgrel=1/" \
-e "s/^sha256sums=.*\$/sha256sums=('${sha256sum}'/" \
${pkgbuild}
rm ${pkgbuild}.bak
git add ${pkgbuild}
git commit -m "${package}: Update to ${version}"
done

for pkgbuild in $(grep -l -r '${MINGW_PACKAGE_PREFIX}-arrow' ./); do
dir=${pkgbuild%/PKGBUILD}
name=${dir#./mingw-w64-}
if [ ${name} = "python-pyarrow" ]; then
continue
fi
echo "Incrementing ${name}'s pkgrel: ${pkgbuild}"
pkgrel=$(grep -o '^pkgrel=.*' ${pkgbuild} | cut -d= -f2)
sed \
Expand Down
Loading