Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to JupyterLite 0.2.0 #24

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Build

on:
push:
branches: main
branches:
- main
pull_request:
branches: '*'
branches:
- '*'

jobs:
build:
Expand All @@ -18,7 +20,7 @@ jobs:
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Install dependencies
run: python -m pip install -U jupyterlab~=3.1
run: python -m pip install -U jupyterlab~=4.0

- name: Lint the extension
run: |
Expand Down Expand Up @@ -71,7 +73,7 @@ jobs:
sudo rm -rf $(which node)
sudo rm -rf $(which node)

pip install "jupyterlab~=3.1" jupyterlite_p5_kernel*.whl
pip install "jupyterlab~=4.0" jupyterlite_p5_kernel*.whl


jupyter labextension list
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ dmypy.json
# JupyterLite
*.doit*
_output

# Yarn
.yarn
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pip uninstall jupyterlite-p5-kernel
# Change directory to the fork directory

# create a new enviroment
mamba create --name jupyterlite-p5-kernel -c conda-forge python=3.9 yarn jupyterlab
mamba create --name jupyterlite-p5-kernel -c conda-forge python=3.11 yarn jupyterlab=4
mamba activate jupyterlite-p5-kernel

# Install package in development mode
Expand Down
2 changes: 1 addition & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
- pydata-sphinx-theme
- myst-parser
- ipywidgets>=8.0,<9
- jupyterlab>=3.5.0,<4
- jupyterlab>=4.0.9,<5
- nodejs=18
- pip:
- jupyterlite-sphinx
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
"rimraf": "^3.0.2",
"shell-quote": "^1.7.2"
}
}
}
6 changes: 3 additions & 3 deletions packages/p5-kernel-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"watch:src": "tsc -w"
},
"dependencies": {
"@jupyterlite/kernel": "^0.1.0-beta.18",
"@jupyterlite/kernel": "^0.2.0",
"@jupyterlite/p5-kernel": "^0.1.1",
"@jupyterlite/server": "^0.1.0-beta.18"
"@jupyterlite/server": "^0.2.0"
},
"devDependencies": {
"@jupyterlab/builder": "^3.1.0",
"@jupyterlab/builder": "^4.0.0",
"rimraf": "~3.0.0",
"typescript": "~4.2.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/p5-kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlite/kernel": "^0.1.0-beta.18"
"@jupyterlite/kernel": "^0.2.0"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.12.1",
"@jupyterlab/testutils": "~3.1.12",
"@jupyterlab/testutils": "~4.0.9",
"@types/jest": "^26.0.10",
"jest": "^26.4.2",
"rimraf": "~3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling>=1.4.0", "jupyterlab>=3.4.7,<4.0.0", "hatch-nodejs-version"]
requires = ["hatchling>=1.4.0", "jupyterlab>=4.0.9,<5.0.0", "hatch-nodejs-version"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -61,8 +61,8 @@ build_dir = "jupyterlite_p5_kernel/labextension"
version_cmd = "python scripts/bump-version.py"

[tool.jupyter-releaser.hooks]
before-bump-version = ["python -m pip install jupyterlab~=3.1"]
before-build-npm = ["python -m pip install jupyterlab~=3.1", "jlpm", "jlpm build:prod"]
before-bump-version = ["python -m pip install jupyterlab~=4.0"]
before-build-npm = ["python -m pip install jupyterlab~=4.0", "jlpm", "jlpm build:prod"]
before-build-python = ["jlpm clean"]

[tool.check-wheel-contents]
Expand Down
28,575 changes: 16,051 additions & 12,524 deletions yarn.lock

Large diffs are not rendered by default.

Loading