mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
parse distro version tuples
instead of using floats
This commit is contained in:
2
.github/workflows/integration-test.yaml
vendored
2
.github/workflows/integration-test.yaml
vendored
@@ -65,7 +65,7 @@ jobs:
|
|||||||
- name: "Int. tests: Ubuntu 20.04, Py 3.8"
|
- name: "Int. tests: Ubuntu 20.04, Py 3.8"
|
||||||
distro_image: "ubuntu:20.04"
|
distro_image: "ubuntu:20.04"
|
||||||
extra_flags: ""
|
extra_flags: ""
|
||||||
- name: "Int. tests: Ubuntu 22.04 (Py 3.10)"
|
- name: "Int. tests: Ubuntu 22.04 Py 3.10"
|
||||||
distro_image: "ubuntu:22.04"
|
distro_image: "ubuntu:22.04"
|
||||||
extra_flags: ""
|
extra_flags: ""
|
||||||
- name: "Int. tests: Ubuntu 22.04, Py 3.10, --upgrade"
|
- name: "Int. tests: Ubuntu 22.04, Py 3.10, --upgrade"
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ def ensure_host_system_can_install_tljh():
|
|||||||
|
|
||||||
# Require Ubuntu 20.04+ or Debian 10+
|
# Require Ubuntu 20.04+ or Debian 10+
|
||||||
distro = get_os_release_variable("ID")
|
distro = get_os_release_variable("ID")
|
||||||
version = float(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"]:
|
||||||
print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
|
print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user