File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,21 @@ curl https://dist.apache.org/repos/dist/dev/iceberg/KEYS -o KEYS
4444gpg --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+
4754Next, 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)
5362do
5463 gpg --verify ${name} .asc ${name}
5564done
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)
6372do
6473 shasum -a 512 --check ${name}
6574done
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
7585Run RAT checks to validate license header:
You can’t perform that action at this time.
0 commit comments