You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by dp...@apache.org on 2020/04/17 15:28:24 UTC

[incubator-superset] branch master updated: [pypi] Include compiled translations on Pypi pkg (#9567)

This is an automated email from the ASF dual-hosted git repository.

dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ecf1aba  [pypi] Include compiled translations on Pypi pkg (#9567)
ecf1aba is described below

commit ecf1abae7820993f854ec35b8729f269a2092b3c
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Fri Apr 17 16:28:10 2020 +0100

    [pypi] Include compiled translations on Pypi pkg (#9567)
---
 RELEASING/README.md | 6 +++---
 pypi_push.sh        | 9 ++++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/RELEASING/README.md b/RELEASING/README.md
index d67ff07..6b69b81 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 065fa26..8b4db99 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"