|
9 | 9 |
|
10 | 10 | Constraints:
|
11 | 11 |
|
12 |
| - - The entire script should be compatible with Python 3.8, which is the default on |
13 |
| - Ubuntu 20.04. |
14 |
| - - The script should parse in Python 3.6 as we print error messages for using |
15 |
| - Ubuntu 18.04 which comes with Python 3.6 by default. |
| 12 | + - The entire script should be compatible with Python 3.9, which is the default on |
| 13 | + Debian 11. |
| 14 | + - The script should parse in Python 3.8 as we print error messages for using |
| 15 | + Ubuntu 20.04 which comes with Python 3.8 by default. |
16 | 16 | - The script must depend only on stdlib modules, as no previous installation
|
17 | 17 | of dependencies can be assumed.
|
18 | 18 |
|
@@ -210,22 +210,22 @@ def ensure_host_system_can_install_tljh():
|
210 | 210 | Check if TLJH is installable in current host system and exit with a clear
|
211 | 211 | error message otherwise.
|
212 | 212 | """
|
213 |
| - # Require Ubuntu 20.04+ or Debian 11+ |
| 213 | + # Require Ubuntu 22.04+ or Debian 11+ |
214 | 214 | distro = get_os_release_variable("ID")
|
215 | 215 | version = get_os_release_variable("VERSION_ID")
|
216 | 216 | if distro not in ["ubuntu", "debian"]:
|
217 | 217 | print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
|
218 | 218 | sys.exit(1)
|
219 |
| - elif distro == "ubuntu" and _parse_version(version) < (20, 4): |
220 |
| - print("The Littlest JupyterHub requires Ubuntu 20.04 or higher") |
| 219 | + elif distro == "ubuntu" and _parse_version(version) < (22, 4): |
| 220 | + print("The Littlest JupyterHub requires Ubuntu 22.04 or higher") |
221 | 221 | sys.exit(1)
|
222 | 222 | elif distro == "debian" and _parse_version(version) < (11,):
|
223 | 223 | print("The Littlest JupyterHub requires Debian 11 or higher")
|
224 | 224 | sys.exit(1)
|
225 | 225 |
|
226 |
| - # Require Python 3.8+ |
227 |
| - if sys.version_info < (3, 8): |
228 |
| - print(f"bootstrap.py must be run with at least Python 3.8, found {sys.version}") |
| 226 | + # Require Python 3.9+ |
| 227 | + if sys.version_info < (3, 9): |
| 228 | + print(f"bootstrap.py must be run with at least Python 3.9, found {sys.version}") |
229 | 229 | sys.exit(1)
|
230 | 230 |
|
231 | 231 | # Require systemd (systemctl is a part of systemd)
|
|
0 commit comments