Skip to content

Commit 8df7c97

Browse files
committed
Fix labext_name
1 parent a0b6ba5 commit 8df7c97

File tree

1 file changed

+28
-21
lines changed

1 file changed

+28
-21
lines changed

setup.py

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,31 @@
1212
# The name of the project
1313
name = "jupyterlab_quickopen"
1414

15-
lab_path = (HERE / name.replace("-", "_") / "labextension")
15+
lab_path = HERE / name.replace("-", "_") / "labextension"
1616

1717
# Representative files that should exist after a successful build
18-
ensured_targets = [
19-
str(lab_path / "package.json"),
20-
str(lab_path / "static/style.js")
21-
]
18+
ensured_targets = [str(lab_path / "package.json"), str(lab_path / "static/style.js")]
2219

23-
labext_name = "jupyterlab-quickopen"
20+
labext_name = "@parente/jupyterlab-quickopen"
2421

2522
data_files_spec = [
26-
("share/jupyter/labextensions/%s" % labext_name, str(lab_path.relative_to(HERE)), "**"),
23+
(
24+
"share/jupyter/labextensions/%s" % labext_name,
25+
str(lab_path.relative_to(HERE)),
26+
"**",
27+
),
2728
("share/jupyter/labextensions/%s" % labext_name, str("."), "install.json"),
28-
("etc/jupyter/jupyter_server_config.d",
29-
"jupyter-config/server-config", "jupyterlab_quickopen.json"),
29+
(
30+
"etc/jupyter/jupyter_server_config.d",
31+
"jupyter-config/server-config",
32+
"jupyterlab_quickopen.json",
33+
),
3034
# For backward compatibility with notebook server
31-
("etc/jupyter/jupyter_notebook_config.d",
32-
"jupyter-config/nb-config", "jupyterlab_quickopen.json"),
35+
(
36+
"etc/jupyter/jupyter_notebook_config.d",
37+
"jupyter-config/nb-config",
38+
"jupyterlab_quickopen.json",
39+
),
3340
]
3441

3542
long_description = (HERE / "README.md").read_text()
@@ -48,9 +55,7 @@
4855
long_description=long_description,
4956
long_description_content_type="text/markdown",
5057
packages=setuptools.find_packages(),
51-
install_requires=[
52-
"jupyter_server>=1.6,<2"
53-
],
58+
install_requires=["jupyter_server>=1.6,<2"],
5459
zip_safe=False,
5560
include_package_data=True,
5661
python_requires=">=3.6",
@@ -74,20 +79,22 @@
7479
)
7580

7681
try:
77-
from jupyter_packaging import (
78-
wrap_installers,
79-
npm_builder,
80-
get_data_files
81-
)
82+
from jupyter_packaging import wrap_installers, npm_builder, get_data_files
83+
8284
post_develop = npm_builder(
8385
build_cmd="install:extension", source_dir="src", build_dir=lab_path
8486
)
85-
setup_args["cmdclass"] = wrap_installers(post_develop=post_develop, ensured_targets=ensured_targets)
87+
setup_args["cmdclass"] = wrap_installers(
88+
post_develop=post_develop, ensured_targets=ensured_targets
89+
)
8690
setup_args["data_files"] = get_data_files(data_files_spec)
8791
except ImportError as e:
8892
import logging
93+
8994
logging.basicConfig(format="%(levelname)s: %(message)s")
90-
logging.warning("Build tool `jupyter-packaging` is missing. Install it with pip or conda.")
95+
logging.warning(
96+
"Build tool `jupyter-packaging` is missing. Install it with pip or conda."
97+
)
9198
if not ("--name" in sys.argv or "--version" in sys.argv):
9299
raise e
93100

0 commit comments

Comments
 (0)