Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 11 additions & 5 deletions mkdocs/docs/how-to-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,24 @@ Before committing the files to the Apache SVN artifact distribution SVN hashes n
Go to [Github Actions and run the `Python release` action](https://github.com/apache/iceberg/actions/workflows/python-release.yml). **Set the version to master, since we cannot modify the source**. Download the zip, and sign the files:

```bash
for name in $(ls release-master/pyiceberg-*.whl release-master/pyiceberg-*.tar.gz)
cd release-master/

for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
do
gpg --yes --armor --local-user fokko@apache.org --output "${name}.asc" --detach-sig "${name}"
shasum -a 512 "${name}.asc" > "${name}.asc.sha512"
shasum -a 512 "${name}" > "${name}.sha512"
done
```

Now we can upload the files
Now we can upload the files from the same directory:

```bash
export SVN_TMP_DIR=/tmp/iceberg-${VERSION_BRANCH}/
svn checkout https://dist.apache.org/repos/dist/dev/iceberg $SVN_TMP_DIR

export SVN_TMP_DIR_VERSIONED=${SVN_TMP_DIR}pyiceberg-$VERSION/
mkdir -p $SVN_TMP_DIR_VERSIONED
cp release-master/* $SVN_TMP_DIR_VERSIONED
cp * $SVN_TMP_DIR_VERSIONED
svn add $SVN_TMP_DIR_VERSIONED
svn ci -m "PyIceberg ${VERSION}" ${SVN_TMP_DIR_VERSIONED}
```
Expand All @@ -92,11 +94,15 @@ Final step is to generate the email to the dev mail list:
```bash
cat << EOF > release-announcement-email.txt
To: dev@iceberg.apache.org
Subject: [VOTE] Release Apache PyIceberg $VERSION_WITHOUT_RC
Subject: [VOTE] Release Apache PyIceberg $VERSION
Hi Everyone,

I propose that we release the following RC as the official PyIceberg $VERSION_WITHOUT_RC release.

A summary of the high level features:

* <Add summary by hand>

The commit ID is $LAST_COMMIT_ID

* This corresponds to the tag: $GIT_TAG ($GIT_TAG_HASH)
Expand Down
17 changes: 13 additions & 4 deletions mkdocs/docs/verify-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,29 @@ gpg --import KEYS
Next, verify the `.asc` file.

```sh
gpg --verify pyiceberg-0.4.0-py3-none-any.whl.asc pyiceberg-0.4.0-py3-none-any.whl
svn checkout https://dist.apache.org/repos/dist/dev/iceberg/pyiceberg-0.5.0rc1/ /tmp/pyiceberg/

for name in $(ls /tmp/pyiceberg/pyiceberg-*.whl /tmp/pyiceberg/pyiceberg-*.tar.gz)
do
gpg --verify ${name}.asc ${name}
done
```

## Verifying checksums

```sh
shasum -a 512 --check pyiceberg-0.4.0-py3-none-any.whl.sha512
cd /tmp/pyiceberg/
for name in $(ls /tmp/pyiceberg/pyiceberg-*.whl.asc.sha512 /tmp/pyiceberg/pyiceberg-*.tar.gz.asc.sha512)
do
shasum -a 512 --check ${name}
done
```

## Verifying License Documentation

```sh
tar xzf pyiceberg-0.4.0.tar.gz
cd pyiceberg-0.4.0
tar xzf pyiceberg-0.5.0.tar.gz
cd pyiceberg-0.5.0
```

Run RAT checks to validate license header:
Expand Down