chore: deprecate python 3.6 support (#10803)
This commit is contained in:
parent
50672bb11b
commit
9a6697141d
|
|
@ -213,8 +213,7 @@ jobs:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# run unit tests in multiple version just for fun
|
python-version: [3.7, 3.8]
|
||||||
python-version: [3.6, 3.7, 3.8]
|
|
||||||
env:
|
env:
|
||||||
PYTHONPATH: ${{ github.workspace }}
|
PYTHONPATH: ${{ github.workspace }}
|
||||||
SUPERSET_CONFIG: tests.superset_test_config
|
SUPERSET_CONFIG: tests.superset_test_config
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
# PY stage that simply does a pip install on our requirements
|
# PY stage that simply does a pip install on our requirements
|
||||||
######################################################################
|
######################################################################
|
||||||
ARG PY_VER=3.6.9
|
ARG PY_VER=3.7.9
|
||||||
FROM python:${PY_VER} AS superset-py
|
FROM python:${PY_VER} AS superset-py
|
||||||
|
|
||||||
RUN mkdir /app \
|
RUN mkdir /app \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
FROM python:3.6-jessie
|
FROM python:3.7-jessie
|
||||||
|
|
||||||
RUN useradd --user-group --create-home --no-log-init --shell /bin/bash superset
|
RUN useradd --user-group --create-home --no-log-init --shell /bin/bash superset
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
FROM python:3.6-jessie
|
FROM python:3.7-jessie
|
||||||
|
|
||||||
RUN useradd --user-group --create-home --no-log-init --shell /bin/bash superset
|
RUN useradd --user-group --create-home --no-log-init --shell /bin/bash superset
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
FROM python:3.6-jessie
|
FROM python:3.7-jessie
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
RUN git clone --depth 1 --branch ${VERSION} https://github.com/apache/incubator-superset.git /superset
|
RUN git clone --depth 1 --branch ${VERSION} https://github.com/apache/incubator-superset.git /superset
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
FROM python:3.6-jessie
|
FROM python:3.7-jessie
|
||||||
|
|
||||||
RUN apt-get update -y
|
RUN apt-get update -y
|
||||||
RUN apt-get install -y jq
|
RUN apt-get install -y jq
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,10 @@ Installation & Configuration
|
||||||
Getting Started
|
Getting Started
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
Superset has deprecated support for Python ``2.*`` and supports
|
Superset supports Python versions ``>3.7`` to take advantage of the
|
||||||
only ``~=3.6`` to take advantage of the newer Python features and reduce
|
newer Python features and reduce the burden of supporting previous versions.
|
||||||
the burden of supporting previous versions. We run our test suite
|
We run our test suite against ``3.7``, with a subset of tests additionally
|
||||||
against ``3.7``, with a subset of tests additionally being run against
|
also being run against ``3.8``.
|
||||||
``3.6`` and ``3.8``.
|
|
||||||
|
|
||||||
Cloud-native!
|
Cloud-native!
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,13 @@ alembic==1.4.2 # via flask-migrate
|
||||||
amqp==2.6.1 # via kombu
|
amqp==2.6.1 # via kombu
|
||||||
apispec[yaml]==3.3.2 # via flask-appbuilder
|
apispec[yaml]==3.3.2 # via flask-appbuilder
|
||||||
async-timeout==3.0.1 # via aiohttp
|
async-timeout==3.0.1 # via aiohttp
|
||||||
attrs==20.1.0 # via aiohttp, jsonschema
|
attrs==20.2.0 # via aiohttp, jsonschema
|
||||||
babel==2.8.0 # via flask-babel
|
babel==2.8.0 # via flask-babel
|
||||||
backoff==1.10.0 # via apache-superset
|
backoff==1.10.0 # via apache-superset
|
||||||
billiard==3.6.3.0 # via celery
|
billiard==3.6.3.0 # via celery
|
||||||
bleach==3.1.5 # via apache-superset
|
bleach==3.1.5 # via apache-superset
|
||||||
boto3==1.14.51 # via tabulator
|
boto3==1.14.56 # via tabulator
|
||||||
botocore==1.17.51 # via boto3, s3transfer
|
botocore==1.17.56 # via boto3, s3transfer
|
||||||
brotli==1.0.9 # via flask-compress
|
brotli==1.0.9 # via flask-compress
|
||||||
cached-property==1.5.1 # via tableschema
|
cached-property==1.5.1 # via tableschema
|
||||||
cachelib==0.1.1 # via apache-superset
|
cachelib==0.1.1 # via apache-superset
|
||||||
|
|
@ -30,7 +30,6 @@ colorama==0.4.3 # via apache-superset, flask-appbuilder
|
||||||
contextlib2==0.6.0.post1 # via apache-superset
|
contextlib2==0.6.0.post1 # via apache-superset
|
||||||
croniter==0.3.34 # via apache-superset
|
croniter==0.3.34 # via apache-superset
|
||||||
cryptography==3.1 # via apache-superset
|
cryptography==3.1 # via apache-superset
|
||||||
dataclasses==0.6 # via apache-superset
|
|
||||||
decorator==4.4.2 # via retry
|
decorator==4.4.2 # via retry
|
||||||
defusedxml==0.6.0 # via python3-openid
|
defusedxml==0.6.0 # via python3-openid
|
||||||
dnspython==2.0.0 # via email-validator
|
dnspython==2.0.0 # via email-validator
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ cfgv==3.2.0 # via pre-commit
|
||||||
click==7.1.2 # via pip-compile-multi, pip-tools
|
click==7.1.2 # via pip-compile-multi, pip-tools
|
||||||
distlib==0.3.1 # via virtualenv
|
distlib==0.3.1 # via virtualenv
|
||||||
filelock==3.0.12 # via tox, virtualenv
|
filelock==3.0.12 # via tox, virtualenv
|
||||||
identify==1.4.29 # via pre-commit
|
identify==1.5.0 # via pre-commit
|
||||||
importlib-metadata==1.7.0 # via pluggy, pre-commit, tox, virtualenv
|
importlib-metadata==1.7.0 # via pluggy, pre-commit, tox, virtualenv
|
||||||
nodeenv==1.5.0 # via pre-commit
|
nodeenv==1.5.0 # via pre-commit
|
||||||
packaging==20.4 # via tox
|
packaging==20.4 # via tox
|
||||||
|
|
@ -24,7 +24,7 @@ pyyaml==5.3.1 # via pre-commit
|
||||||
six==1.15.0 # via packaging, pip-tools, tox, virtualenv
|
six==1.15.0 # via packaging, pip-tools, tox, virtualenv
|
||||||
toml==0.10.1 # via pre-commit, tox
|
toml==0.10.1 # via pre-commit, tox
|
||||||
toposort==1.5 # via pip-compile-multi
|
toposort==1.5 # via pip-compile-multi
|
||||||
tox==3.19.0 # via -r requirements/integration.in
|
tox==3.20.0 # via -r requirements/integration.in
|
||||||
virtualenv==20.0.31 # via pre-commit, tox
|
virtualenv==20.0.31 # via pre-commit, tox
|
||||||
zipp==3.1.0 # via importlib-metadata
|
zipp==3.1.0 # via importlib-metadata
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ iniconfig==1.0.1 # via pytest
|
||||||
ipdb==0.13.3 # via -r requirements/testing.in
|
ipdb==0.13.3 # via -r requirements/testing.in
|
||||||
ipython-genutils==0.2.0 # via traitlets
|
ipython-genutils==0.2.0 # via traitlets
|
||||||
ipython==7.16.1 # via -r requirements/testing.in, ipdb
|
ipython==7.16.1 # via -r requirements/testing.in, ipdb
|
||||||
isort==5.4.2 # via pylint
|
isort==5.5.1 # via pylint
|
||||||
jedi==0.17.2 # via ipython
|
jedi==0.17.2 # via ipython
|
||||||
lazy-object-proxy==1.4.3 # via astroid
|
lazy-object-proxy==1.4.3 # via astroid
|
||||||
mccabe==0.6.1 # via pylint
|
mccabe==0.6.1 # via pylint
|
||||||
|
|
@ -37,7 +37,7 @@ pytest-cov==2.10.1 # via -r requirements/testing.in
|
||||||
pytest==6.0.1 # via -r requirements/testing.in, pytest-cov
|
pytest==6.0.1 # via -r requirements/testing.in, pytest-cov
|
||||||
redis==3.5.3 # via -r requirements/testing.in
|
redis==3.5.3 # via -r requirements/testing.in
|
||||||
statsd==3.3.0 # via -r requirements/testing.in
|
statsd==3.3.0 # via -r requirements/testing.in
|
||||||
traitlets==4.3.3 # via ipython
|
traitlets==5.0.3 # via ipython
|
||||||
typed-ast==1.4.1 # via astroid
|
typed-ast==1.4.1 # via astroid
|
||||||
wcwidth==0.2.5 # via prompt-toolkit
|
wcwidth==0.2.5 # via prompt-toolkit
|
||||||
websocket-client==0.57.0 # via docker
|
websocket-client==0.57.0 # via docker
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -76,7 +76,6 @@ setup(
|
||||||
"contextlib2",
|
"contextlib2",
|
||||||
"croniter>=0.3.28",
|
"croniter>=0.3.28",
|
||||||
"cryptography>=2.4.2",
|
"cryptography>=2.4.2",
|
||||||
"dataclasses<0.7",
|
|
||||||
"flask>=1.1.0, <2.0.0",
|
"flask>=1.1.0, <2.0.0",
|
||||||
"flask-appbuilder>=3.0.1, <4.0.0",
|
"flask-appbuilder>=3.0.1, <4.0.0",
|
||||||
"flask-caching",
|
"flask-caching",
|
||||||
|
|
@ -145,7 +144,6 @@ setup(
|
||||||
url="https://superset.apache.org/",
|
url="https://superset.apache.org/",
|
||||||
download_url="https://www.apache.org/dist/incubator/superset/" + version_string,
|
download_url="https://www.apache.org/dist/incubator/superset/" + version_string,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3.6",
|
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue