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
44
44
gpg --import KEYS
45
45
```
46
46
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
+
47
54
Next, verify the ` .asc ` file.
48
55
49
56
``` 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}
51
60
52
- for name in $( ls /tmp/ pyiceberg/pyiceberg -* .whl /tmp/pyiceberg/ pyiceberg-* .tar.gz)
61
+ for name in $( ls pyiceberg-* .whl pyiceberg-* .tar.gz)
53
62
do
54
63
gpg --verify ${name} .asc ${name}
55
64
done
58
67
## Verifying checksums
59
68
60
69
``` 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)
63
72
do
64
73
shasum -a 512 --check ${name}
65
74
done
68
77
## Verifying License Documentation
69
78
70
79
``` 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}
73
83
```
74
84
75
85
Run RAT checks to validate license header:
You can’t perform that action at this time.
0 commit comments