Skip to content

Commit 1c61b84

Browse files
Port to jupyterlab 4 (#5)
1 parent 31e83c4 commit 1c61b84

File tree

9 files changed

+5897
-6464
lines changed

9 files changed

+5897
-6464
lines changed

.github/workflows/build.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
- name: Install node
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v3
1717
with:
18-
node-version: '14.x'
18+
node-version: '18.x'
1919
- name: Install Python
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
22-
python-version: '3.9'
22+
python-version: '3.11'
2323
architecture: 'x64'
2424
- name: Install dependencies
25-
run: python -m pip install jupyterlab
25+
run: python -m pip install jupyterlab==4.0.0a37
2626
- name: Build the extension
2727
run: |
2828
jlpm

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ dmypy.json
110110

111111
# OSX files
112112
.DS_Store
113+
.yarn

.yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [2.0.0](https://github.com/deshaw/jupyterlab-limit-output/compare/v1.0.1...v2.0.0) (UNRELEASED)
2+
3+
### Changed
4+
5+
- **Breaking**: Ported to JupyterLab 4.x.
6+
- Updated the `build` github workflow to use the latest versions of the github
7+
actions; the latest version of python (3.11); and latest version (18.x)
8+
version of node.
9+
110
## [1.0.1](https://github.com/deshaw/jupyterlab-limit-output/compare/v1.0.0...v1.0.1) (2023-03-27)
211

312
### Fixed

package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-limit-output",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"description": "Limit output text mime-renders",
55
"keywords": [
66
"jupyter",
@@ -54,39 +54,39 @@
5454
"tslint": "tslint --fix -c tslint.json --project tsconfig.json '**/*{.ts,.tsx}'",
5555
"watch": "run-p watch:src watch:labextension",
5656
"watch:labextension": "jupyter-labextension watch .",
57-
"watch:src": "tsc -w"
57+
"watch:src": "tsc -w --sourceMap"
5858
},
5959
"dependencies": {
60-
"@jupyterlab/application": "^3.0.0",
61-
"@jupyterlab/apputils": "^3.0.0",
62-
"@jupyterlab/settingregistry": "^3.0.0",
63-
"@jupyterlab/rendermime": "^3.0.0"
60+
"@jupyterlab/application": "^4.0.0-alpha.22",
61+
"@jupyterlab/apputils": "^4.0.0-alpha.22",
62+
"@jupyterlab/rendermime": "^4.0.0-alpha.22",
63+
"@jupyterlab/settingregistry": "^4.0.0-alpha.22"
6464
},
6565
"husky": {
6666
"hooks": {
6767
"pre-commit": "npm run lint && npm run test"
6868
}
6969
},
7070
"devDependencies": {
71-
"@jupyterlab/builder": "^3.1.12",
72-
"@types/chai": "^4.2.22",
73-
"@types/mocha": "^9.0.0",
74-
"@typescript-eslint/eslint-plugin": "^4.32.0",
75-
"@typescript-eslint/parser": "^4.32.0",
76-
"chai": "^4.3.4",
71+
"@jupyterlab/builder": "^4.0.0-alpha.22",
72+
"@types/chai": "^4.3.4",
73+
"@types/mocha": "^10.0.1",
74+
"@typescript-eslint/eslint-plugin": "^5.55.0",
75+
"@typescript-eslint/parser": "^5.55.0",
76+
"chai": "^4.3.7",
7777
"eslint": "^7.32.0",
78-
"eslint-config-prettier": "^8.3.0",
79-
"eslint-plugin-prettier": "^4.0.0",
80-
"husky": "^4.2.3",
81-
"mocha": "^9.1.2",
78+
"eslint-config-prettier": "^8.7.0",
79+
"eslint-plugin-prettier": "^4.2.1",
80+
"husky": "^8.0.3",
81+
"mocha": "^10.2.0",
8282
"npm-run-all": "^4.1.5",
83-
"prettier": "^2.4.1",
84-
"rimraf": "^3.0.2",
85-
"ts-mocha": "^8.0.0",
83+
"prettier": "^2.8.7",
84+
"rimraf": "^4.4.1",
85+
"ts-mocha": "^10.0.0",
8686
"tslint": "^6.1.3",
8787
"tslint-config-prettier": "^1.18.0",
8888
"tslint-plugin-prettier": "^2.3.0",
89-
"typescript": "~4.1.3"
89+
"typescript": "~5.0.2"
9090
},
9191
"styleModule": "style/index.js"
9292
}

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["jupyter_packaging~=0.9,<2", "jupyterlab~=3.0"]
2+
requires = ["jupyter_packaging~=0.10,<2", "jupyterlab==4.0.0a37"]
33
build-backend = "jupyter_packaging.build_api"
44

55
[tool.jupyter-packaging.builder]

setup.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
long_description=long_description,
4242
long_description_content_type="text/markdown",
4343
packages=setuptools.find_packages(),
44-
install_requires=["jupyter_server>=1.6,<2"],
44+
install_requires=["jupyter_server>=2.0.1,<3"],
4545
zip_safe=False,
4646
include_package_data=True,
47-
python_requires=">=3.6",
47+
python_requires=">=3.7",
4848
platforms="Linux, Mac OS X, Windows",
49-
keywords=["Jupyter", "JupyterLab", "JupyterLab3"],
49+
keywords=["Jupyter", "JupyterLab", "JupyterLab4"],
5050
classifiers=[
5151
"License :: OSI Approved :: BSD License",
5252
"Programming Language :: Python",
@@ -55,12 +55,16 @@
5555
"Programming Language :: Python :: 3.8",
5656
"Programming Language :: Python :: 3.9",
5757
"Framework :: Jupyter",
58+
"Framework :: Jupyter :: JupyterLab",
59+
"Framework :: Jupyter :: JupyterLab :: 4",
60+
"Framework :: Jupyter :: JupyterLab :: Extensions",
61+
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
5862
],
5963
)
6064

6165

6266
post_develop = npm_builder(
63-
build_cmd="install:extension", source_dir="src", build_dir=lab_path
67+
build_cmd="install:extension", source_dir="src", build_dir=lab_path, npm="jlpm"
6468
)
6569
setup_args["cmdclass"] = wrap_installers(
6670
post_develop=post_develop, ensured_targets=ensured_targets

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"rootDir": "src",
1818
"strict": true,
1919
"strictNullChecks": false,
20-
"target": "es2017",
20+
"target": "es2018",
2121
"types": []
2222
},
2323
"include": ["src/*"]

0 commit comments

Comments
 (0)