|
12 | 12 | HERE = os.path.abspath(os.path.dirname(__file__))
|
13 | 13 |
|
14 | 14 | # The name of the project
|
15 |
| -name = "jupyter-resource-usage" |
| 15 | +NAME = "jupyter-resource-usage" |
| 16 | +PACKAGE_NAME = NAME.replace("-", "_") |
16 | 17 |
|
17 | 18 | src_path = os.path.join(HERE, "packages", "labextension")
|
18 |
| -lab_path = os.path.join(HERE, name, "labextension") |
| 19 | +lab_path = os.path.join(HERE, PACKAGE_NAME, "labextension") |
19 | 20 |
|
20 | 21 | # Representative files that should exist after a successful build
|
21 | 22 | jstargets = [
|
22 | 23 | os.path.join(src_path, "lib", "index.js"),
|
23 | 24 | os.path.join(lab_path, "package.json"),
|
24 | 25 | ]
|
25 | 26 |
|
26 |
| -package_data_spec = {name: ["*"]} |
| 27 | +package_data_spec = {PACKAGE_NAME: ["*"]} |
27 | 28 |
|
28 | 29 | labext_name = "@jupyter-server/resource-usage"
|
29 | 30 |
|
|
45 | 46 | long_description = fh.read()
|
46 | 47 |
|
47 | 48 | setuptools.setup(
|
48 |
| - name=name, |
| 49 | + name=NAME, |
49 | 50 | version="0.4.0",
|
50 | 51 | url="https://github.com/jupyter-server/jupyter-resource-usage",
|
51 | 52 | author="Jupyter Development Team",
|
|
61 | 62 | data_files=[
|
62 | 63 | (
|
63 | 64 | "share/jupyter/nbextensions/jupyter-resource-usage",
|
64 |
| - glob("jupyter-resource-usage/static/*"), |
| 65 | + glob("jupyter_resource_usage/static/*"), |
65 | 66 | ),
|
66 | 67 | (
|
67 | 68 | "etc/jupyter/jupyter_notebook_config.d",
|
68 |
| - ["jupyter-resource-usage/etc/serverextension.json"], |
| 69 | + ["jupyter_resource_usage/etc/serverextension.json"], |
69 | 70 | ),
|
70 | 71 | (
|
71 | 72 | "etc/jupyter/nbconfig/notebook.d",
|
72 |
| - ["jupyter-resource-usage/etc/nbextension.json"], |
| 73 | + ["jupyter_resource_usage/etc/nbextension.json"], |
73 | 74 | ),
|
74 | 75 | ],
|
75 | 76 | zip_safe=False,
|
|
0 commit comments