Skip to content

Commit

Permalink
Improve release process documentation (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove authored Sep 20, 2023
1 parent a47712e commit 41d65d1
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
47 changes: 46 additions & 1 deletion dev/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ When prompted for username, enter `__token__`. When prompted for a password, ent
Download the source tarball created in the previous step, untar it, and run:

```bash
python3 -m build
maturin sdist
```

This will create a file named `dist/datafusion-0.7.0.tar.gz`. Upload this to testpypi:
Expand Down Expand Up @@ -263,3 +263,48 @@ git checkout 0.8.0-rc1
git tag 0.8.0
git push apache 0.8.0
```

### Add the release to Apache Reporter

Add the release to https://reporter.apache.org/addrelease.html?arrow with a version name prefixed with `RS-DATAFUSION-PYTHON`,
for example `RS-DATAFUSION-PYTHON-31.0.0`.

The release information is used to generate a template for a board report (see example
[here](https://github.com/apache/arrow/pull/14357)).

### Delete old RCs and Releases

See the ASF documentation on [when to archive](https://www.apache.org/legal/release-policy.html#when-to-archive)
for more information.

#### Deleting old release candidates from `dev` svn

Release candidates should be deleted once the release is published.

Get a list of DataFusion release candidates:

```bash
svn ls https://dist.apache.org/repos/dist/dev/arrow | grep datafusion-python
```

Delete a release candidate:

```bash
svn delete -m "delete old DataFusion RC" https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-datafusion-python-7.1.0-rc1/
```

#### Deleting old releases from `release` svn

Only the latest release should be available. Delete old releases after publishing the new release.

Get a list of DataFusion releases:

```bash
svn ls https://dist.apache.org/repos/dist/release/arrow | grep datafusion-python
```

Delete a release:

```bash
svn delete -m "delete old DataFusion release" https://dist.apache.org/repos/dist/release/arrow/arrow-datafusion-python-7.0.0
```
3 changes: 2 additions & 1 deletion dev/release/rat_exclude_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ Cargo.lock
*/.git
.github/*
benchmarks/tpch/queries/q*.sql
benchmarks/tpch/create_tables.sql
benchmarks/tpch/create_tables.sql
.cargo/config.toml

0 comments on commit 41d65d1

Please sign in to comment.