Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
run: |
set -eux
cp ./jupytergis/dist/jupytergis*.whl ./jupytergis_core/dist/jupytergis*.whl ./jupytergis_lab/dist/jupytergis*.whl ./jupytergis_qgis/dist/jupytergis*.whl .
python -m pip install jupytergis*.whl "jupyter-collaboration>=3,<4" "jupyterlab==4.4.2"
python -m pip install jupytergis*.whl "jupyter-collaboration>=4" "jupyterlab==4.4.2"

- name: Install
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- sidecar
- pip:
- yjs-widgets>=0.4,<0.5
- my-jupyter-shared-drive<0.2.0
- my-jupyter-shared-drive>=0.2.0
- ../python/jupytergis_lab
- ../python/jupytergis_core
- ../python/jupytergis_lite
2 changes: 1 addition & 1 deletion lite/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- sidecar
- pip:
- yjs-widgets>=0.4,<0.5
- my-jupyter-shared-drive<0.2.0
- my-jupyter-shared-drive>=0.2.0
- ../jupytergis_lab-0.0.1-py3-none-any.whl
- ../jupytergis_core-0.0.1-py3-none-any.whl
- ../jupytergis_lite-0.0.1-py3-none-any.whl
2 changes: 1 addition & 1 deletion packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": ">=0.2.6 <3.0.0",
"@jupyter/collaboration": "^3.1.0",
"@jupyter/collaboration": "^4.0.0",
"@jupyter/react-components": "^0.16.6",
"@jupyter/ydoc": "^2.0.0 || ^3.0.0",
"@jupytergis/schema": "^0.9.2",
Expand Down
8 changes: 4 additions & 4 deletions python/jupytergis/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ dependencies = [
"jupytergis_core==0.9.2",
"jupytergis_lab==0.9.2",
"jupytergis_qgis==0.9.2",
"jupyter-collaboration>=3,<4",
"jupyter-docprovider>=1,<2",
"jupyter-server-ydoc>=1,<2",
"jupyter-collaboration-ui>=1,<2",
"jupyter-collaboration>=4",
"jupyter-docprovider>=2",
"jupyter-server-ydoc>=2",
"jupyter-collaboration-ui>=2",
"jupyterlab>=4.3,<5",
]
dynamic = ["version"]
Expand Down
2 changes: 1 addition & 1 deletion python/jupytergis_core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"watch:labextension": "jupyter labextension watch ."
},
"dependencies": {
"@jupyter/collaborative-drive": "^3.0.0",
"@jupyter/collaborative-drive": "^4.0.0",
"@jupytergis/base": "^0.9.2",
"@jupytergis/schema": "^0.9.2",
"@jupyterlab/application": "^4.3.0",
Expand Down
4 changes: 2 additions & 2 deletions python/jupytergis_core/src/factory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
import { ICollaborativeContentProvider } from '@jupyter/collaborative-drive';
import {
JupyterGISPanel,
JupyterGISDocumentWidget,
Expand Down Expand Up @@ -29,7 +29,7 @@ interface IOptions extends DocumentRegistry.IWidgetFactoryOptions {
rendermime?: IRenderMimeRegistry;
consoleTracker?: IConsoleTracker;
backendCheck?: () => boolean;
drive?: ICollaborativeDrive | null;
drive?: ICollaborativeContentProvider | null;
formSchemaRegistry: IJGISFormSchemaRegistry;
state: IStateDB;
annotationModel: IAnnotationModel;
Expand Down
10 changes: 4 additions & 6 deletions python/jupytergis_core/src/jgisplugin/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICollaborativeDrive,
SharedDocumentFactory,
} from '@jupyter/collaborative-drive';
import { ICollaborativeContentProvider } from '@jupyter/collaborative-drive';
import { CommandIDs, logoIcon, logoMiniIcon } from '@jupytergis/base';
import {
IAnnotationModel,
Expand Down Expand Up @@ -32,6 +29,7 @@ import { MimeDocumentFactory } from '@jupyterlab/docregistry';
import { IFileBrowserFactory } from '@jupyterlab/filebrowser';
import { ILauncher } from '@jupyterlab/launcher';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { SharedDocumentFactory } from '@jupyterlab/services';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { IStateDB } from '@jupyterlab/statedb';

Expand Down Expand Up @@ -60,7 +58,7 @@ const activate = async (
state: IStateDB,
launcher: ILauncher | null,
palette: ICommandPalette | null,
drive: ICollaborativeDrive | null,
drive: ICollaborativeContentProvider | null,
): Promise<void> => {
formSchemaRegistry && state;
if (PageConfig.getOption('jgis_expose_maps')) {
Expand Down Expand Up @@ -273,7 +271,7 @@ const jGISPlugin: JupyterFrontEndPlugin<void> = {
IJGISFormSchemaRegistryToken,
IStateDB,
],
optional: [ILauncher, ICommandPalette, ICollaborativeDrive],
optional: [ILauncher, ICommandPalette, ICollaborativeContentProvider],
autoStart: true,
activate,
};
Expand Down
2 changes: 1 addition & 1 deletion python/jupytergis_lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"watch:labextension": "jupyter labextension watch ."
},
"dependencies": {
"@jupyter/collaborative-drive": "^3.0.0",
"@jupyter/collaborative-drive": "^4.0.0",
"@jupytergis/base": "^0.9.2",
"@jupytergis/schema": "^0.9.2",
"@jupyterlab/application": "^4.3.0",
Expand Down
6 changes: 3 additions & 3 deletions python/jupytergis_lab/src/notebookrenderer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
import { ICollaborativeContentProvider } from '@jupyter/collaborative-drive';
import {
JupyterGISOutputWidget,
JupyterGISPanel,
Expand Down Expand Up @@ -140,7 +140,7 @@ export const notebookRendererPlugin: JupyterFrontEndPlugin<void> = {
IJGISExternalCommandRegistryToken,
IJupyterGISDocTracker,
IJupyterYWidgetManager,
ICollaborativeDrive,
ICollaborativeContentProvider,
IStateDB,
IAnnotationToken,
ISettingRegistry,
Expand All @@ -151,7 +151,7 @@ export const notebookRendererPlugin: JupyterFrontEndPlugin<void> = {
externalCommandRegistry?: IJGISExternalCommandRegistry,
jgisTracker?: JupyterGISTracker,
yWidgetManager?: IJupyterYWidgetManager,
drive?: ICollaborativeDrive,
drive?: ICollaborativeContentProvider,
state?: IStateDB,
annotationModel?: IAnnotationModel,
settingRegistry?: ISettingRegistry,
Expand Down
2 changes: 1 addition & 1 deletion python/jupytergis_lite/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = [
dependencies = [
"jupytergis_core==0.9.2",
"jupytergis_lab==0.9.2",
"my-jupyter-shared-drive<0.2.0",
"my-jupyter-shared-drive>=0.2.0",
]
dynamic = ["version"]
license = {file = "LICENSE"}
Expand Down
2 changes: 1 addition & 1 deletion python/jupytergis_qgis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"watch:labextension": "jupyter labextension watch ."
},
"dependencies": {
"@jupyter/collaborative-drive": "^3.0.0",
"@jupyter/collaborative-drive": "^4.0.0",
"@jupytergis/base": "^0.9.2",
"@jupytergis/jupytergis-core": "^0.9.2",
"@jupytergis/schema": "^0.9.2",
Expand Down
18 changes: 9 additions & 9 deletions python/jupytergis_qgis/src/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICollaborativeDrive,
SharedDocumentFactory,
} from '@jupyter/collaborative-drive';
import { ICollaborativeContentProvider } from '@jupyter/collaborative-drive';
import {
JupyterGISDocumentWidget,
logoMiniIcon,
Expand Down Expand Up @@ -37,6 +34,7 @@ import { IEditorServices } from '@jupyterlab/codeeditor';
import { ConsolePanel, IConsoleTracker } from '@jupyterlab/console';
import { PathExt } from '@jupyterlab/coreutils';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { SharedDocumentFactory } from '@jupyterlab/services';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { IStateDB } from '@jupyterlab/statedb';
import { Widget } from '@lumino/widgets';
Expand Down Expand Up @@ -75,7 +73,7 @@ const activate = async (
app: JupyterFrontEnd,
tracker: WidgetTracker<IJupyterGISWidget>,
themeManager: IThemeManager,
drive: ICollaborativeDrive,
drive: ICollaborativeContentProvider,
externalCommandRegistry: IJGISExternalCommandRegistry,
contentFactory: ConsolePanel.IContentFactory,
editorServices: IEditorServices,
Expand Down Expand Up @@ -264,9 +262,11 @@ const activate = async (

// Check if the file exists
let fileExist = true;
await drive.get(absolutePath, { content: false }).catch(() => {
fileExist = false;
});
await app.serviceManager.contents
.get(absolutePath, { content: false })
.catch(() => {
fileExist = false;
});
if (fileExist) {
const overwrite = await showDialog({
title: 'Export the project to QGZ file',
Expand Down Expand Up @@ -324,7 +324,7 @@ export const qgisplugin: JupyterFrontEndPlugin<void> = {
requires: [
IJupyterGISDocTracker,
IThemeManager,
ICollaborativeDrive,
ICollaborativeContentProvider,
IJGISExternalCommandRegistryToken,
ConsolePanel.IContentFactory,
IEditorServices,
Expand Down
8 changes: 4 additions & 4 deletions requirements-build.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# minimum needed to build jupytergis.
datamodel-code-generator>=0.23.0
hatchling>=1.5.0,<2
jupyter-collaboration>=3,<4
jupyter-collaboration-ui>=1,<2
jupyter-docprovider>=1,<2
jupyter-server-ydoc>=1,<2
jupyter-collaboration>=4
jupyter-collaboration-ui>=2
jupyter-docprovider>=2
jupyter-server-ydoc>=2
jupyterlab>=4.3,<5
mercantile>=1.2
pillow>=10
Expand Down
Loading
Loading