mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Require Debian 11, not 10
10 has too-old Python by default
This commit is contained in:
4
.github/workflows/integration-test.yaml
vendored
4
.github/workflows/integration-test.yaml
vendored
@@ -58,8 +58,8 @@ jobs:
|
|||||||
echo $matrix_post_filter | jq -C '.'
|
echo $matrix_post_filter | jq -C '.'
|
||||||
env:
|
env:
|
||||||
matrix_include_pre_filter: |
|
matrix_include_pre_filter: |
|
||||||
- name: "Int. tests: Debian 10, Py 3.7"
|
- name: "Int. tests: Debian 11, Py 3.9"
|
||||||
distro_image: "debian:10"
|
distro_image: "debian:11"
|
||||||
runs_on: "ubuntu-22.04"
|
runs_on: "ubuntu-22.04"
|
||||||
extra_flags: ""
|
extra_flags: ""
|
||||||
- name: "Int. tests: Ubuntu 20.04, Py 3.8"
|
- name: "Int. tests: Ubuntu 20.04, Py 3.8"
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ This script is run as:
|
|||||||
|
|
||||||
Constraints:
|
Constraints:
|
||||||
|
|
||||||
- The entire script should be compatible with Python 3.7, which is the on
|
- The entire script should be compatible with Python 3.8, which is the on
|
||||||
Debian 10.
|
Ubuntu 20.04.
|
||||||
- The script should parse in Python 3.6 as we print error messages for using
|
- The script should parse in Python 3.6 as we print error messages for using
|
||||||
Ubuntu 18.04+ which comes with Python 3.6 by default.
|
Ubuntu 18.04 which comes with Python 3.6 by default.
|
||||||
- The script must depend only on stdlib modules, as no previous installation
|
- The script must depend only on stdlib modules, as no previous installation
|
||||||
of dependencies can be assumed.
|
of dependencies can be assumed.
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def _parse_version(vs):
|
def _parse_version(vs):
|
||||||
"""Parse a simple version into a tuple of ints"""
|
"""Parse a simple version into a tuple of ints"""
|
||||||
return (int(part) for part in vs.split("."))
|
return tuple(int(part) for part in vs.split("."))
|
||||||
|
|
||||||
|
|
||||||
# This function is needed both by the process starting this script, and by the
|
# This function is needed both by the process starting this script, and by the
|
||||||
@@ -204,7 +204,7 @@ def ensure_host_system_can_install_tljh():
|
|||||||
.strip()
|
.strip()
|
||||||
)
|
)
|
||||||
|
|
||||||
# Require Ubuntu 20.04+ or Debian 10+
|
# Require Ubuntu 20.04+ or Debian 11+
|
||||||
distro = get_os_release_variable("ID")
|
distro = get_os_release_variable("ID")
|
||||||
version = get_os_release_variable("VERSION_ID")
|
version = get_os_release_variable("VERSION_ID")
|
||||||
if distro not in ["ubuntu", "debian"]:
|
if distro not in ["ubuntu", "debian"]:
|
||||||
@@ -213,13 +213,13 @@ def ensure_host_system_can_install_tljh():
|
|||||||
elif distro == "ubuntu" and _parse_version(version) < (20, 4):
|
elif distro == "ubuntu" and _parse_version(version) < (20, 4):
|
||||||
print("The Littlest JupyterHub requires Ubuntu 20.04 or higher")
|
print("The Littlest JupyterHub requires Ubuntu 20.04 or higher")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif distro == "debian" and _parse_version(version) < (10,):
|
elif distro == "debian" and _parse_version(version) < (11,):
|
||||||
print("The Littlest JupyterHub requires Debian 10 or higher")
|
print("The Littlest JupyterHub requires Debian 10 or higher")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Require Python 3.6+
|
# Require Python 3.8+
|
||||||
if sys.version_info < (3, 7):
|
if sys.version_info < (3, 8):
|
||||||
print(f"bootstrap.py must be run with at least Python 3.7, found {sys.version}")
|
print(f"bootstrap.py must be run with at least Python 3.8, found {sys.version}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Require systemd (systemctl is a part of systemd)
|
# Require systemd (systemctl is a part of systemd)
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ might still make breaking changes that have no clear upgrade pathway.
|
|||||||
Installation
|
Installation
|
||||||
============
|
============
|
||||||
|
|
||||||
The Littlest JupyterHub (TLJH) can run on any server that is running **Debian 10** or **Ubuntu 20.04** on a amd64 or arm64 CPU architecture. Earlier versions of Ubuntu and Debian are not supported, as are other Linux distributions.
|
The Littlest JupyterHub (TLJH) can run on any server that is running **Debian 11** or **Ubuntu 20.04** or **22.04** on a amd64 or arm64 CPU architecture.
|
||||||
|
Earlier versions of Ubuntu and Debian are not supported, nor are other Linux distributions.
|
||||||
We have a bunch of tutorials to get you started.
|
We have a bunch of tutorials to get you started.
|
||||||
|
|
||||||
- Tutorials to create a new server from scratch on a cloud provider & run TLJH
|
- Tutorials to create a new server from scratch on a cloud provider & run TLJH
|
||||||
|
|||||||
@@ -4,9 +4,8 @@
|
|||||||
Installing
|
Installing
|
||||||
==========
|
==========
|
||||||
|
|
||||||
The Littlest JupyterHub (TLJH) can run on any server that is running at least
|
The Littlest JupyterHub (TLJH) can run on any server that is running **Debian 11** or **Ubuntu 20.04** or **22.04** on a amd64 or arm64 CPU architecture.
|
||||||
**Ubuntu 20.04** or **Debian 10**. Earlier versions of Ubuntu and Debian are not supported,
|
Earlier versions of Ubuntu and Debian are not supported, nor are other Linux distributions.
|
||||||
nor are other Linux distributions.
|
|
||||||
We have a bunch of tutorials to get you started.
|
We have a bunch of tutorials to get you started.
|
||||||
|
|
||||||
Tutorials to create a new server from scratch on a cloud provider & run TLJH
|
Tutorials to create a new server from scratch on a cloud provider & run TLJH
|
||||||
|
|||||||
Reference in New Issue
Block a user