diff --git a/RELEASING/README.md b/RELEASING/README.md index d67ff07325..6b69b8150b 100644 --- a/RELEASING/README.md +++ b/RELEASING/README.md @@ -292,9 +292,9 @@ with the changes on `CHANGELOG.md` and `UPDATING.md`. ### Publishing a Convenience Release to PyPI -From the root of the repo running ./pypi_push.sh 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 +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 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. diff --git a/pypi_push.sh b/pypi_push.sh index 065fa262a2..8b4db99065 100755 --- a/pypi_push.sh +++ b/pypi_push.sh @@ -21,6 +21,13 @@ git branch rm superset/static/assets/* cd superset-frontend/ npm ci && npm run build -cd ../.. +cd ../ +echo "----------------------" +echo "Compiling translations" +echo "----------------------" +flask fab babel-compile --target superset/translations +echo "----------------------" +echo "Creating distribution " +echo "----------------------" python setup.py sdist echo "RUN: twine upload dist/apache-superset-{SUPERSET_VERSION}.tar.gz"