Drop support for Python 3.8

This commit is contained in:
Nicola Soranzo
2025-02-05 09:17:29 +00:00
parent 3f01d5b5c3
commit edd8bccf4f
65 changed files with 280 additions and 362 deletions
+10 -7
View File
@@ -3,25 +3,28 @@ If the current installed Python version is not supported, prints an error
message to stderr and returns 1
"""
from __future__ import print_function # noqa: UP010
from __future__ import print_function
import sys
MIN_VERSION_TUPLE = (3, 9)
def check_python():
if sys.version_info[:2] >= (3, 8): # noqa: UP036
if sys.version_info[:2] >= MIN_VERSION_TUPLE:
# supported
return
else:
version_string = ".".join(str(_) for _ in sys.version_info[:3])
msg = (
"""ERROR: Your Python version is: %s
Galaxy is currently supported on Python >=3.8 .
min_version_string = ".".join(str(_) for _ in MIN_VERSION_TUPLE)
msg = """ERROR: Your Python version is: {}
Galaxy is currently supported on Python >={} .
To run Galaxy, please install a supported Python version.
If a supported version is already installed but is not your default,
https://docs.galaxyproject.org/en/latest/admin/python.html contains instructions
on how to force Galaxy to use a different version.""" # noqa: UP031
% version_string
on how to force Galaxy to use a different version.""".format(
version_string,
min_version_string,
)
print(msg, file=sys.stderr)
raise Exception(msg)
+2 -2
View File
@@ -14,7 +14,7 @@ SKIP_NODE=${GALAXY_SKIP_NODE:-0}
INSTALL_PREBUILT_CLIENT=${GALAXY_INSTALL_PREBUILT_CLIENT:-0}
NODE_VERSION=${GALAXY_NODE_VERSION:-"$(cat client/.node_version)"}
: "${YARN_INSTALL_OPTS:=--network-timeout 300000 --check-files}"
: "${GALAXY_CONDA_PYTHON_VERSION:=3.8}"
: "${GALAXY_CONDA_PYTHON_VERSION:=3.9}"
for arg in "$@"; do
if [ "$arg" = "--skip-venv" ]; then
@@ -40,7 +40,7 @@ RMFILES="
lib/pkg_resources.pyc
"
MIN_PYTHON_VERSION=3.8
MIN_PYTHON_VERSION=3.9
MIN_PIP_VERSION=20.3
# return true if $1 is in $2 else false