mirror of https://github.com/apache/superset.git
chore: Deprecate Python 3.7 (#19017)
* chore: Deprecate Python 3.7 and add support for Python 3.10 * Update local-backend.mdx * Update UPDATING.md Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
parent
54b60ded8e
commit
e3e03d202d
6
Makefile
6
Makefile
|
@ -15,8 +15,8 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Python version installed; we need 3.7-3.9
|
||||
PYTHON=`command -v python3.9 || command -v python3.8 || command -v python3.7`
|
||||
# Python version installed; we need 3.8-3.9
|
||||
PYTHON=`command -v python3.9 || command -v python3.8`
|
||||
|
||||
.PHONY: install superset venv pre-commit
|
||||
|
||||
|
@ -70,7 +70,7 @@ update-js:
|
|||
|
||||
venv:
|
||||
# Create a virtual environment and activate it (recommended)
|
||||
if ! [ -x "${PYTHON}" ]; then echo "You need Python 3.7, 3.8 or 3.9 installed"; exit 1; fi
|
||||
if ! [ -x "${PYTHON}" ]; then echo "You need Python 3.8 or 3.9 installed"; exit 1; fi
|
||||
test -d venv || ${PYTHON} -m venv venv # setup a python3 virtualenv
|
||||
. venv/bin/activate
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ assists people when migrating to a new version.
|
|||
- [17539](https://github.com/apache/superset/pull/17539): all Superset CLI commands (init, load_examples and etc) require setting the FLASK_APP environment variable (which is set by default when `.flaskenv` is loaded)
|
||||
- [18970](https://github.com/apache/superset/pull/18970): Changes feature
|
||||
flag for the legacy datasource editor (DISABLE_LEGACY_DATASOURCE_EDITOR) in config.py to True, thus disabling the feature from being shown in the client.
|
||||
- [19017](https://github.com/apache/superset/pull/19017): Removes Python 3.7 support.
|
||||
|
||||
### Potential Downtime
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ version: 1
|
|||
Make sure your machine meets the [OS dependencies](https://superset.apache.org/docs/installation/installing-superset-from-scratch#os-dependencies) before following these steps.
|
||||
You also need to install MySQL or [MariaDB](https://mariadb.com/downloads).
|
||||
|
||||
Ensure that you are using Python version 3.7 or 3.8, then proceed with:
|
||||
Ensure that you are using Python version 3.8 or 3.9, then proceed with:
|
||||
|
||||
````bash
|
||||
# Create a virtual environment and activate it (recommended)
|
||||
|
|
3
setup.py
3
setup.py
|
@ -167,13 +167,12 @@ setup(
|
|||
"vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"],
|
||||
"netezza": ["nzalchemy>=11.0.2"],
|
||||
},
|
||||
python_requires="~=3.7",
|
||||
python_requires="~=3.8",
|
||||
author="Apache Software Foundation",
|
||||
author_email="dev@superset.apache.org",
|
||||
url="https://superset.apache.org/",
|
||||
download_url="https://www.apache.org/dist/superset/" + version_string,
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue