From 9e237846c586e1f60cb596a794040631dd23570b Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Wed, 16 Dec 2020 22:02:57 +0100 Subject: [PATCH 1/2] Add install.json metadata file --- MANIFEST.in | 1 + install.json | 5 +++++ setup.py | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 install.json diff --git a/MANIFEST.in b/MANIFEST.in index fa69ac3..0a51a0c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,7 @@ include README.md include pyproject.toml include jupyter-config/jupyterlab-python-file.json +include install.json include package.json include ts*.json diff --git a/install.json b/install.json new file mode 100644 index 0000000..b20314e --- /dev/null +++ b/install.json @@ -0,0 +1,5 @@ +{ + "packageManager": "python", + "packageName": "jupyterlab-python-file", + "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab-python-file" +} \ No newline at end of file diff --git a/setup.py b/setup.py index 0d777e1..420a9c8 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,8 @@ labext_name = "jupyterlab-python-file" data_files_spec = [ - ("share/jupyter/labextensions/%s" % labext_name, lab_path, "*.*"), + ("share/jupyter/labextensions/%s" % labext_name, lab_path, "**"), + ("share/jupyter/labextensions/%s" % labext_name, HERE, "install.json"), ] cmdclass = create_cmdclass("jsdeps", From 5dedf17b8d8abc305c1c4231bba9634f7d4e6c51 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Wed, 16 Dec 2020 22:06:51 +0100 Subject: [PATCH 2/2] Lint --- install.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.json b/install.json index b20314e..6381532 100644 --- a/install.json +++ b/install.json @@ -2,4 +2,4 @@ "packageManager": "python", "packageName": "jupyterlab-python-file", "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab-python-file" -} \ No newline at end of file +}