Skip to content

Commit 3704840

Browse files
authored
relax constraints to facilitate jupyterlab 4.0 conda build (#200)
1 parent 9e94b21 commit 3704840

File tree

3 files changed

+1060
-1370
lines changed

3 files changed

+1060
-1370
lines changed

conda.recipe/meta.yaml

+16-5
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,27 @@ package:
1010
version: {{ version }}
1111

1212
source:
13-
url: ../dist/{{ name }}-{{ version }}-py3-none-any.whl
13+
path: ..
1414

1515
build:
1616
noarch: python
17-
script: {{ PYTHON }} -m pip install -vv {{ name }}-{{ version }}-py3-none-any.whl
17+
script: {{ PYTHON }} -m pip install --no-deps --ignore-installed .
18+
script_env:
19+
- JUPYTERLAB_TEST_VERSION
1820

1921
requirements:
2022
build:
2123
- jupyter-packaging
22-
- jupyterlab
24+
- jupyterlab 4.0.*
2325
- notebook
2426
- python
25-
- setuptools
27+
- pip
28+
- setuptools >=40.8.0
29+
- wheel
2630
- nodejs >=18.0
27-
- hatch
31+
- hatchling >=1.5.0
32+
- hatch-jupyter-builder>=0.8.2
33+
- hatch-nodejs-version
2834
run:
2935
- python
3036
- bokeh 3.*
@@ -33,8 +39,13 @@ requirements:
3339
- jupyterlab 4.*
3440

3541
test:
42+
requires:
43+
- jupyterlab
3644
imports:
3745
- jupyter_bokeh
46+
commands:
47+
- jupyter labextension list 2>&1
48+
- jupyter labextension list 2>&1 | grep -q 'jupyter.bokeh.*enabled.*OK'
3849

3950
about:
4051
home: {{ pkgjson['homepage'] }}

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,27 @@
4848
},
4949
"dependencies": {
5050
"@jupyter-widgets/base": "^2 || ^3 || ^4 || ^5 || ^6",
51-
"@jupyterlab/application": "^4.0.3",
52-
"@jupyterlab/apputils": "^4.1.3",
53-
"@jupyterlab/docregistry": "^4.0.3",
54-
"@jupyterlab/notebook": "^4.0.3",
55-
"@jupyterlab/services": "^7.1.1",
56-
"@jupyterlab/settingregistry": "^4.1.1",
57-
"@jupyterlab/ui-components": "^4.0.3",
58-
"@lumino/disposable": "^2.1.1",
51+
"@jupyterlab/application": "^4",
52+
"@jupyterlab/apputils": "^4",
53+
"@jupyterlab/docregistry": "^4",
54+
"@jupyterlab/notebook": "^4",
55+
"@jupyterlab/services": "^7",
56+
"@jupyterlab/settingregistry": "^4",
57+
"@jupyterlab/ui-components": "^4",
58+
"@lumino/disposable": "^2",
5959
"css-loader": "^5.1.3",
6060
"style-loader": "^2.0.0"
6161
},
6262
"resolutions": {
63-
"@lumino/widgets": "^2.1.1",
63+
"@lumino/widgets": "^2",
6464
"react": "^18.2.0",
6565
"react-dom": "^18.2.0"
6666
},
6767
"peerDependencies": {
6868
"@jupyter-widgets/jupyterlab-manager": "^5.0.4"
6969
},
7070
"devDependencies": {
71-
"@jupyterlab/builder": "^4.0.2",
71+
"@jupyterlab/builder": "^4",
7272
"@typescript-eslint/eslint-plugin": "^7.0.1",
7373
"@typescript-eslint/parser": "^7.0.1",
7474
"eslint": "^8.36.0",

0 commit comments

Comments
 (0)