Skip to content

Commit

Permalink
chore: Updates the final steps of the release README (#20318)
Browse files Browse the repository at this point in the history
* chore: Updates the final steps of the release README

* Apply suggestions from code review

Co-authored-by: Yongjie Zhao <[email protected]>

Co-authored-by: Yongjie Zhao <[email protected]>
  • Loading branch information
michael-s-molina and zhaoyongjie authored Jun 10, 2022
1 parent ec331e6 commit 72e5e57
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 36 deletions.
40 changes: 37 additions & 3 deletions RELEASING/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,47 @@ with the changes on `CHANGELOG.md` and `UPDATING.md`.

### Publishing a Convenience Release to PyPI

Using the final release tarball, unpack it and run `./pypi_push.sh`.
This script will build the JavaScript bundle and echo the twine command
allowing you to publish to PyPI. You may need to ask a fellow committer to grant
Extract the release to the `/tmp` folder to build the PiPY release. Files in the `/tmp` folder will be automatically deleted by the OS.

```bash
mkdir -p /tmp/superset && cd /tmp/superset
tar xfvz ~/svn/superset/${SUPERSET_VERSION}/${SUPERSET_RELEASE_TARBALL}
```

Create a virtual environment and install the dependencies

```bash
cd ${SUPERSET_RELEASE_RC}
python3 -m venv venv
source venv/bin/activate
pip install -r requirements/base.txt
pip install twine
```

Create the distribution

```bash
cd superset-frontend/
npm ci && npm run build
cd ../
flask fab babel-compile --target superset/translations
python setup.py sdist
```

Publish to PyPI

You may need to ask a fellow committer to grant
you access to it if you don't have access already. Make sure to create
an account first if you don't have one, and reference your username
while requesting access to push packages.

```bash
twine upload dist/apache-superset-${SUPERSET_VERSION}.tar.gz

# Set your username to token
# Set your password to the token value, including the pypi- prefix
```

### Announcing

Once it's all done, an [ANNOUNCE] thread announcing the release to the dev@ mailing list is the final step.
Expand Down
33 changes: 0 additions & 33 deletions scripts/pypi_push.sh

This file was deleted.

0 comments on commit 72e5e57

Please sign in to comment.