diff --git a/.gitignore b/.gitignore index fcfe9cc16d..27e03b67ae 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,6 @@ ghostdriver.log testCSV.csv .terser-plugin-cache/ apache-superset-*.tar.gz* + +# Translation binaries +messages.mo diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d165ef4287..e832a149e7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -97,7 +97,12 @@ articles. See [Documentation](#documentation) for more details. ### Add Translations -If you are proficient in a non-English language, you can help translate text strings from Superset's UI. You can jump in to the existing language dictionaries at `superset/translations//LC_MESSAGES/messages.po`, or even create a dictionary for a new language altogether. See [Translating](#translating) for more details. +If you are proficient in a non-English language, you can help translate +text strings from Superset's UI. You can jump in to the existing +language dictionaries at +`superset/translations//LC_MESSAGES/messages.po`, or +even create a dictionary for a new language altogether. +See [Translating](#translating) for more details. ### Ask Questions @@ -578,16 +583,23 @@ See [`superset/assets/cypress_build.sh`](https://github.com/apache/incubator-sup ## Translating -We use [Babel](http://babel.pocoo.org/en/latest/) to translate Superset. In Python files, we import the magic `_` function using: +We use [Babel](http://babel.pocoo.org/en/latest/) to translate Superset. +In Python files, we import the magic `_` function using: ```python from flask_babel import lazy_gettext as _ ``` -then wrap our translatable strings with it, e.g. `_('Translate me')`. During extraction, string literals passed to `_` will be added to the generated `.po` file for each language for later translation. -At runtime, the `_` function will return the translation of the given string for the current language, or the given string itself if no translation is available. +then wrap our translatable strings with it, e.g. `_('Translate me')`. +During extraction, string literals passed to `_` will be added to the +generated `.po` file for each language for later translation. -In JavaScript, the technique is similar: we import `t` (simple translation), `tn` (translation containing a number). +At runtime, the `_` function will return the translation of the given +string for the current language, or the given string itself +if no translation is available. + +In JavaScript, the technique is similar: +we import `t` (simple translation), `tn` (translation containing a number). ```javascript import { t, tn } from '@superset-ui/translation'; diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000000..be541d1016 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,23 @@ + +# INSTALL / BUILD instructions for Apache Superset (incubating) + +At this time, the docker file at RELEASING/Dockerfile.from_tarball +constitutes the recipe on how to get to a working release from a source +release tarball. diff --git a/INSTALL.txt b/INSTALL.txt deleted file mode 100644 index 3fa5988cc1..0000000000 --- a/INSTALL.txt +++ /dev/null @@ -1,39 +0,0 @@ -# INSTALL / BUILD instructions for Apache Superset (incubating) - -# These instructions should work along sources releases under -# https://dist.apache.org/repos/dist/dev/incubator/superset/*/*source.tar.gz$ - -# [required] fetch the tarball and untar the source -# change into the directory that was untarred. - -############################# -# Dependencies -############################# -# Superset runs best on python3.6 -# Also recommended is the latest long term supported node / npm -# For complementary information read our CONTRIBUTING.md -# for OS level dependencies find instructions here: -# http://superset.apache.org/installation.html - -# Fetch npm dependencies -cd superset/assets/ -npm ci - -# Build the Javascript bundles -npm run build - -# Back to the root of the repo -cd ../.. - -# [optional] Superset pulls in quite a lot of dependencies in order -# to connect to other services. You might want to test or run Superset -# from a virtual env to make sure those dependencies are separated -# from your system wide versions -python3 -m env36 -source env36/bin/activate - -# [required] building and installing by pip (preferred) -pip install . - -# superset --help - diff --git a/LICENSE.txt b/LICENSE.txt index ff54f7b421..cdf3a17287 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -208,26 +208,9 @@ limitations under the License. subcomponents is subject to the terms and conditions of the following licenses. + ======================================================================== Third party Apache 2.0 licenses ======================================================================== -======================================================================== -MIT licenses -======================================================================== - - (MIT License) cal-heatmap v3.6.2 (https://github.com/wa0x6e/cal-heatmap) - -======================================================================== -BSD 2-Clause licenses -======================================================================== - -======================================================================== -BSD 3-Clause licenses -======================================================================== - - (BSD 3 License) parallel-coordinates v0.7.0 (http://syntagmatic.github.com/parallel-coordinates/) - -======================================================================== -Creative Commons Attribution 4.0 -======================================================================== +(Apache 2.0 License) The Roboto family of fonts (https://github.com/google/roboto) diff --git a/NOTICE b/NOTICE index 8465e24d13..d928b02318 100644 --- a/NOTICE +++ b/NOTICE @@ -3,6 +3,3 @@ Copyright 2016-2019 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). - -This product includes data licensed under a Creative Commons Attribution 4.0 -License (http://www.diva-gis.org/Data). \ No newline at end of file diff --git a/RELEASING/Dockerfile.from_tarball b/RELEASING/Dockerfile.from_tarball new file mode 100644 index 0000000000..6d66c47bde --- /dev/null +++ b/RELEASING/Dockerfile.from_tarball @@ -0,0 +1,71 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +FROM python:3.6-jessie + +RUN useradd --user-group --create-home --no-log-init --shell /bin/bash superset + +# Configure environment +ENV LANG=C.UTF-8 \ + LC_ALL=C.UTF-8 + +RUN apt-get update -y + +# Install dependencies to fix `curl https support error` and `elaying package configuration warning` +RUN apt-get install -y apt-transport-https apt-utils + +# Install superset dependencies +# https://superset.incubator.apache.org/installation.html#os-dependencies +RUN apt-get install -y build-essential libssl-dev \ + libffi-dev python3-dev libsasl2-dev libldap2-dev libxi-dev + +# Install nodejs for custom build +# https://superset.incubator.apache.org/installation.html#making-your-own-build +# https://nodejs.org/en/download/package-manager/ +RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ + && apt-get install -y nodejs + +RUN mkdir -p /home/superset +RUN chown superset /home/superset + +WORKDIR /home/superset +ARG VERSION + +RUN svn co https://dist.apache.org/repos/dist/dev/incubator/superset/$VERSION ./ +RUN tar -xvf *.tar.gz +WORKDIR apache-superset-incubating-$VERSION + +RUN cd superset/assets \ + && npm ci \ + && npm run build \ + && rm -rf node_modules + + +WORKDIR /home/superset/apache-superset-incubating-$VERSION +RUN pip install --upgrade setuptools pip \ + && pip install -r requirements.txt -r requirements-dev.txt \ + && pip install -e . \ + && rm -rf /root/.cache/pip + +RUN fabmanager babel-compile --target superset/translations + +RUN pip install -e . \ + && rm -rf /root/.cache/pip + +ENV PATH=/home/superset/superset/bin:$PATH \ + PYTHONPATH=/home/superset/superset/:$PYTHONPATH +COPY from_tarball_entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/RELEASING/Dockerfile.make_tarball b/RELEASING/Dockerfile.make_tarball new file mode 100644 index 0000000000..c7d516c55e --- /dev/null +++ b/RELEASING/Dockerfile.make_tarball @@ -0,0 +1,19 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +FROM python:3.6-jessie +COPY make_tarball.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/RELEASING.md b/RELEASING/README.md similarity index 76% rename from RELEASING.md rename to RELEASING/README.md index 4783ba6ddc..7a2f0aa0d6 100644 --- a/RELEASING.md +++ b/RELEASING/README.md @@ -16,6 +16,28 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> +# Apache Releases + +To make a fresh tarball of a git reference on apache/incubator-superset +(push your tag first!) + +```bash +docker build -t make_tarball -f Dockerfile.make_tarball . --build-arg VERSION=0.33.0rc1 +docker run make_tarball -f Dockerfile.make_tarball --env VERSION=0.33.0rc1 +``` + +To make a working build given a tarball +```bash +# Building a docker from a tarball +VERSION=0.33.0rc2 && \ +docker build -t apache-superset:$VERSION -f Dockerfile.from_tarball . --build-arg VERSION=$VERSION + +# testing the resulting docker +docker run -p 5001:8088 apache-superset:0.33.0rc2 +# you should be able to access localhost:5001 on your browser +# login using admin/admin +``` + ## Refresh documentation website Every once in a while we want to compile the documentation and publish it. @@ -57,14 +79,14 @@ First you need to setup a few things. This is a one-off and doesn't need to be done at every release. ```bash - # Create PGP Key + # Create PGP Key, and use your @apache.org email address gpg --gen-key # Checkout ASF dist repo svn checkout https://dist.apache.org/repos/dist/dev/incubator/superset/ ~/svn/superset_dev - svn checkout https://dist.apache.org/repos/dist/incubator/superset/ ~/svn/superset + svn checkout https://dist.apache.org/repos/dist/release/incubator/superset/ ~/svn/superset cd ~/svn/superset @@ -84,6 +106,8 @@ Now let's craft a source release # Assuming these commands are executed from the root of the repo # Setting a VERSION var will be useful export VERSION=0.31.0rc18 + export RELEASE=apache-superset-incubating-${VERSION} + export RELEASE_TARBAL=${RELEASE}-source.tar.gz # Let's create a git tag git tag -f ${VERSION} @@ -98,11 +122,11 @@ Now let's craft a source release mkdir -p ~/svn/superset_dev/${VERSION}/ git archive \ --format=tar.gz ${VERSION} \ - --prefix=apache-superset-${VERSION}/ \ - -o ~/svn/superset_dev/${VERSION}/apache-superset-${VERSION}-source.tar.gz + --prefix=${RELEASE}/ \ + -o ~/svn/superset_dev/${VERSION}/${RELEASE_TARBALL} cd ~/svn/superset_dev/ - scripts/sign.sh apache-superset-${VERSION}-source.tar.gz + scripts/sign.sh ${RELEASE}-source.tar.gz ``` ## Shipping to SVN @@ -112,7 +136,7 @@ Now let's ship this RC into svn's dev folder ```bash # cp or mv the files over to the svn repo mkdir ~/svn/superset_dev/${VERSION}/ - cp apache-superset-${VERSION}* ~/svn/superset_dev/${VERSION}/ + cp ${RELEASE_TARBALL} ~/svn/superset_dev/${VERSION}/ cd ~/svn/superset_dev/ svn add ${VERSION} svn commit diff --git a/RELEASING/from_tarball_entrypoint.sh b/RELEASING/from_tarball_entrypoint.sh new file mode 100755 index 0000000000..ae2ea27bf5 --- /dev/null +++ b/RELEASING/from_tarball_entrypoint.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +set -ex + +echo "[WARNING] this entrypoint creates an admin/admin user" +echo "[WARNING] it should only be used for lightweight testing/validation" + +# Create an admin user (you will be prompted to set username, first and last name before setting a password) +fabmanager create-admin \ + --app superset \ + --username admin \ + --firstname admin \ + --lastname admin \ + --email admin@admin.com \ + --password admin + +# Initialize the database +superset db upgrade + +# Loading examples +superset load_examples + +# Create default roles and permissions +superset init + +FLASK_ENV=development FLASK_APP=superset:app \ +flask run -p 8088 --with-threads --reload --debugger --host=0.0.0.0 diff --git a/RELEASING/make_tarball.sh b/RELEASING/make_tarball.sh new file mode 100755 index 0000000000..5959d0fea6 --- /dev/null +++ b/RELEASING/make_tarball.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +set -ex + +if [ -z "$VERSION" ]; then + echo "VERSION is required to run this container" + exit 1 +fi + + +echo "version: $VERSION" +cd /tmp +git clone --depth 1 --branch $VERSION https://github.com/apache/incubator-superset.git +mkdir ~/$VERSION +cd incubator-superset && \ +git archive \ + --format=tar.gz \ + --prefix=apache-superset-incubating-$VERSION/ \ + HEAD \ + -o ~/$VERSION/apache-superset-incubating.tar.gz + +gpg --armor --output apache-superset-incubating.tar.gz.asc --detach-sig apache-superset-incubating.tar.gz +gpg --print-md SHA512 apache-superset-incubating.tar.gz > apache-superset-incubating.tar.gz.sha512 diff --git a/UPDATING.md b/UPDATING.md index 89741d362d..45952c1b8f 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -32,6 +32,9 @@ which deprecates the table_columns.database_expression column. Expressions should be handled by the DB engine spec conversion, Python date format, or custom column expression/type. +* The repo no longer contains translation binaries (`.mo`) files. If you + want translations in your build, you now have to run the command + `babel-compile --target superset/translations` as part of your builds * [5451](https://github.com/apache/incubator-superset/pull/5451): a change which adds missing non-nullable fields to the `datasources` table. Depending on the integrity of the data, manual intervention may be required. diff --git a/licenses/LICENSE-cal-heatmap.txt b/licenses/LICENSE-cal-heatmap.txt deleted file mode 100644 index 358b067ad0..0000000000 --- a/licenses/LICENSE-cal-heatmap.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2012 Tyler Kellen, contributors - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/licenses/LICENSE-parallel-coordinates.txt b/licenses/LICENSE-parallel-coordinates.txt deleted file mode 100644 index 6c6d3551a5..0000000000 --- a/licenses/LICENSE-parallel-coordinates.txt +++ /dev/null @@ -1,26 +0,0 @@ -Copyright (c) 2012, Kai Chang -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* The name Kai Chang may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/superset/assets/images/babytux.jpg b/superset/assets/images/babytux.jpg deleted file mode 100644 index 4d0b0520e5..0000000000 Binary files a/superset/assets/images/babytux.jpg and /dev/null differ diff --git a/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.ttf b/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.ttf deleted file mode 100644 index 1413fc609a..0000000000 Binary files a/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.ttf and /dev/null differ diff --git a/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.woff b/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.woff deleted file mode 100644 index 9e612858f8..0000000000 Binary files a/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.woff and /dev/null differ diff --git a/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.woff2 b/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.woff2 deleted file mode 100644 index 64539b54c3..0000000000 Binary files a/superset/assets/stylesheets/fonts/glyphicons-halflings-regular.woff2 and /dev/null differ diff --git a/superset/assets/vendor/pygments.css b/superset/assets/vendor/pygments.css deleted file mode 100644 index 39860cb06c..0000000000 --- a/superset/assets/vendor/pygments.css +++ /dev/null @@ -1,63 +0,0 @@ -/* [LICENSE TBD] */ -.codehilite .hll { background-color: #ffffcc } -.codehilite { background: #f8f8f8; } -.codehilite .c { color: #408080; font-style: italic } /* Comment */ -.codehilite .err { border: 1px solid #FF0000 } /* Error */ -.codehilite .k { color: #008000; font-weight: bold } /* Keyword */ -.codehilite .o { color: #666666 } /* Operator */ -.codehilite .cm { color: #408080; font-style: italic } /* Comment.Multiline */ -.codehilite .cp { color: #BC7A00 } /* Comment.Preproc */ -.codehilite .c1 { color: #408080; font-style: italic } /* Comment.Single */ -.codehilite .cs { color: #408080; font-style: italic } /* Comment.Special */ -.codehilite .gd { color: #A00000 } /* Generic.Deleted */ -.codehilite .ge { font-style: italic } /* Generic.Emph */ -.codehilite .gr { color: #FF0000 } /* Generic.Error */ -.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.codehilite .gi { color: #00A000 } /* Generic.Inserted */ -.codehilite .go { color: #808080 } /* Generic.Output */ -.codehilite .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ -.codehilite .gs { font-weight: bold } /* Generic.Strong */ -.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -.codehilite .gt { color: #0040D0 } /* Generic.Traceback */ -.codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ -.codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ -.codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ -.codehilite .kp { color: #008000 } /* Keyword.Pseudo */ -.codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ -.codehilite .kt { color: #B00040 } /* Keyword.Type */ -.codehilite .m { color: #666666 } /* Literal.Number */ -.codehilite .s { color: #BA2121 } /* Literal.String */ -.codehilite .na { color: #7D9029 } /* Name.Attribute */ -.codehilite .nb { color: #008000 } /* Name.Builtin */ -.codehilite .nc { color: #0000FF; font-weight: bold } /* Name.Class */ -.codehilite .no { color: #880000 } /* Name.Constant */ -.codehilite .nd { color: #AA22FF } /* Name.Decorator */ -.codehilite .ni { color: #999999; font-weight: bold } /* Name.Entity */ -.codehilite .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ -.codehilite .nf { color: #0000FF } /* Name.Function */ -.codehilite .nl { color: #A0A000 } /* Name.Label */ -.codehilite .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ -.codehilite .nt { color: #008000; font-weight: bold } /* Name.Tag */ -.codehilite .nv { color: #19177C } /* Name.Variable */ -.codehilite .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ -.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ -.codehilite .mf { color: #666666 } /* Literal.Number.Float */ -.codehilite .mh { color: #666666 } /* Literal.Number.Hex */ -.codehilite .mi { color: #666666 } /* Literal.Number.Integer */ -.codehilite .mo { color: #666666 } /* Literal.Number.Oct */ -.codehilite .sb { color: #BA2121 } /* Literal.String.Backtick */ -.codehilite .sc { color: #BA2121 } /* Literal.String.Char */ -.codehilite .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ -.codehilite .s2 { color: #BA2121 } /* Literal.String.Double */ -.codehilite .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ -.codehilite .sh { color: #BA2121 } /* Literal.String.Heredoc */ -.codehilite .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ -.codehilite .sx { color: #008000 } /* Literal.String.Other */ -.codehilite .sr { color: #BB6688 } /* Literal.String.Regex */ -.codehilite .s1 { color: #BA2121 } /* Literal.String.Single */ -.codehilite .ss { color: #19177C } /* Literal.String.Symbol */ -.codehilite .bp { color: #008000 } /* Name.Builtin.Pseudo */ -.codehilite .vc { color: #19177C } /* Name.Variable.Class */ -.codehilite .vg { color: #19177C } /* Name.Variable.Global */ -.codehilite .vi { color: #19177C } /* Name.Variable.Instance */ -.codehilite .il { color: #666666 } /* Literal.Number.Integer.Long */ diff --git a/superset/data/birth_names.py b/superset/data/birth_names.py index aa000690c8..112082b426 100644 --- a/superset/data/birth_names.py +++ b/superset/data/birth_names.py @@ -235,7 +235,7 @@ def load_birth_names(): The source dataset came from [here]

- + """, ), @@ -552,7 +552,7 @@ def load_birth_names(): "MARKDOWN-00178c27": { "meta": { "width": 5, - "code": "
\\n

Birth Names Dashboard

\\n

\\n The source dataset came from\\n [here]\\n

\\n \\n
\\n", + "code": "
\\n

Birth Names Dashboard

\\n

\\n The source dataset came from\\n [here]\\n

\\n \\n
\\n", "height": 38 }, "type": "MARKDOWN", diff --git a/superset/extract_table_names.py b/superset/extract_table_names.py index 2af8a2b927..c6541ec07e 100644 --- a/superset/extract_table_names.py +++ b/superset/extract_table_names.py @@ -17,6 +17,7 @@ # under the License. # pylint: disable=C,R,W # + # Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com # # This example is part of python-sqlparse and is released under diff --git a/superset/translations/de/LC_MESSAGES/messages.mo b/superset/translations/de/LC_MESSAGES/messages.mo deleted file mode 100644 index 0d51828d03..0000000000 Binary files a/superset/translations/de/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/de/LC_MESSAGES/messages.po b/superset/translations/de/LC_MESSAGES/messages.po index 7e0ea5a91c..5d2cb7f328 100644 --- a/superset/translations/de/LC_MESSAGES/messages.po +++ b/superset/translations/de/LC_MESSAGES/messages.po @@ -14,11 +14,8 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# German translations for PROJECT. -# Copyright (C) 2017 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. + # FIRST AUTHOR github.com/alanmcruickshank, 2017. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/en/LC_MESSAGES/messages.mo b/superset/translations/en/LC_MESSAGES/messages.mo deleted file mode 100644 index 90c34430a8..0000000000 Binary files a/superset/translations/en/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/en/LC_MESSAGES/messages.po b/superset/translations/en/LC_MESSAGES/messages.po index bef71244d5..34c5787650 100644 --- a/superset/translations/en/LC_MESSAGES/messages.po +++ b/superset/translations/en/LC_MESSAGES/messages.po @@ -14,11 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# English translations for PROJECT. -# Copyright (C) 2016 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2016. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/es/LC_MESSAGES/messages.mo b/superset/translations/es/LC_MESSAGES/messages.mo deleted file mode 100644 index 854495d3a6..0000000000 Binary files a/superset/translations/es/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/es/LC_MESSAGES/messages.po b/superset/translations/es/LC_MESSAGES/messages.po index 3c40e93569..f024e81b9b 100644 --- a/superset/translations/es/LC_MESSAGES/messages.po +++ b/superset/translations/es/LC_MESSAGES/messages.po @@ -14,12 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Spanish translations for PROJECT. -# Copyright (C) 2016 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2016. -# Joe Bordes , 2018. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/fr/LC_MESSAGES/messages.mo b/superset/translations/fr/LC_MESSAGES/messages.mo deleted file mode 100644 index 353772ac22..0000000000 Binary files a/superset/translations/fr/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/fr/LC_MESSAGES/messages.po b/superset/translations/fr/LC_MESSAGES/messages.po index e361274f58..180e0e7a23 100644 --- a/superset/translations/fr/LC_MESSAGES/messages.po +++ b/superset/translations/fr/LC_MESSAGES/messages.po @@ -14,11 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# French translations for PROJECT. -# Copyright (C) 2017 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2017. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" @@ -5442,4 +5437,4 @@ msgstr "Requêtes sauvegardées" #~ msgstr "Slice" #~ msgid "Slice %(id)s not found" -#~ msgstr "Slice %(id)s non trouvé" \ No newline at end of file +#~ msgstr "Slice %(id)s non trouvé" diff --git a/superset/translations/it/LC_MESSAGES/messages.mo b/superset/translations/it/LC_MESSAGES/messages.mo deleted file mode 100644 index 7671736b84..0000000000 Binary files a/superset/translations/it/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/it/LC_MESSAGES/messages.po b/superset/translations/it/LC_MESSAGES/messages.po index e492f9a203..e3ca6e299f 100644 --- a/superset/translations/it/LC_MESSAGES/messages.po +++ b/superset/translations/it/LC_MESSAGES/messages.po @@ -14,12 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Italian translations for Superset. -# Copyright (C) 2016 ORGANIZATION -# This file is distributed under the same license as the Superset project. -# Maxime Beauchemin , 2016. -# Maurizio Napolitano , 2017. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/ja/LC_MESSAGES/messages.mo b/superset/translations/ja/LC_MESSAGES/messages.mo deleted file mode 100644 index 05ea8bfe8c..0000000000 Binary files a/superset/translations/ja/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/ja/LC_MESSAGES/messages.po b/superset/translations/ja/LC_MESSAGES/messages.po index bde65c197e..988f05f122 100644 --- a/superset/translations/ja/LC_MESSAGES/messages.po +++ b/superset/translations/ja/LC_MESSAGES/messages.po @@ -14,11 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Japanese translations for PROJECT. -# Copyright (C) 2017 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2017. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/ko/LC_MESSAGES/messages.mo b/superset/translations/ko/LC_MESSAGES/messages.mo deleted file mode 100644 index 482218b913..0000000000 Binary files a/superset/translations/ko/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/ko/LC_MESSAGES/messages.po b/superset/translations/ko/LC_MESSAGES/messages.po index a4681949c0..307c699638 100644 --- a/superset/translations/ko/LC_MESSAGES/messages.po +++ b/superset/translations/ko/LC_MESSAGES/messages.po @@ -13,10 +13,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Korean translations for PROJECT. -# Copyright (C) 2018 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2018. msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/messages.pot b/superset/translations/messages.pot index 236b694fe3..cd4a3f7a85 100644 --- a/superset/translations/messages.pot +++ b/superset/translations/messages.pot @@ -14,11 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Translations template for PROJECT. -# Copyright (C) 2018 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2018. -# + #, fuzzy msgid "" msgstr "" diff --git a/superset/translations/pt/LC_MESSAGES/message.po b/superset/translations/pt/LC_MESSAGES/message.po index 071d6e2651..e8a91fe779 100644 --- a/superset/translations/pt/LC_MESSAGES/message.po +++ b/superset/translations/pt/LC_MESSAGES/message.po @@ -14,11 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Translations template for PROJECT. -# Copyright (C) 2017 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2017. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/pt/LC_MESSAGES/messages.mo b/superset/translations/pt/LC_MESSAGES/messages.mo deleted file mode 100644 index 549b490efe..0000000000 Binary files a/superset/translations/pt/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/pt_BR/LC_MESSAGES/messages.mo b/superset/translations/pt_BR/LC_MESSAGES/messages.mo deleted file mode 100644 index 81fed17561..0000000000 Binary files a/superset/translations/pt_BR/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/pt_BR/LC_MESSAGES/messages.po b/superset/translations/pt_BR/LC_MESSAGES/messages.po index fab78c6080..e73ce03611 100644 --- a/superset/translations/pt_BR/LC_MESSAGES/messages.po +++ b/superset/translations/pt_BR/LC_MESSAGES/messages.po @@ -14,11 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Translations template for PROJECT. -# Copyright (C) 2017 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2017. -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/ru/LC_MESSAGES/messages.mo b/superset/translations/ru/LC_MESSAGES/messages.mo deleted file mode 100644 index cb7466bba1..0000000000 Binary files a/superset/translations/ru/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/ru/LC_MESSAGES/messages.po b/superset/translations/ru/LC_MESSAGES/messages.po index e414e6f8a9..ea89a332c9 100644 --- a/superset/translations/ru/LC_MESSAGES/messages.po +++ b/superset/translations/ru/LC_MESSAGES/messages.po @@ -14,9 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# Russian translations for Superset. -# Copyright (C) 2018 -# msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" diff --git a/superset/translations/zh/LC_MESSAGES/messages.mo b/superset/translations/zh/LC_MESSAGES/messages.mo deleted file mode 100644 index 7b7ee9851f..0000000000 Binary files a/superset/translations/zh/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/superset/translations/zh/LC_MESSAGES/messages.po b/superset/translations/zh/LC_MESSAGES/messages.po index 866adaa460..5077f767d0 100644 --- a/superset/translations/zh/LC_MESSAGES/messages.po +++ b/superset/translations/zh/LC_MESSAGES/messages.po @@ -15,11 +15,6 @@ # specific language governing permissions and limitations # under the License. # Chinese translations for Apache Superset. -# Copyright (C) 2016 ORGANIZATION -# This file is distributed under the same license as the Apache Superset -# project. -# FIRST AUTHOR , 2016. -# msgid "" msgstr "" "Project-Id-Version: Apache Superset 0.22.1\n"