Skip to content

Commit 15ffb61

Browse files
authored
Merge pull request #86 from QuantStack/fixBinder
Fix Binder configuration
2 parents 5351915 + 87c82cb commit 15ffb61

File tree

10 files changed

+19
-89
lines changed

10 files changed

+19
-89
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jupyterlab_blockly
1212
docs
1313
examples
1414
node_modules
15-
patches
1615
scripts
1716
.eslintignore
1817
.eslintrc.js

.github/workflows/binder-on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
issue_number: context.issue.number,
2222
owner: context.repo.owner,
2323
repo: context.repo.repo,
24-
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}?urlpath=lab) :point_left: Launch a Binder on branch _${PR_HEAD_USERREPO}/${PR_HEAD_REF}_`
24+
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}?urlpath=lab/tree/examples/example.jpblockly) :point_left: Launch a Binder on branch _${PR_HEAD_USERREPO}/${PR_HEAD_REF}_`
2525
})
2626
env:
2727
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
**/package.json
55
!/package.json
66
**/tsconfig.json
7-
**/patches
87
**/scripts
98
**/*.d.ts
109

@@ -15,7 +14,6 @@ jupyterlab_blockly
1514
docs
1615
examples
1716
node_modules
18-
patches
1917
scripts
2018
.eslintignore
2119
.eslintrc.js

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2024, quantstack
3+
Copyright (c) 2024, QuantStack
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Github Actions Status](https://github.com/QuantStack/jupyterlab-blockly/actions/workflows/build.yml/badge.svg)](https://github.com/quantstack/jupyterlab-blockly/actions/workflows/build.yml)
44
[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge-launch.svg)](https://jupyterlab-blockly.readthedocs.io/en/latest/lite/lab/index.html?path=example.jpblockly)
5-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/quantstack/jupyterlab-blockly/main?urlpath=lab)
5+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/quantstack/jupyterlab-blockly/main?urlpath=lab/tree/examples/example.jpblockly)
66

77

88
Blockly extension for JupyterLab.

binder/environment.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ channels:
1111

1212
dependencies:
1313
# runtime dependencies
14-
- python >=3.8,<3.12.0a0
14+
- python >=3.10,<3.11.0a0
1515
- jupyterlab >=4.0.0,<5.0.0a0
1616
# labextension build dependencies
1717
- nodejs >=18,<19
1818
- pip
1919
- wheel
20+
# packages needed for build to succeed
21+
- certipy
22+
- async_generator
2023
# additional packages for demos
2124
- ipywidgets
25+
- jupyterlab-language-pack-fr-FR

binder/postBuild

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def _(*args, **kwargs):
3030
_(sys.executable, "-m", "pip", "check")
3131

3232
# install the labextension
33-
_(sys.executable, "-m", "pip", "install", "-e", ".")
33+
_("jlpm", "install")
34+
_("jlpm", "build")
35+
_(sys.executable, "-m", "pip", "install", "-e", ".[dev]")
3436
_(sys.executable, "-m", "jupyter", "labextension", "develop", "--overwrite", ".")
3537

3638
# verify the environment the extension didn't break anything

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
"prettier": "jlpm prettier:base --write --list-different",
4242
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css}\"",
4343
"prettier:check": "jlpm prettier:base --check",
44-
"watch": "lerna run --stream watch",
45-
"postinstall": "patch-package"
44+
"watch": "lerna run --stream watch"
4645
},
4746
"dependencies": {
4847
"@typescript-eslint/eslint-plugin": "^5.12.1",
@@ -51,7 +50,6 @@
5150
"eslint-config-prettier": "^8.4.0",
5251
"eslint-plugin-prettier": "^4.0.0",
5352
"eslint-plugin-react": "^7.30.0",
54-
"patch-package": "^6.4.7",
5553
"postinstall-postinstall": "^2.1.0",
5654
"prettier": "^2.5.1",
5755
"typescript": "~5.0.2"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323
"Programming Language :: Python :: 3.12",
2424
]
2525
dependencies = [
26-
"jupyterlab_widgets~=1.1"
26+
"jupyterlab_widgets~=3.0.11"
2727
]
2828
dynamic = ["version", "description", "authors", "urls", "keywords"]
2929

yarn.lock

Lines changed: 6 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -3477,7 +3477,7 @@ __metadata:
34773477
languageName: node
34783478
linkType: hard
34793479

3480-
"chalk@npm:^4.0.0, chalk@npm:^4.0.2, chalk@npm:^4.1.0, chalk@npm:^4.1.1, chalk@npm:^4.1.2":
3480+
"chalk@npm:^4.0.0, chalk@npm:^4.0.2, chalk@npm:^4.1.0, chalk@npm:^4.1.1":
34813481
version: 4.1.2
34823482
resolution: "chalk@npm:4.1.2"
34833483
dependencies:
@@ -4914,15 +4914,6 @@ __metadata:
49144914
languageName: node
49154915
linkType: hard
49164916

4917-
"find-yarn-workspace-root@npm:^2.0.0":
4918-
version: 2.0.0
4919-
resolution: "find-yarn-workspace-root@npm:2.0.0"
4920-
dependencies:
4921-
micromatch: ^4.0.2
4922-
checksum: fa5ca8f9d08fe7a54ce7c0a5931ff9b7e36f9ee7b9475fb13752bcea80ec6b5f180fa5102d60b376d5526ce924ea3fc6b19301262efa0a5d248dd710f3644242
4923-
languageName: node
4924-
linkType: hard
4925-
49264917
"flat-cache@npm:^3.0.4":
49274918
version: 3.0.4
49284919
resolution: "flat-cache@npm:3.0.4"
@@ -5003,7 +4994,7 @@ __metadata:
50034994
languageName: node
50044995
linkType: hard
50054996

5006-
"fs-extra@npm:9.1.0, fs-extra@npm:^9.0.0, fs-extra@npm:^9.1.0":
4997+
"fs-extra@npm:9.1.0, fs-extra@npm:^9.1.0":
50074998
version: 9.1.0
50084999
resolution: "fs-extra@npm:9.1.0"
50095000
dependencies:
@@ -5865,7 +5856,7 @@ __metadata:
58655856
languageName: node
58665857
linkType: hard
58675858

5868-
"is-ci@npm:2.0.0, is-ci@npm:^2.0.0":
5859+
"is-ci@npm:2.0.0":
58695860
version: 2.0.0
58705861
resolution: "is-ci@npm:2.0.0"
58715862
dependencies:
@@ -6114,7 +6105,7 @@ __metadata:
61146105
languageName: node
61156106
linkType: hard
61166107

6117-
"is-wsl@npm:^2.1.1, is-wsl@npm:^2.2.0":
6108+
"is-wsl@npm:^2.2.0":
61186109
version: 2.2.0
61196110
resolution: "is-wsl@npm:2.2.0"
61206111
dependencies:
@@ -6440,7 +6431,6 @@ __metadata:
64406431
eslint-plugin-prettier: ^4.0.0
64416432
eslint-plugin-react: ^7.30.0
64426433
lerna: ^6.5.1
6443-
patch-package: ^6.4.7
64446434
postinstall-postinstall: ^2.1.0
64456435
prettier: ^2.5.1
64466436
typescript: ~5.0.2
@@ -6495,15 +6485,6 @@ __metadata:
64956485
languageName: node
64966486
linkType: hard
64976487

6498-
"klaw-sync@npm:^6.0.0":
6499-
version: 6.0.0
6500-
resolution: "klaw-sync@npm:6.0.0"
6501-
dependencies:
6502-
graceful-fs: ^4.1.11
6503-
checksum: 0da397f8961313c3ef8f79fb63af9002cde5a8fb2aeb1a37351feff0dd6006129c790400c3f5c3b4e757bedcabb13d21ec0a5eaef5a593d59515d4f2c291e475
6504-
languageName: node
6505-
linkType: hard
6506-
65076488
"lerna@npm:^6.5.1":
65086489
version: 6.5.1
65096490
resolution: "lerna@npm:6.5.1"
@@ -6957,7 +6938,7 @@ __metadata:
69576938
languageName: node
69586939
linkType: hard
69596940

6960-
"micromatch@npm:^4.0.2, micromatch@npm:^4.0.4":
6941+
"micromatch@npm:^4.0.4":
69616942
version: 4.0.5
69626943
resolution: "micromatch@npm:4.0.5"
69636944
dependencies:
@@ -7856,16 +7837,6 @@ __metadata:
78567837
languageName: node
78577838
linkType: hard
78587839

7859-
"open@npm:^7.4.2":
7860-
version: 7.4.2
7861-
resolution: "open@npm:7.4.2"
7862-
dependencies:
7863-
is-docker: ^2.0.0
7864-
is-wsl: ^2.1.1
7865-
checksum: 3333900ec0e420d64c23b831bc3467e57031461d843c801f569b2204a1acc3cd7b3ec3c7897afc9dde86491dfa289708eb92bba164093d8bd88fb2c231843c91
7866-
languageName: node
7867-
linkType: hard
7868-
78697840
"open@npm:^8.4.0":
78707841
version: 8.4.2
78717842
resolution: "open@npm:8.4.2"
@@ -8193,30 +8164,6 @@ __metadata:
81938164
languageName: node
81948165
linkType: hard
81958166

8196-
"patch-package@npm:^6.4.7":
8197-
version: 6.5.1
8198-
resolution: "patch-package@npm:6.5.1"
8199-
dependencies:
8200-
"@yarnpkg/lockfile": ^1.1.0
8201-
chalk: ^4.1.2
8202-
cross-spawn: ^6.0.5
8203-
find-yarn-workspace-root: ^2.0.0
8204-
fs-extra: ^9.0.0
8205-
is-ci: ^2.0.0
8206-
klaw-sync: ^6.0.0
8207-
minimist: ^1.2.6
8208-
open: ^7.4.2
8209-
rimraf: ^2.6.3
8210-
semver: ^5.6.0
8211-
slash: ^2.0.0
8212-
tmp: ^0.0.33
8213-
yaml: ^1.10.2
8214-
bin:
8215-
patch-package: index.js
8216-
checksum: 8530ffa30f11136b527c6eddf6da48fa12856ee510a47edb1f9cdf8a025636adb82968f5fae778b5e04ce8c87915ebdf5911422b54add59a5a42e372a8f30eb2
8217-
languageName: node
8218-
linkType: hard
8219-
82208167
"path-browserify@npm:^1.0.0":
82218168
version: 1.0.1
82228169
resolution: "path-browserify@npm:1.0.1"
@@ -8992,17 +8939,6 @@ __metadata:
89928939
languageName: node
89938940
linkType: hard
89948941

8995-
"rimraf@npm:^2.6.3":
8996-
version: 2.7.1
8997-
resolution: "rimraf@npm:2.7.1"
8998-
dependencies:
8999-
glob: ^7.1.3
9000-
bin:
9001-
rimraf: ./bin.js
9002-
checksum: cdc7f6eacb17927f2a075117a823e1c5951792c6498ebcce81ca8203454a811d4cf8900314154d3259bb8f0b42ab17f67396a8694a54cae3283326e57ad250cd
9003-
languageName: node
9004-
linkType: hard
9005-
90068942
"rimraf@npm:^3.0.0, rimraf@npm:^3.0.2":
90078943
version: 3.0.2
90088944
resolution: "rimraf@npm:3.0.2"
@@ -9325,13 +9261,6 @@ __metadata:
93259261
languageName: node
93269262
linkType: hard
93279263

9328-
"slash@npm:^2.0.0":
9329-
version: 2.0.0
9330-
resolution: "slash@npm:2.0.0"
9331-
checksum: 512d4350735375bd11647233cb0e2f93beca6f53441015eea241fe784d8068281c3987fbaa93e7ef1c38df68d9c60013045c92837423c69115297d6169aa85e6
9332-
languageName: node
9333-
linkType: hard
9334-
93359264
"smart-buffer@npm:^4.2.0":
93369265
version: 4.2.0
93379266
resolution: "smart-buffer@npm:4.2.0"
@@ -10897,7 +10826,7 @@ __metadata:
1089710826
languageName: node
1089810827
linkType: hard
1089910828

10900-
"yaml@npm:^1.10.0, yaml@npm:^1.10.2":
10829+
"yaml@npm:^1.10.0":
1090110830
version: 1.10.2
1090210831
resolution: "yaml@npm:1.10.2"
1090310832
checksum: ce4ada136e8a78a0b08dc10b4b900936912d15de59905b2bf415b4d33c63df1d555d23acb2a41b23cf9fb5da41c256441afca3d6509de7247daa062fd2c5ea5f

0 commit comments

Comments
 (0)