Skip to content

Commit f9fdf95

Browse files
committed
Support only jupyter-collaboration 4.x
Switch from ICollaborativeDrive to ICollaborativeContentProvider at advice of Michał Krassowski: <geojupyter#848 (comment)>
1 parent fdcd76b commit f9fdf95

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
run: |
176176
set -eux
177177
cp ./jupytergis/dist/jupytergis*.whl ./jupytergis_core/dist/jupytergis*.whl ./jupytergis_lab/dist/jupytergis*.whl ./jupytergis_qgis/dist/jupytergis*.whl .
178-
python -m pip install jupytergis*.whl "jupyter-collaboration>=3" "jupyterlab==4.4.2"
178+
python -m pip install jupytergis*.whl "jupyter-collaboration>=4" "jupyterlab==4.4.2"
179179
180180
- name: Install
181181
shell: bash -l {0}

python/jupytergis/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ dependencies = [
2222
"jupytergis_core==0.9.1",
2323
"jupytergis_lab==0.9.1",
2424
"jupytergis_qgis==0.9.1",
25-
"jupyter-collaboration>=3",
25+
"jupyter-collaboration>=4",
2626
"jupyter-docprovider>=1,<2",
2727
"jupyter-server-ydoc>=1,<2",
28-
"jupyter-collaboration-ui>=1",
28+
"jupyter-collaboration-ui>=2",
2929
"jupyterlab>=4.3,<5",
3030
]
3131
dynamic = ["version"]

python/jupytergis_core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"watch:labextension": "jupyter labextension watch ."
5454
},
5555
"dependencies": {
56-
"@jupyter/collaborative-drive": "^3.0.0",
56+
"@jupyter/collaborative-drive": "^4.0.0",
5757
"@jupytergis/base": "^0.9.1",
5858
"@jupytergis/schema": "^0.9.1",
5959
"@jupyterlab/application": "^4.3.0",

python/jupytergis_core/src/factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
1+
import { ICollaborativeContentProvider } from '@jupyter/collaborative-drive';
22
import {
33
JupyterGISPanel,
44
JupyterGISDocumentWidget,
@@ -29,7 +29,7 @@ interface IOptions extends DocumentRegistry.IWidgetFactoryOptions {
2929
rendermime?: IRenderMimeRegistry;
3030
consoleTracker?: IConsoleTracker;
3131
backendCheck?: () => boolean;
32-
drive?: ICollaborativeDrive | null;
32+
drive?: ICollaborativeContentProvider | null;
3333
formSchemaRegistry: IJGISFormSchemaRegistry;
3434
state: IStateDB;
3535
annotationModel: IAnnotationModel;

python/jupytergis_core/src/jgisplugin/plugins.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
ICollaborativeDrive,
2+
ICollaborativeContentProvider,
33
SharedDocumentFactory,
44
} from '@jupyter/collaborative-drive';
55
import { CommandIDs, logoIcon, logoMiniIcon } from '@jupytergis/base';
@@ -60,7 +60,7 @@ const activate = async (
6060
state: IStateDB,
6161
launcher: ILauncher | null,
6262
palette: ICommandPalette | null,
63-
drive: ICollaborativeDrive | null,
63+
drive: ICollaborativeContentProvider | null,
6464
): Promise<void> => {
6565
formSchemaRegistry && state;
6666
if (PageConfig.getOption('jgis_expose_maps')) {
@@ -273,7 +273,7 @@ const jGISPlugin: JupyterFrontEndPlugin<void> = {
273273
IJGISFormSchemaRegistryToken,
274274
IStateDB,
275275
],
276-
optional: [ILauncher, ICommandPalette, ICollaborativeDrive],
276+
optional: [ILauncher, ICommandPalette, ICollaborativeContentProvider],
277277
autoStart: true,
278278
activate,
279279
};

python/jupytergis_lab/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"watch:labextension": "jupyter labextension watch ."
5353
},
5454
"dependencies": {
55-
"@jupyter/collaborative-drive": "^3.0.0",
55+
"@jupyter/collaborative-drive": "^4.0.0",
5656
"@jupytergis/base": "^0.9.1",
5757
"@jupytergis/schema": "^0.9.1",
5858
"@jupyterlab/application": "^4.3.0",

python/jupytergis_lab/src/notebookrenderer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
1+
import { ICollaborativeContentProvider } from '@jupyter/collaborative-drive';
22
import {
33
JupyterGISOutputWidget,
44
JupyterGISPanel,
@@ -139,7 +139,7 @@ export const notebookRendererPlugin: JupyterFrontEndPlugin<void> = {
139139
IJGISExternalCommandRegistryToken,
140140
IJupyterGISDocTracker,
141141
IJupyterYWidgetManager,
142-
ICollaborativeDrive,
142+
ICollaborativeContentProvider,
143143
IStateDB,
144144
IJGISFormSchemaRegistryToken,
145145
IAnnotationToken,
@@ -150,7 +150,7 @@ export const notebookRendererPlugin: JupyterFrontEndPlugin<void> = {
150150
externalCommandRegistry?: IJGISExternalCommandRegistry,
151151
jgisTracker?: JupyterGISTracker,
152152
yWidgetManager?: IJupyterYWidgetManager,
153-
drive?: ICollaborativeDrive,
153+
drive?: ICollaborativeContentProvider,
154154
formSchemaRegistry?: IJGISFormSchemaRegistry,
155155
state?: IStateDB,
156156
annotationModel?: IAnnotationModel,

python/jupytergis_qgis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"watch:labextension": "jupyter labextension watch ."
5454
},
5555
"dependencies": {
56-
"@jupyter/collaborative-drive": "^3.0.0",
56+
"@jupyter/collaborative-drive": "^4.0.0",
5757
"@jupytergis/base": "^0.9.1",
5858
"@jupytergis/jupytergis-core": "^0.9.1",
5959
"@jupytergis/schema": "^0.9.1",

python/jupytergis_qgis/src/plugins.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
ICollaborativeDrive,
2+
ICollaborativeContentProvider,
33
SharedDocumentFactory,
44
} from '@jupyter/collaborative-drive';
55
import {
@@ -75,7 +75,7 @@ const activate = async (
7575
app: JupyterFrontEnd,
7676
tracker: WidgetTracker<IJupyterGISWidget>,
7777
themeManager: IThemeManager,
78-
drive: ICollaborativeDrive,
78+
drive: ICollaborativeContentProvider,
7979
externalCommandRegistry: IJGISExternalCommandRegistry,
8080
contentFactory: ConsolePanel.IContentFactory,
8181
editorServices: IEditorServices,
@@ -324,7 +324,7 @@ export const qgisplugin: JupyterFrontEndPlugin<void> = {
324324
requires: [
325325
IJupyterGISDocTracker,
326326
IThemeManager,
327-
ICollaborativeDrive,
327+
ICollaborativeContentProvider,
328328
IJGISExternalCommandRegistryToken,
329329
ConsolePanel.IContentFactory,
330330
IEditorServices,

requirements-build.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# minimum needed to build jupytergis.
22
datamodel-code-generator>=0.23.0
33
hatchling>=1.5.0,<2
4-
jupyter-collaboration>=3
5-
jupyter-collaboration-ui>=1
4+
jupyter-collaboration>=4
5+
jupyter-collaboration-ui>=2
66
jupyter-docprovider>=1,<2
77
jupyter-server-ydoc>=1,<2
88
jupyterlab>=4.3,<5

0 commit comments

Comments
 (0)