Skip to content

Commit

Permalink
fix semver for custom build
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmarkarl committed Jan 22, 2024
1 parent 9684755 commit 4c79f3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jupyterlab/extensions/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}",
Expand Down

0 comments on commit 4c79f3b

Please sign in to comment.