Skip to content

Commit c90dac3

Browse files
committed
Merge branch 'jupyterlab3' of ssh://github.com/martinRenou/jupyterlab-lsp into martinRenou-jupyterlab3
2 parents a86b20b + 73c4ee3 commit c90dac3

File tree

26 files changed

+2106
-226
lines changed

26 files changed

+2106
-226
lines changed

.github/workflows/job.test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
# TODO: maybe turn back on
3636
fail-fast: false
3737
matrix:
38-
os: [ubuntu, macos, windows]
3938
python: [3.6, 3.7, 3.8]
40-
lab: ['>=2.2.0,<3.0.0a0']
39+
os: [ubuntu-16.04, macos-10.14, vs2017-win2016]
40+
lab: ['>=3.0.0rc8,<4.0.0a0']
4141
include:
4242
# if using 3.6, use an old node
4343
- python: 3.6
@@ -111,9 +111,6 @@ jobs:
111111
- name: Build python distributions
112112
run: python setup.py sdist bdist_wheel
113113

114-
- name: Build npm bundles
115-
run: jlpm lerna run bundle
116-
117114
- name: Install python wheel
118115
run: cd dist && python -m pip install jupyter_lsp-${{ env.PY_JLSP_VERSION }}-py3-none-any.whl --no-deps
119116

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,6 @@ coverage/
116116
_*.d.ts
117117
_build
118118
.virtual_documents/
119+
120+
# Built labextensions
121+
py_src/jupyter_lsp/labextensions/

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.mypy_cache
33
.pytest_cache
44
.yarn-packages
5+
**/_*.d.ts
56
**/.ipynb_checkpoints
67
**/*.egg-info
78
**/build

CONTRIBUTING.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ You can contribute to the project through:
2929

3030
Development requires, at a minimum:
3131

32-
- `nodejs >=10.12,<15`
32+
- `nodejs >=12,<15`
3333
- `python >=3.6,<3.9.0a0`
3434
- Python 3.6 and 3.8 are also tested on CI
3535
- Python 3.6 has issues on Windows
36-
- `jupyterlab >=2.2.0,<3.0.0a0`
36+
- `jupyterlab >=3.0.0rc10,<4.0.0a0`
3737

3838
It is recommended to use a virtual environment (e.g. `virtualenv` or `conda env`)
3939
for development.
@@ -67,7 +67,7 @@ This performs all of the basic setup steps, and is used for the binder demo.
6767
Install `jupyter-lsp` from source in your virtual environment:
6868

6969
```bash
70-
python -m pip install -e .
70+
python -m pip install -e . --ignore-installed --no-deps -vv
7171
```
7272

7373
Enable the server extension:
@@ -80,9 +80,8 @@ Install `npm` dependencies, build TypeScript packages, and link
8080
to JupyterLab for development:
8181

8282
```bash
83-
jlpm
84-
jlpm build
85-
jlpm lab:link
83+
jlpm bootstrap
84+
pip install .
8685
```
8786

8887
### Frontend Development

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include LICENSE README.md
22
recursive-include py_src *.json *.R
3+
recursive-include py_src/jupyter_lsp/labextensions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ Use context menu on rows in the panel to filter out diagnostics or copy their me
7777

7878
You will need to have all of the following installed:
7979

80-
- JupyterLab >=2.2.0,<3.0.0a0
80+
- JupyterLab >=3.0.0,<4.0.0a0
8181
- Python 3.6+
82-
- nodejs 10.12+
82+
- nodejs 12+
8383

8484
## Installation
8585

@@ -97,9 +97,9 @@ Use of a python `virtualenv` or a conda env is also recommended.
9797
1. install JupyterLab and the server extension
9898

9999
```bash
100-
conda install -c conda-forge 'jupyterlab>=2.2,<3.0.0a0' jupyter-lsp
100+
conda install -c conda-forge 'jupyterlab>=3.0.0-rc.10,<4.0.0a0' jupyter-lsp
101101
# or
102-
pip install 'jupyterlab>=2.2,<3.0.0a0' jupyter-lsp
102+
pip install 'jupyterlab>=3.0.0-rc.10,<4.0.0a0' jupyter-lsp
103103
```
104104

105105
> Note: With conda, you could take advantage of the bundles: `jupyter-lsp-python`

binder/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ channels:
77
dependencies:
88
# runtime dependencies
99
- python >=3.6,<3.9.0a0
10-
- jupyterlab >=2.2.0,<3.0.0a0
10+
- jupyterlab >=3.0.0,<4.0.0a0
1111
- notebook >=4.3.1
1212
# build dependencies
1313
- nodejs >=10.12,<15

binder/postBuild

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
#!/usr/bin/env bash
22
set -eux
33

4-
# do a dev install of the server side
5-
python -m pip install -e . --ignore-installed --no-deps -vv
6-
jupyter serverextension enable --sys-prefix --py jupyter_lsp
7-
8-
# should have no extensions
9-
jupyter labextension list
10-
11-
# do a dev build of the client side
4+
# Build labextensions
125
jlpm bootstrap
136

14-
# link all pieces to lab (no build)
15-
jlpm lab:link && jupyter labextension list
16-
17-
# list extensions before build
18-
jupyter labextension list
19-
20-
# actually build
21-
jupyter lab build --debug --dev-build=False --minimize=True
7+
# Do a dev install of the server side
8+
python -m pip install -e . --ignore-installed --no-deps -vv
9+
jupyter serverextension enable --sys-prefix --py jupyter_lsp
2210

23-
# list extensions again
11+
# List extensions
2412
jupyter labextension list

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@
3838
"private": true,
3939
"scripts": {
4040
"bootstrap": "jlpm --no-optional --prefer-offline && lerna bootstrap && jlpm lint && jlpm clean && jlpm build",
41-
"build": "jlpm build:schema && jlpm build:completion-theme && jlpm build:theme-material && jlpm build:theme-vscode && jlpm build:jump && jlpm build:meta && jlpm build:ws",
41+
"build": "jlpm build:schema && jlpm build:completion-theme && jlpm build:theme-material && jlpm build:theme-vscode && jlpm build:meta && jlpm build:ws && jlpm build:jupyterlab-lsp",
4242
"build:schema": "lerna run build:schema --stream",
4343
"build:meta": "lerna run build --stream --scope @krassowski/jupyterlab-lsp-metapackage",
4444
"build:completion-theme": "lerna run build --stream --scope @krassowski/completion-theme",
4545
"build:theme-vscode": "lerna run build --stream --scope @krassowski/theme-vscode",
4646
"build:theme-material": "lerna run build --stream --scope @krassowski/theme-material",
47+
"build:jupyterlab-lsp": "lerna run build --stream --scope @krassowski/jupyterlab-lsp",
4748
"build:ws": "lerna run build --stream --scope lsp-ws-connection",
4849
"build:jump": "lerna run build --stream --scope @krassowski/code-jumpers",
4950
"watch": "lerna run --parallel watch",
5051
"bundle": "lerna run --parallel bundle",
5152
"clean": "lerna run --parallel clean",
52-
"lab:link": "lerna run lab:link",
5353
"lint:check": "jlpm prettier:check && jlpm eslint:check",
5454
"lint": "jlpm prettier && jlpm eslint",
5555
"prettier:check": "prettier --check \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md,.yml}\"",

packages/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
],
1818
ignorePatterns: [
1919
'**/node_modules/**/*',
20+
'packages/jupyterlab-lsp/labextension/**/*',
2021
'**/lib/**/*',
2122
'**/_*.ts',
2223
'**/_*.d.ts',

0 commit comments

Comments
 (0)