parse distro version tuples

instead of using floats
This commit is contained in:
Min RK
2023-03-21 10:39:40 +01:00
parent aa72179afa
commit 150a3f62d6
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ jobs:
- name: "Int. tests: Ubuntu 20.04, Py 3.8"
distro_image: "ubuntu:20.04"
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"
extra_flags: ""
- name: "Int. tests: Ubuntu 22.04, Py 3.10, --upgrade"

View File

@@ -206,7 +206,7 @@ def ensure_host_system_can_install_tljh():
# Require Ubuntu 20.04+ or Debian 10+
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"]:
print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
sys.exit(1)