This is an automated email from the ASF dual-hosted git repository.

honahx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 90bcf2c4 Remove hard-coded release version (#643)
90bcf2c4 is described below

commit 90bcf2c4165e3b9b01c7c61a26a322bbaf464892
Author: Daniel Weeks <[email protected]>
AuthorDate: Mon Apr 22 10:35:47 2024 -0700

    Remove hard-coded release version (#643)
---
 mkdocs/docs/verify-release.md | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/mkdocs/docs/verify-release.md b/mkdocs/docs/verify-release.md
index 9508abba..a912071f 100644
--- a/mkdocs/docs/verify-release.md
+++ b/mkdocs/docs/verify-release.md
@@ -44,12 +44,21 @@ curl https://dist.apache.org/repos/dist/dev/iceberg/KEYS -o 
KEYS
 gpg --import KEYS
 ```
 
+Set an environment variable to the version to verify and path to use
+
+```sh
+export PYICEBERG_VERSION=<version> # e.g. 0.6.1rc3
+export PYICEBERG_VERIFICATION_DIR=/tmp/pyiceberg/${PYICEBERG_VERSION}
+```
+
 Next, verify the `.asc` file.
 
 ```sh
-svn checkout 
https://dist.apache.org/repos/dist/dev/iceberg/pyiceberg-0.5.0rc1/ 
/tmp/pyiceberg/
+svn checkout 
https://dist.apache.org/repos/dist/dev/iceberg/pyiceberg-${PYICEBERG_VERSION}/ 
${PYICEBERG_VERIFICATION_DIR}
+
+cd ${PYICEBERG_VERIFICATION_DIR}
 
-for name in $(ls /tmp/pyiceberg/pyiceberg-*.whl 
/tmp/pyiceberg/pyiceberg-*.tar.gz)
+for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
 do
     gpg --verify ${name}.asc ${name}
 done
@@ -58,8 +67,8 @@ done
 ## Verifying checksums
 
 ```sh
-cd  /tmp/pyiceberg/
-for name in $(ls /tmp/pyiceberg/pyiceberg-*.whl.sha512 
/tmp/pyiceberg/pyiceberg-*.tar.gz.sha512)
+cd ${PYICEBERG_VERIFICATION_DIR}
+for name in $(ls pyiceberg-*.whl.sha512 pyiceberg-*.tar.gz.sha512)
 do
     shasum -a 512 --check ${name}
 done
@@ -68,8 +77,9 @@ done
 ## Verifying License Documentation
 
 ```sh
-tar xzf pyiceberg-0.5.0.tar.gz
-cd pyiceberg-0.5.0
+export PYICEBERG_RELEASE_VERSION=${PYICEBERG_VERSION/rc?/}  # remove rcX 
qualifier
+tar xzf pyiceberg-${PYICEBERG_RELEASE_VERSION}.tar.gz
+cd pyiceberg-${PYICEBERG_RELEASE_VERSION}
 ```
 
 Run RAT checks to validate license header:

Reply via email to