jupyter-ydoc 3.0.2__tar.gz → 3.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/workflows/test.yml +4 -12
  2. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.pre-commit-config.yaml +1 -1
  3. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/CHANGELOG.md +21 -2
  4. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/PKG-INFO +4 -3
  5. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/javascript/package.json +1 -1
  6. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/_version.py +1 -1
  7. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/ynotebook.py +5 -1
  8. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/pyproject.toml +1 -1
  9. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/dependabot.yml +0 -0
  10. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/workflows/auto_author_assign.yml +0 -0
  11. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/workflows/check-release.yml +0 -0
  12. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/workflows/enforce-label.yml +0 -0
  13. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/workflows/license-header.yml +0 -0
  14. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/workflows/prep-release.yml +0 -0
  15. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.github/workflows/publish-release.yml +0 -0
  16. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.gitignore +0 -0
  17. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.licenserc.yaml +0 -0
  18. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.yarn/releases/yarn-3.4.1.cjs +0 -0
  19. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/.yarnrc.yml +0 -0
  20. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/LICENSE +0 -0
  21. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/README.md +0 -0
  22. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/Makefile +0 -0
  23. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/make.bat +0 -0
  24. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/_static/jupyter_logo.svg +0 -0
  25. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/_static/logo-icon.png +0 -0
  26. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/conf.py +0 -0
  27. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/custom.md +0 -0
  28. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/index.md +0 -0
  29. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/javascript_api.rst +0 -0
  30. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/overview.md +0 -0
  31. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/python_api.rst +0 -0
  32. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/docs/source/schema.md +0 -0
  33. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/__init__.py +0 -0
  34. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/py.typed +0 -0
  35. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/utils.py +0 -0
  36. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/ybasedoc.py +0 -0
  37. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/yblob.py +0 -0
  38. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/yfile.py +0 -0
  39. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/jupyter_ydoc/yunicode.py +0 -0
  40. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/lerna.json +0 -0
  41. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/package.json +0 -0
  42. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/pytest.ini +0 -0
  43. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/readthedocs.yml +0 -0
  44. {jupyter_ydoc-3.0.2 → jupyter_ydoc-3.0.3}/yarn.lock +0 -0
@@ -41,30 +41,24 @@ jobs:
41
41
  steps:
42
42
  - name: Checkout repository
43
43
  uses: actions/checkout@v4
44
- - name: Install Miniconda
45
- uses: conda-incubator/setup-miniconda@v3
44
+ - name: Install mamba
45
+ uses: mamba-org/setup-micromamba@v2
46
46
  with:
47
- miniforge-variant: Mambaforge
48
- miniforge-version: latest
49
- python-version: "3.11"
50
-
47
+ environment-name: jupyter_ydoc
51
48
  - name: Install dependencies
52
49
  run: |
53
- mamba install pip nodejs=18
50
+ micromamba install pip nodejs=18
54
51
  pip install ".[test]"
55
-
56
52
  - name: Build JavaScript assets
57
53
  working-directory: javascript
58
54
  run: |
59
55
  yarn
60
56
  yarn build
61
-
62
57
  - name: Linter check
63
58
  if: ${{ !contains(matrix.os, 'windows') }}
64
59
  working-directory: javascript
65
60
  run: |
66
61
  yarn lint:check
67
-
68
62
  - name: Integrity check
69
63
  if: ${{ !contains(matrix.os, 'windows') }}
70
64
  working-directory: javascript
@@ -76,13 +70,11 @@ jobs:
76
70
  echo "Integrity test failed; please run locally 'yarn integrity' and commit the changes"
77
71
  exit 1
78
72
  fi
79
-
80
73
  - name: Run JS tests
81
74
  working-directory: javascript
82
75
  run: |
83
76
  yarn build:test
84
77
  yarn test:cov
85
-
86
78
  - name: Run Python tests
87
79
  run: |
88
80
  python -m pytest -v
@@ -17,7 +17,7 @@ repos:
17
17
  exclude: ^\.yarn
18
18
 
19
19
  - repo: https://github.com/astral-sh/ruff-pre-commit
20
- rev: v0.8.0
20
+ rev: v0.9.3
21
21
  hooks:
22
22
  - id: ruff
23
23
  args: [--fix, --show-fixes]
@@ -2,6 +2,27 @@
2
2
 
3
3
  <!-- <START NEW CHANGELOG ENTRY> -->
4
4
 
5
+ ## 3.0.3
6
+
7
+ ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@3.0.2...678a0a483421cbcb10cd56f4948dc944ac976555))
8
+
9
+ ### Bugs fixed
10
+
11
+ - Fix missing nbformat version [#304](https://github.com/jupyter-server/jupyter_ydoc/pull/304) ([@fcollonval](https://github.com/fcollonval))
12
+
13
+ ### Maintenance and upkeep improvements
14
+
15
+ - Increase pycrdt compatible version range [#307](https://github.com/jupyter-server/jupyter_ydoc/pull/307) ([@davidbrochart](https://github.com/davidbrochart))
16
+ - Use micromamba in CI [#301](https://github.com/jupyter-server/jupyter_ydoc/pull/301) ([@davidbrochart](https://github.com/davidbrochart))
17
+
18
+ ### Contributors to this release
19
+
20
+ ([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_ydoc/graphs/contributors?from=2024-12-02&to=2025-01-28&type=c))
21
+
22
+ [@davidbrochart](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Adavidbrochart+updated%3A2024-12-02..2025-01-28&type=Issues) | [@fcollonval](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Afcollonval+updated%3A2024-12-02..2025-01-28&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Apre-commit-ci+updated%3A2024-12-02..2025-01-28&type=Issues)
23
+
24
+ <!-- <END NEW CHANGELOG ENTRY> -->
25
+
5
26
  ## 3.0.2
6
27
 
7
28
  ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@3.0.1...db70566443ffc92e9bf62e2064e9b928ca2e96d7))
@@ -18,8 +39,6 @@
18
39
 
19
40
  [@davidbrochart](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Adavidbrochart+updated%3A2024-11-18..2024-12-02&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Apre-commit-ci+updated%3A2024-11-18..2024-12-02&type=Issues)
20
41
 
21
- <!-- <END NEW CHANGELOG ENTRY> -->
22
-
23
42
  ## 3.0.1
24
43
 
25
44
  ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@3.0.0...2ed6216e488db36c2757390c96195db9909e7908))
@@ -1,15 +1,16 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: jupyter-ydoc
3
- Version: 3.0.2
3
+ Version: 3.0.3
4
4
  Summary: Document structures for collaborative editing using Ypy
5
5
  Project-URL: Homepage, https://jupyter.org
6
6
  Project-URL: Source, https://github.com/jupyter-server/jupyter_ydoc
7
7
  Author-email: Jupyter Development Team <jupyter@googlegroups.com>
8
8
  License: BSD 3-Clause License
9
+ License-File: LICENSE
9
10
  Keywords: jupyter,pycrdt,yjs
10
11
  Requires-Python: >=3.8
11
12
  Requires-Dist: importlib-metadata>=3.6; python_version < '3.10'
12
- Requires-Dist: pycrdt<0.11.0,>=0.10.1
13
+ Requires-Dist: pycrdt<0.13.0,>=0.10.1
13
14
  Provides-Extra: dev
14
15
  Requires-Dist: click; extra == 'dev'
15
16
  Requires-Dist: jupyter-releaser; extra == 'dev'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/ydoc",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "type": "module",
5
5
  "description": "Jupyter document structures for collaborative editing using YJS",
6
6
  "homepage": "https://github.com/jupyter-server/jupyter_ydoc",
@@ -1,4 +1,4 @@
1
1
  # This file is auto-generated by Hatchling. As such, do not:
2
2
  # - modify
3
3
  # - track in version control e.g. be sure to add to .gitignore
4
- __version__ = VERSION = '3.0.2'
4
+ __version__ = VERSION = '3.0.3'
@@ -202,7 +202,11 @@ class YNotebook(YBaseDoc):
202
202
  cells = []
203
203
  for i in range(len(self._ycells)):
204
204
  cell = self.get_cell(i)
205
- if "id" in cell and meta["nbformat"] == 4 and meta["nbformat_minor"] <= 4:
205
+ if (
206
+ "id" in cell
207
+ and int(meta.get("nbformat", 0)) == 4
208
+ and int(meta.get("nbformat_minor", 0)) <= 4
209
+ ):
206
210
  # strip cell IDs if we have notebook format 4.0-4.4
207
211
  del cell["id"]
208
212
  if (
@@ -13,7 +13,7 @@ requires-python = ">=3.8"
13
13
  keywords = ["jupyter", "pycrdt", "yjs"]
14
14
  dependencies = [
15
15
  "importlib_metadata >=3.6; python_version<'3.10'",
16
- "pycrdt >=0.10.1,<0.11.0",
16
+ "pycrdt >=0.10.1,<0.13.0",
17
17
  ]
18
18
 
19
19
  [[project.authors]]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes