Skip to content

Commit

Permalink
Use jupyterlab pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Nov 12, 2023
1 parent 0af9729 commit 1ecdd3a
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 284 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U "jupyterlab>=4.0.0,<5"
python -m pip install hatch build
cd jupyterlab
# see https://github.com/jupyterlab/hatch-jupyter-builder/issues/131
# python -m pip install -e .
jlpm install
jlpm build
jlpm build:prod
jupyter lab build
python -m pip install -U --pre "jupyterlab>=4.1.0a3,<5"
- name: Lint the extension
run: |
Expand Down Expand Up @@ -83,7 +75,7 @@ jobs:
sudo rm -rf $(which node)
sudo rm -rf $(which node)
pip install "jupyterlab>=4.0.0,<5" jupyterlab-transformers-completer*.whl
pip install --pre "jupyterlab>=4.1.0a3,<5" jupyterlab-transformers-completer*.whl
jupyter server extension list
jupyter server extension list 2>&1 | grep -ie "jupyterlab_transformers_completer.*OK"
Expand Down
15 changes: 3 additions & 12 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,12 @@ def _(*args, **kwargs):
print("\nERROR", return_code, " ".join(args))
sys.exit(return_code)

_("git", "submodule", "update", "--init")

cwd = os.getcwd()
os.chdir('jupyterlab')
_("rm", ".git")
_("mkdir", "-p", ".git/hooks")
_("python", "-m", "pip", "install", "-e", ".")
_("jlpm", "install")
_("jlpm", "build:dev:prod")
_("jupyter", "lab", "build")
os.chdir(cwd)

# verify the environment is self-consistent before even starting
_(sys.executable, "-m", "pip", "check")

# install jupyterlab pre-release
_(sys.executable, "-m", "pip", "install", "-U", "--pre", "'jupyterlab>=4.1.0a3,<5'")

# install the labextension
_(sys.executable, "-m", "pip", "install", "-e", ".")
_(sys.executable, "-m", "jupyter", "labextension", "develop", "--overwrite", ".")
Expand Down
104 changes: 2 additions & 102 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"watch:labextension": "jupyter labextension watch ."
},
"dependencies": {
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/completer": "^4.0.0",
"@jupyterlab/application": "^4.1.0-alpha.3",
"@jupyterlab/completer": "^4.1.0-alpha.3",
"@xenova/transformers": "^2.6.2"
},
"devDependencies": {
Expand Down Expand Up @@ -184,105 +184,5 @@
"selector-no-vendor-prefix": null,
"value-no-vendor-prefix": null
}
},
"resolutions": {
"@jupyterlab/buildutils": "portal:./jupyterlab/buildutils",
"@jupyterlab/template": "portal:./jupyterlab/buildutils/template",
"@jupyterlab/galata": "portal:./jupyterlab/galata",
"@jupyterlab/application": "portal:./jupyterlab/packages/application",
"@jupyterlab/application-extension": "portal:./jupyterlab/packages/application-extension",
"@jupyterlab/apputils": "portal:./jupyterlab/packages/apputils",
"@jupyterlab/apputils-extension": "portal:./jupyterlab/packages/apputils-extension",
"@jupyterlab/attachments": "portal:./jupyterlab/packages/attachments",
"@jupyterlab/cell-toolbar": "portal:./jupyterlab/packages/cell-toolbar",
"@jupyterlab/cell-toolbar-extension": "portal:./jupyterlab/packages/cell-toolbar-extension",
"@jupyterlab/cells": "portal:./jupyterlab/packages/cells",
"@jupyterlab/celltags-extension": "portal:./jupyterlab/packages/celltags-extension",
"@jupyterlab/codeeditor": "portal:./jupyterlab/packages/codeeditor",
"@jupyterlab/codemirror": "portal:./jupyterlab/packages/codemirror",
"@jupyterlab/codemirror-extension": "portal:./jupyterlab/packages/codemirror-extension",
"@jupyterlab/completer": "portal:./jupyterlab/packages/completer",
"@jupyterlab/completer-extension": "portal:./jupyterlab/packages/completer-extension",
"@jupyterlab/console": "portal:./jupyterlab/packages/console",
"@jupyterlab/console-extension": "portal:./jupyterlab/packages/console-extension",
"@jupyterlab/coreutils": "portal:./jupyterlab/packages/coreutils",
"@jupyterlab/csvviewer": "portal:./jupyterlab/packages/csvviewer",
"@jupyterlab/csvviewer-extension": "portal:./jupyterlab/packages/csvviewer-extension",
"@jupyterlab/debugger": "portal:./jupyterlab/packages/debugger",
"@jupyterlab/debugger-extension": "portal:./jupyterlab/packages/debugger-extension",
"@jupyterlab/docmanager": "portal:./jupyterlab/packages/docmanager",
"@jupyterlab/docmanager-extension": "portal:./jupyterlab/packages/docmanager-extension",
"@jupyterlab/docregistry": "portal:./jupyterlab/packages/docregistry",
"@jupyterlab/documentsearch": "portal:./jupyterlab/packages/documentsearch",
"@jupyterlab/documentsearch-extension": "portal:./jupyterlab/packages/documentsearch-extension",
"@jupyterlab/extensionmanager": "portal:./jupyterlab/packages/extensionmanager",
"@jupyterlab/extensionmanager-extension": "portal:./jupyterlab/packages/extensionmanager-extension",
"@jupyterlab/filebrowser": "portal:./jupyterlab/packages/filebrowser",
"@jupyterlab/filebrowser-extension": "portal:./jupyterlab/packages/filebrowser-extension",
"@jupyterlab/fileeditor": "portal:./jupyterlab/packages/fileeditor",
"@jupyterlab/fileeditor-extension": "portal:./jupyterlab/packages/fileeditor-extension",
"@jupyterlab/help-extension": "portal:./jupyterlab/packages/help-extension",
"@jupyterlab/htmlviewer": "portal:./jupyterlab/packages/htmlviewer",
"@jupyterlab/htmlviewer-extension": "portal:./jupyterlab/packages/htmlviewer-extension",
"@jupyterlab/hub-extension": "portal:./jupyterlab/packages/hub-extension",
"@jupyterlab/imageviewer": "portal:./jupyterlab/packages/imageviewer",
"@jupyterlab/imageviewer-extension": "portal:./jupyterlab/packages/imageviewer-extension",
"@jupyterlab/inspector": "portal:./jupyterlab/packages/inspector",
"@jupyterlab/inspector-extension": "portal:./jupyterlab/packages/inspector-extension",
"@jupyterlab/javascript-extension": "portal:./jupyterlab/packages/javascript-extension",
"@jupyterlab/json-extension": "portal:./jupyterlab/packages/json-extension",
"@jupyterlab/launcher": "portal:./jupyterlab/packages/launcher",
"@jupyterlab/launcher-extension": "portal:./jupyterlab/packages/launcher-extension",
"@jupyterlab/logconsole": "portal:./jupyterlab/packages/logconsole",
"@jupyterlab/logconsole-extension": "portal:./jupyterlab/packages/logconsole-extension",
"@jupyterlab/lsp": "portal:./jupyterlab/packages/lsp",
"@jupyterlab/lsp-extension": "portal:./jupyterlab/packages/lsp-extension",
"@jupyterlab/mainmenu": "portal:./jupyterlab/packages/mainmenu",
"@jupyterlab/mainmenu-extension": "portal:./jupyterlab/packages/mainmenu-extension",
"@jupyterlab/markdownviewer": "portal:./jupyterlab/packages/markdownviewer",
"@jupyterlab/markdownviewer-extension": "portal:./jupyterlab/packages/markdownviewer-extension",
"@jupyterlab/markedparser-extension": "portal:./jupyterlab/packages/markedparser-extension",
"@jupyterlab/mathjax-extension": "portal:./jupyterlab/packages/mathjax-extension",
"@jupyterlab/mermaid": "portal:./jupyterlab/packages/mermaid",
"@jupyterlab/mermaid-extension": "portal:./jupyterlab/packages/mermaid-extension",
"@jupyterlab/metadataform": "portal:./jupyterlab/packages/metadataform",
"@jupyterlab/metadataform-extension": "portal:./jupyterlab/packages/metadataform-extension",
"@jupyterlab/metapackage": "portal:./jupyterlab/packages/metapackage",
"@jupyterlab/nbconvert-css": "portal:./jupyterlab/packages/nbconvert-css",
"@jupyterlab/nbformat": "portal:./jupyterlab/packages/nbformat",
"@jupyterlab/notebook": "portal:./jupyterlab/packages/notebook",
"@jupyterlab/notebook-extension": "portal:./jupyterlab/packages/notebook-extension",
"@jupyterlab/observables": "portal:./jupyterlab/packages/observables",
"@jupyterlab/outputarea": "portal:./jupyterlab/packages/outputarea",
"@jupyterlab/pdf-extension": "portal:./jupyterlab/packages/pdf-extension",
"@jupyterlab/property-inspector": "portal:./jupyterlab/packages/property-inspector",
"@jupyterlab/rendermime": "portal:./jupyterlab/packages/rendermime",
"@jupyterlab/rendermime-extension": "portal:./jupyterlab/packages/rendermime-extension",
"@jupyterlab/rendermime-interfaces": "portal:./jupyterlab/packages/rendermime-interfaces",
"@jupyterlab/running": "portal:./jupyterlab/packages/running",
"@jupyterlab/running-extension": "portal:./jupyterlab/packages/running-extension",
"@jupyterlab/services": "portal:./jupyterlab/packages/services",
"@jupyterlab/settingeditor": "portal:./jupyterlab/packages/settingeditor",
"@jupyterlab/settingeditor-extension": "portal:./jupyterlab/packages/settingeditor-extension",
"@jupyterlab/settingregistry": "portal:./jupyterlab/packages/settingregistry",
"@jupyterlab/shortcuts-extension": "portal:./jupyterlab/packages/shortcuts-extension",
"@jupyterlab/statedb": "portal:./jupyterlab/packages/statedb",
"@jupyterlab/statusbar": "portal:./jupyterlab/packages/statusbar",
"@jupyterlab/statusbar-extension": "portal:./jupyterlab/packages/statusbar-extension",
"@jupyterlab/terminal": "portal:./jupyterlab/packages/terminal",
"@jupyterlab/terminal-extension": "portal:./jupyterlab/packages/terminal-extension",
"@jupyterlab/testing": "portal:./jupyterlab/packages/testing",
"@jupyterlab/theme-dark-extension": "portal:./jupyterlab/packages/theme-dark-extension",
"@jupyterlab/theme-light-extension": "portal:./jupyterlab/packages/theme-light-extension",
"@jupyterlab/toc": "portal:./jupyterlab/packages/toc",
"@jupyterlab/toc-extension": "portal:./jupyterlab/packages/toc-extension",
"@jupyterlab/tooltip": "portal:./jupyterlab/packages/tooltip",
"@jupyterlab/tooltip-extension": "portal:./jupyterlab/packages/tooltip-extension",
"@jupyterlab/translation": "portal:./jupyterlab/packages/translation",
"@jupyterlab/translation-extension": "portal:./jupyterlab/packages/translation-extension",
"@jupyterlab/ui-components": "portal:./jupyterlab/packages/ui-components",
"@jupyterlab/ui-components-extension": "portal:./jupyterlab/packages/ui-components-extension",
"@jupyterlab/vega5-extension": "portal:./jupyterlab/packages/vega5-extension",
"@jupyterlab/testutils": "portal:./jupyterlab/testutils"
}
}
Loading

0 comments on commit 1ecdd3a

Please sign in to comment.