Skip to content

Commit

Permalink
nbextension
Browse files Browse the repository at this point in the history
  • Loading branch information
hainm committed Nov 28, 2024
1 parent ce6a445 commit b4e79c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 0 additions & 14 deletions devtools/release.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -62,7 +62,7 @@ def pre_dist():
'package_data': {
"nglview.datafiles": ["*"],
"nglview.theme": ["*"],
"nglview.static": ["*"],
"nglview.nbextension": ["*"],
"nglview.labextension": ["*"],
},
'data_files': data_files,
Expand Down

0 comments on commit b4e79c3

Please sign in to comment.