Skip to content

Commit 90bcf2c

Browse files
authored
Remove hard-coded release version (#643)
1 parent 05d604a commit 90bcf2c

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

mkdocs/docs/verify-release.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,21 @@ curl https://dist.apache.org/repos/dist/dev/iceberg/KEYS -o KEYS
4444
gpg --import KEYS
4545
```
4646

47+
Set an environment variable to the version to verify and path to use
48+
49+
```sh
50+
export PYICEBERG_VERSION=<version> # e.g. 0.6.1rc3
51+
export PYICEBERG_VERIFICATION_DIR=/tmp/pyiceberg/${PYICEBERG_VERSION}
52+
```
53+
4754
Next, verify the `.asc` file.
4855

4956
```sh
50-
svn checkout https://dist.apache.org/repos/dist/dev/iceberg/pyiceberg-0.5.0rc1/ /tmp/pyiceberg/
57+
svn checkout https://dist.apache.org/repos/dist/dev/iceberg/pyiceberg-${PYICEBERG_VERSION}/ ${PYICEBERG_VERIFICATION_DIR}
58+
59+
cd ${PYICEBERG_VERIFICATION_DIR}
5160

52-
for name in $(ls /tmp/pyiceberg/pyiceberg-*.whl /tmp/pyiceberg/pyiceberg-*.tar.gz)
61+
for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
5362
do
5463
gpg --verify ${name}.asc ${name}
5564
done
@@ -58,8 +67,8 @@ done
5867
## Verifying checksums
5968

6069
```sh
61-
cd /tmp/pyiceberg/
62-
for name in $(ls /tmp/pyiceberg/pyiceberg-*.whl.sha512 /tmp/pyiceberg/pyiceberg-*.tar.gz.sha512)
70+
cd ${PYICEBERG_VERIFICATION_DIR}
71+
for name in $(ls pyiceberg-*.whl.sha512 pyiceberg-*.tar.gz.sha512)
6372
do
6473
shasum -a 512 --check ${name}
6574
done
@@ -68,8 +77,9 @@ done
6877
## Verifying License Documentation
6978

7079
```sh
71-
tar xzf pyiceberg-0.5.0.tar.gz
72-
cd pyiceberg-0.5.0
80+
export PYICEBERG_RELEASE_VERSION=${PYICEBERG_VERSION/rc?/} # remove rcX qualifier
81+
tar xzf pyiceberg-${PYICEBERG_RELEASE_VERSION}.tar.gz
82+
cd pyiceberg-${PYICEBERG_RELEASE_VERSION}
7383
```
7484

7585
Run RAT checks to validate license header:

0 commit comments

Comments
 (0)