From b4e79c31de39fcb3cc056637886db93f89fe363a Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Thu, 28 Nov 2024 11:04:12 -0500 Subject: [PATCH] nbextension --- MANIFEST.in | 2 +- devtools/release.py | 14 -------------- setup.py | 4 ++-- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index cafdb3c8..a25106c9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,5 @@ include nglview/datafiles/* -recursive-include nglview/static *.* +recursive-include nglview/nbextension *.* recursive-include nglview/labextension *.* include nglview/theme/* include LICENSE README.md DEVELOPMENT.md CHANGELOG.md diff --git a/devtools/release.py b/devtools/release.py index 94aa1812..3d70e45d 100755 --- a/devtools/release.py +++ b/devtools/release.py @@ -1,19 +1,5 @@ #!/usr/bin/env python -""" -Steps: - - cd nglview/static - - git rm -rf ./* - - - cd nglview/labextension - - git rm -rf ./* - - - cd js - - npm install - - cd ../nglview - - git add static labextension -""" - import subprocess import sys from pathlib import Path diff --git a/setup.py b/setup.py index 77fe4e22..0e9d0fed 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def update_package_data(distribution): HERE = Path(__file__).parent.resolve() # The name of the project lab_path = (HERE / "nglview" / "labextension") -nb_path = (HERE / "nglview" / "static") +nb_path = (HERE / "nglview" / "nbextension") assert (nb_path/"index.js").exists(), "index.js not found in %s. Make sure to build the frontend assets and install the JupyterLab extension." % nb_path assert (lab_path/"package.json").exists(), "package.json not found in %s. Make sure to build the frontend assets and install the JupyterLab extension." % lab_path labext_name = "nglview-js-widgets" @@ -62,7 +62,7 @@ def pre_dist(): 'package_data': { "nglview.datafiles": ["*"], "nglview.theme": ["*"], - "nglview.static": ["*"], + "nglview.nbextension": ["*"], "nglview.labextension": ["*"], }, 'data_files': data_files,