diff --git a/pyproject.toml b/pyproject.toml index 3508c0f9a1..3aacca2d25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,3 +71,11 @@ compress = { file = "requires-compress.txt" } [tool.setuptools.packages.find] namespaces = false where = ["src"] + +[tool.setuptools.data-files] +# like `jupyter nbextension install --sys-prefix` +"share/jupyter/nbextensions/dash" = ["src/dash/nbextension/main.js"] +# like `jupyter nbextension enable --sys-prefix` +"etc/jupyter/nbconfig/notebook.d" = ["src/dash/nbextension/dash.json"] +# Place jupyterlab extension in extension directory +"share/jupyter/lab/extensions" = ["src/dash/labextension/dist/dash-jupyterlab.tgz"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 9ec06c801d..0000000000 --- a/setup.py +++ /dev/null @@ -1,19 +0,0 @@ -from setuptools import setup - - -setup( - data_files=[ - # like `jupyter nbextension install --sys-prefix` - ("share/jupyter/nbextensions/dash", [ - "src/dash/nbextension/main.js", - ]), - # like `jupyter nbextension enable --sys-prefix` - ("etc/jupyter/nbconfig/notebook.d", [ - "src/dash/nbextension/dash.json" - ]), - # Place jupyterlab extension in extension directory - ("share/jupyter/lab/extensions", [ - "src/dash/labextension/dist/dash-jupyterlab.tgz" - ]), - ], -)