Skip to content

Commit 2f7ca50

Browse files
authored
Merge pull request #72 from hbcarlos/releaser
Updates to JupyterLab 3.6 and fixes check release
2 parents 0cf2339 + 06e8e51 commit 2f7ca50

File tree

8 files changed

+355
-115
lines changed

8 files changed

+355
-115
lines changed

.github/workflows/check-release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@ on:
55
pull_request:
66
branches: ["*"]
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
check_release:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v3
17+
1418
- name: Base Setup
1519
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
16-
- name: Install Dependencies
17-
run: |
18-
pip install -e .
20+
1921
- name: Check Release
2022
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
2123
with:
2224
token: ${{ secrets.GITHUB_TOKEN }}
25+
2326
- name: Upload Distributions
2427
uses: actions/upload-artifact@v3
2528
with:
26-
name: jupyterlab_blockly-releaser-dist-${{ '{{ github.run_number }}' }}
27-
path: .jupyter_releaser_checkout/dist
29+
name: jupyter-releaser-dist-${{ github.run_number }}
30+
path: |
31+
.jupyter_releaser_checkout/dist

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Repo: https://github.com/google/blockly
1616

1717
## Requirements
1818

19-
- JupyterLab == 3.4
19+
- JupyterLab == 3.6
2020

2121
## Install
2222

@@ -53,14 +53,14 @@ The `jlpm` command is JupyterLab's pinned version of
5353
`yarn` or `npm` in lieu of `jlpm` below.
5454

5555
```bash
56-
micromamba create -n blockly -c conda-forge python nodejs pre-commit yarn jupyterlab==3.4 jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
56+
micromamba create -n blockly -c conda-forge python nodejs=18 yarn pre-commit jupyterlab==3.6 jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
5757
micromamba activate blockly
5858
# Clone the repo to your local environment
5959
# Change directory to the jupyterlab_blockly directory
6060
# Installing pre-commit to run command when adding commits
6161
pre-commit install
6262
# Install package in development mode
63-
pip install -e .
63+
pip install -e ".[dev]"
6464
# Link your development version of the extension with JupyterLab
6565
jupyter labextension develop . --overwrite
6666
# Rebuild extension Typescript source after making changes

docs/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Requirements
44

5-
- JupyterLab == 3.4
5+
- JupyterLab == 3.6
66

77
## Install
88

@@ -37,12 +37,12 @@ The `jlpm` command is JupyterLab's pinned version of
3737
`yarn` or `npm` in lieu of `jlpm` below.
3838

3939
```bash
40-
micromamba create -n blockly -c conda-forge python nodejs pre-commit yarn jupyterlab==3.4 jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
40+
micromamba create -n blockly -c conda-forge python nodejs=18 yarn pre-commit jupyterlab==3.6 jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
4141
micromamba activate blockly
4242
# Clone the repo to your local environment
4343
# Change directory to the jupyterlab_blockly directory
4444
# Install package in development mode
45-
pip install -e .
45+
pip install -e ".[dev]"
4646
# Installing pre-commit to run command when adding commits
4747
pre-commit install
4848
# Link your development version of the extension with JupyterLab

packages/blockly-extension/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@
4343
"watch:labextension": "jupyter labextension watch ."
4444
},
4545
"dependencies": {
46-
"@jupyterlab/application": "^3.4",
47-
"@jupyterlab/apputils": "^3.4",
48-
"@jupyterlab/codeeditor": "^3.4",
49-
"@jupyterlab/filebrowser": "^3.4",
50-
"@jupyterlab/launcher": "^3.4",
51-
"@jupyterlab/mainmenu": "^3.4",
52-
"@jupyterlab/rendermime": "^3.4",
53-
"@jupyterlab/settingregistry": "^3.4",
54-
"@jupyterlab/translation": "^3.4",
55-
"@jupyterlab/ui-components": "^3.4",
46+
"@jupyterlab/application": "^3.6",
47+
"@jupyterlab/apputils": "^3.6",
48+
"@jupyterlab/codeeditor": "^3.6",
49+
"@jupyterlab/filebrowser": "^3.6",
50+
"@jupyterlab/launcher": "^3.6",
51+
"@jupyterlab/mainmenu": "^3.6",
52+
"@jupyterlab/rendermime": "^3.6",
53+
"@jupyterlab/settingregistry": "^3.6",
54+
"@jupyterlab/translation": "^3.6",
55+
"@jupyterlab/ui-components": "^3.6",
5656
"jupyterlab-blockly": "^0.2.1"
5757
},
5858
"devDependencies": {
59-
"@jupyterlab/builder": "^3.5",
59+
"@jupyterlab/builder": "^3.6",
6060
"npm-run-all": "^4.1.5",
6161
"rimraf": "^4.4.0",
62-
"typescript": "~4.9.5",
63-
"source-map-loader": "^4.0.1"
62+
"source-map-loader": "^4.0.1",
63+
"typescript": "~4.9.5"
6464
},
6565
"sideEffects": [
6666
"style/*.css",

packages/blockly/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,25 @@
3131
"scripts": {
3232
"build": "tsc -b",
3333
"build:prod": "jlpm build",
34-
"clean": "rimraf lib tsconfig.tsbuildinfo",
35-
"clean:all": "jlpm clean",
34+
"clean": "jlpm clean:lib",
35+
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
36+
"clean:all": "jlpm clean:lib",
3637
"install:extension": "jlpm build"
3738
},
3839
"dependencies": {
39-
"@jupyterlab/apputils": "^3.4",
40-
"@jupyterlab/cells": "^3.4",
41-
"@jupyterlab/codeeditor": "^3.4",
42-
"@jupyterlab/coreutils": "^5.4",
43-
"@jupyterlab/docregistry": "^3.4",
44-
"@jupyterlab/rendermime": "^3.4",
45-
"@jupyterlab/services": "^6.4",
46-
"@jupyterlab/ui-components": "^3.4",
40+
"@jupyterlab/apputils": "^3.6",
41+
"@jupyterlab/cells": "^3.6",
42+
"@jupyterlab/codeeditor": "^3.6",
43+
"@jupyterlab/coreutils": "^5.6",
44+
"@jupyterlab/docregistry": "^3.6",
45+
"@jupyterlab/rendermime": "^3.6",
46+
"@jupyterlab/services": "^6.6",
47+
"@jupyterlab/ui-components": "^3.6",
4748
"@lumino/algorithm": "^1.9.0",
4849
"@lumino/coreutils": "^1.11.0",
4950
"@lumino/messaging": "^1.10.0",
5051
"@lumino/signaling": "^1.10.0",
51-
"@lumino/widgets": "^1.30.0",
52+
"@lumino/widgets": "^1.37.1",
5253
"blockly": "^9.2.1",
5354
"react": "^17.0.1",
5455
"react-dom": "^17.0.1"

patches/@jupyterlab+codeeditor+3.4.3.patch renamed to patches/@jupyterlab+codeeditor+3.6.1.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff --git a/node_modules/@jupyterlab/codeeditor/lib/editor.d.ts b/node_modules/
22
index ffe8d1f..d63b2f8 100644
33
--- a/node_modules/@jupyterlab/codeeditor/lib/editor.d.ts
44
+++ b/node_modules/@jupyterlab/codeeditor/lib/editor.d.ts
5-
@@ -44,7 +44,7 @@ export declare namespace CodeEditor {
5+
@@ -47,7 +47,7 @@ export declare namespace CodeEditor {
66
/**
77
* An interface describing editor state coordinates.
88
*/

pyproject.toml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "hatchling.build"
3-
requires = ["hatchling>=1.4.0", "hatch-nodejs-version", "jupyterlab~=3.4"]
3+
requires = ["hatchling>=1.4.0", "hatch-nodejs-version", "jupyterlab~=3.6"]
44

55
[project]
66
name = "jupyterlab_blockly"
@@ -23,14 +23,15 @@ classifiers = [
2323
"Programming Language :: Python :: 3.11",
2424
]
2525
dependencies = [
26-
"jupyterlab~=3.4"
26+
"jupyterlab~=3.6"
2727
]
2828
dynamic = ["version", "description", "authors", "urls", "keywords"]
2929

3030
[project.optional-dependencies]
3131
dev = [
3232
"click",
33-
"jupyter_releaser==0.22"
33+
"pre-commit",
34+
"jupyter_releaser"
3435
]
3536

3637
[tool.hatch.version]
@@ -39,9 +40,12 @@ source = "nodejs"
3940
[tool.hatch.metadata.hooks.nodejs]
4041
fields = ["description", "authors", "urls"]
4142

42-
[tool.hatch.build]
43-
artifacts = ["package.json", "scripts", "packages", "patches", "jupyterlab_blockly/labextension"]
44-
exclude = [".github", "binder"]
43+
[tool.hatch.build.targets.sdist]
44+
artifacts = ["/jupyterlab_blockly/labextension"]
45+
exclude = ["/.github", "/binder", "node_modules"]
46+
47+
[tool.hatch.build.targets.sdist.force-include]
48+
"./packages" = "packages"
4549

4650
[tool.hatch.build.targets.wheel.shared-data]
4751
"jupyterlab_blockly/labextension" = "share/jupyter/labextensions/jupyterlab-blockly-extension"
@@ -57,21 +61,27 @@ ensured-targets = [
5761
skip-if-exists = ["jupyterlab_blockly/labextension/static/style.js"]
5862

5963
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
60-
build_cmd = "build:prod"
61-
npm = ["jlpm"]
62-
63-
[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
64-
build_cmd = "install:extension"
6564
npm = ["jlpm"]
66-
build_dir = "jupyterlab_blockly/labextension"
65+
build_cmd = "build:prod"
66+
editable_build_cmd = "install:extension"
6767

6868
[tool.jupyter-releaser.options]
6969
version-cmd = "python scripts/bump-version.py --force"
7070

7171
[tool.jupyter-releaser.hooks]
72-
before-bump-version = ["python -m pip install jupyterlab~=3.4", "jlpm"]
73-
before-build-npm = ["python -m pip install jupyterlab~=3.4", "jlpm", "jlpm build:prod"]
74-
before-build-python = ["jlpm clean:all"]
72+
before-bump-version = [
73+
"python -m pip install --pre -U jupyterlab~=3.6",
74+
"jlpm"
75+
]
76+
before-build-npm = [
77+
"jlpm build:prod"
78+
]
79+
before-build-python = [
80+
# Build the assets
81+
"jlpm build:prod",
82+
# Clean the build artifacts to not include them in sdist
83+
"jlpm clean"
84+
]
7585

7686
[tool.check-wheel-contents]
7787
ignore = ["W002"]

0 commit comments

Comments
 (0)