[pypi] Include compiled translations on Pypi pkg (#9567)

This commit is contained in:
Daniel Vaz Gaspar 2020-04-17 16:28:10 +01:00 committed by GitHub
parent 8e439b1115
commit ecf1abae78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -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.

View File

@ -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"