From 4c79f3b359f55f08e23d05ea8a1e1e82283992f9 Mon Sep 17 00:00:00 2001 From: Sigmar Stefansson Date: Mon, 22 Jan 2024 13:23:35 +0000 Subject: [PATCH] fix semver for custom build --- jupyterlab/extensions/manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jupyterlab/extensions/manager.py b/jupyterlab/extensions/manager.py index 1e279de85c86..02d26a8ab87b 100644 --- a/jupyterlab/extensions/manager.py +++ b/jupyterlab/extensions/manager.py @@ -328,6 +328,11 @@ def get_semver_version(version: str) -> str: Returns Semver compatible version """ + if "/running" in version: + version = "~4.0.11" + elif "/services" in version: + version = "~7.0.11" + return re.sub( r"(a|b|rc)(\d+)$", lambda m: f"{PYTHON_TO_SEMVER[m.group(1)]}{m.group(2)}",