Skip to content

Commit

Permalink
[pypi] Include compiled translations on Pypi pkg (apache#9567)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar authored Apr 17, 2020
1 parent 8e439b1 commit ecf1aba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions RELEASING/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 8 additions & 1 deletion pypi_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ecf1aba

Please sign in to comment.