Skip to content

Commit 6089c07

Browse files
author
mahendrapaipuri
committed
Hard code extension name in the package
1 parent 46b51ff commit 6089c07

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

jupyter_server_proxy/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
import json
2-
from pathlib import Path
3-
41
from .handlers import setup_handlers
52
from .config import ServerProxy as ServerProxyConfig, make_handlers, get_entrypoint_server_processes, make_server_process
63
from jupyter_server.utils import url_path_join as ujoin
74
from .api import ServersInfoHandler, IconHandler
85

9-
HERE = Path(__file__).parent.resolve()
10-
11-
with (HERE / "labextension" / "package.json").open() as fid:
12-
data = json.load(fid)
13-
146
# Jupyter Extension points
157
def _jupyter_server_extension_points():
168
return [{
@@ -28,7 +20,7 @@ def _jupyter_nbextension_paths():
2820
def _jupyter_labextension_paths():
2921
return [{
3022
"src": "labextension",
31-
"dest": data["name"]
23+
"dest": "@jupyterhub/jupyter-server-proxy",
3224
}]
3325

3426

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ acceptance = [
6161
source = "nodejs"
6262
path = "labextension/package.json"
6363

64-
[tool.hatch.build]
65-
artifacts = [
66-
"jupyter_server_proxy/labextension",
67-
]
68-
6964
[tool.hatch.build.targets.sdist]
7065
artifacts = [
7166
"jupyter_server_proxy/labextension",

0 commit comments

Comments
 (0)