Skip to content

Commit 641ddbe

Browse files
Add repository info when getting federated extensions (#417)
Co-authored-by: Frédéric Collonval <[email protected]>
1 parent e5ebfc4 commit 641ddbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jupyterlab_server/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def get_federated_extensions(labextensions_path: list[str]) -> dict[str, Any]:
6060
dependencies=pkgdata.get("dependencies", dict()),
6161
jupyterlab=pkgdata.get("jupyterlab", dict()),
6262
)
63+
64+
# Add repository info if available
65+
if "repository" in pkgdata and "url" in pkgdata.get("repository", {}):
66+
data["repository"] = dict(url=pkgdata.get("repository").get("url"))
67+
6368
install_path = osp.join(osp.dirname(ext_path), "install.json")
6469
if osp.exists(install_path):
6570
with open(install_path, encoding="utf-8") as fid:

0 commit comments

Comments
 (0)