Skip to content

Commit 3aa8387

Browse files
committed
Depend on pycrdt instead of pycrdt_websocket
1 parent dc91692 commit 3aa8387

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

jupyter_ydoc/ybasedoc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
from abc import ABC, abstractmethod
55
from typing import Any, Callable, Dict, Optional
66

7-
from pycrdt import Doc, Map, Subscription, UndoManager
8-
from pycrdt_websocket.awareness import Awareness
7+
from pycrdt import Awareness, Doc, Map, Subscription, UndoManager
98

109

1110
class YBaseDoc(ABC):

jupyter_ydoc/yblob.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
from functools import partial
55
from typing import Any, Callable, Optional
66

7-
from pycrdt import Doc, Map
8-
from pycrdt_websocket.awareness import Awareness
7+
from pycrdt import Awareness, Doc, Map
98

109
from .ybasedoc import YBaseDoc
1110

jupyter_ydoc/ynotebook.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
from typing import Any, Callable, Dict, Optional
77
from uuid import uuid4
88

9-
from pycrdt import Array, Doc, Map, Text
10-
from pycrdt_websocket.awareness import Awareness
9+
from pycrdt import Array, Awareness, Doc, Map, Text
1110

1211
from .utils import cast_all
1312
from .ybasedoc import YBaseDoc

jupyter_ydoc/yunicode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
from functools import partial
55
from typing import Any, Callable, Optional
66

7-
from pycrdt import Doc, Text
8-
from pycrdt_websocket.awareness import Awareness
7+
from pycrdt import Awareness, Doc, Text
98

109
from .ybasedoc import YBaseDoc
1110

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ requires-python = ">=3.8"
1313
keywords = ["jupyter", "pycrdt", "yjs"]
1414
dependencies = [
1515
"importlib_metadata >=3.6; python_version<'3.10'",
16-
"pycrdt >=0.9.0,<0.10.0",
16+
"pycrdt >=0.9.16,<0.10.0",
1717
]
1818

1919
[[project.authors]]
@@ -28,7 +28,7 @@ dev = [
2828
]
2929
test = [
3030
"pre-commit",
31-
"pytest",
31+
"pytest >=9.16",
3232
"pytest-asyncio",
3333
"websockets >=10.0",
3434
"pycrdt-websocket >=0.14.1,<0.15.0",

tests/test_ydocs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Jupyter Development Team.
22
# Distributed under the terms of the Modified BSD License.
33

4-
from pycrdt_websocket.awareness import Awareness
4+
from pycrdt import Awareness
55

66
from jupyter_ydoc import YBlob, YNotebook
77

0 commit comments

Comments
 (0)