From 3ed8f8648a91094bae5e67b90f16ce5fe0074153631d73af81723d4f1b1b7b73 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 29 Jan 2025 16:55:20 +0000 Subject: [PATCH] - Update to 0.12.7 * Add pycrdt.__version__. - Release to 0.10.7 through 0.12.6 * Upgrade yrs to v0.22.0 * Allow passing a Python timestamp function to an undo manager. * Add TypedArray typed container. * Add TypedDoc and TypedMap typed containers. * Rearrange typing tests and docs. * Drop Python v3.8. * Support type annotations. * Bump pyo3 to v0.23.3. * Fix Array iterator. * Add support for adding XmlFragments to arrays and maps (PR by @ColonelThirtyTwo). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-pycrdt?expand=0&rev=13 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 21 ++++++++ pycrdt-0.10.6.tar.xz | 3 ++ pycrdt-0.12.7.tar.xz | 3 ++ pycrdt-0.8.17.tar.xz | 3 ++ pycrdt-0.9.11.tar.xz | 3 ++ pycrdt.obsinfo | 4 ++ python-pycrdt.changes | 121 ++++++++++++++++++++++++++++++++++++++++++ python-pycrdt.spec | 73 +++++++++++++++++++++++++ vendor.tar.xz | 3 ++ 11 files changed, 258 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 pycrdt-0.10.6.tar.xz create mode 100644 pycrdt-0.12.7.tar.xz create mode 100644 pycrdt-0.8.17.tar.xz create mode 100644 pycrdt-0.9.11.tar.xz create mode 100644 pycrdt.obsinfo create mode 100644 python-pycrdt.changes create mode 100644 python-pycrdt.spec create mode 100644 vendor.tar.xz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..b87a532 --- /dev/null +++ b/_service @@ -0,0 +1,21 @@ + + + https://github.com/jupyter-server/pycrdt.git + git + @PARENT_TAG@ + @PARENT_TAG@ + v(.*) + \1 + + + + *.tar + xz + + + + pycrdt + xz + true + + diff --git a/pycrdt-0.10.6.tar.xz b/pycrdt-0.10.6.tar.xz new file mode 100644 index 0000000..31a7f90 --- /dev/null +++ b/pycrdt-0.10.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4184727fc659cf9c2b523714e78738870842e596c7df528a0dfba7e72eabe614 +size 49456 diff --git a/pycrdt-0.12.7.tar.xz b/pycrdt-0.12.7.tar.xz new file mode 100644 index 0000000..8156fd0 --- /dev/null +++ b/pycrdt-0.12.7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f68f5a0945130c983db5f8c321e0b59e7f4608985034caa9c64c1636d8602ec +size 53392 diff --git a/pycrdt-0.8.17.tar.xz b/pycrdt-0.8.17.tar.xz new file mode 100644 index 0000000..d80dee5 --- /dev/null +++ b/pycrdt-0.8.17.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2106461ccd01e6b71fc035c496544f8010ca0ba4e5d19f6a8867d31f90f8499c +size 22372 diff --git a/pycrdt-0.9.11.tar.xz b/pycrdt-0.9.11.tar.xz new file mode 100644 index 0000000..c35523a --- /dev/null +++ b/pycrdt-0.9.11.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e342126f3917229e2480811bbf9f542615730eb657f2f3cedf803b590dfadc0 +size 28152 diff --git a/pycrdt.obsinfo b/pycrdt.obsinfo new file mode 100644 index 0000000..647f169 --- /dev/null +++ b/pycrdt.obsinfo @@ -0,0 +1,4 @@ +name: pycrdt +version: 0.12.7 +mtime: 1737630432 +commit: 7d8b4019e5117e12cbd02e83c8f63dfc303f0cd0 diff --git a/python-pycrdt.changes b/python-pycrdt.changes new file mode 100644 index 0000000..132b804 --- /dev/null +++ b/python-pycrdt.changes @@ -0,0 +1,121 @@ +------------------------------------------------------------------- +Wed Jan 29 15:32:57 UTC 2025 - Ben Greiner + +- Update to 0.12.7 + * Add pycrdt.__version__. +- Release to 0.10.7 through 0.12.6 + * Upgrade yrs to v0.22.0 + * Allow passing a Python timestamp function to an undo manager. + * Add TypedArray typed container. + * Add TypedDoc and TypedMap typed containers. + * Rearrange typing tests and docs. + * Drop Python v3.8. + * Support type annotations. + * Bump pyo3 to v0.23.3. + * Fix Array iterator. + * Add support for adding XmlFragments to arrays and maps (PR by + @ColonelThirtyTwo). + +------------------------------------------------------------------- +Mon Nov 4 20:01:12 UTC 2024 - Ben Greiner + +- Update to 0.10.6 + * Bump yrs v0.21.3 and pyo3 v0.22.5 +- Releases from 0.9.15 to 0.10.5 + * Bump upper limit of trio by @bnavigator in #160 + * Add documentation about undo manager by @davidbrochart in #164 + * Add API reference by @davidbrochart in #165 + * Update GitHub actions by @davidbrochart in #167 + * Fix GitHub actions upload/download artifacts by @davidbrochart + in #168 + * Fix GitHub action upload artifact by @davidbrochart in #169 + * Add awareness by @davidbrochart in #171 + * Add awareness features to handle server state by @brichet in + #170 + * Fix set_local_state() and set_local_state_field() by + @davidbrochart in #176 + * Bump Yrs v0.21.2 by @davidbrochart in #177 + * Add awareness by @davidbrochart in #171 + * Add CHANGELOG.md and automate release on tag. + * Add support for XML, Text attributes and embeds (#184) (PR by + @ColonelThirtyTwo). + +------------------------------------------------------------------- +Mon Sep 9 18:25:15 UTC 2024 - Ben Greiner + +- Bump upper limit of trio gh#jupyter-server/pycrdt#160 + +------------------------------------------------------------------- +Fri Sep 6 17:56:42 UTC 2024 - Ben Greiner + +- Update to 0.9.11 + * Add Doc.new_transaction() sync and async context managers by + @davidbrochart in #154 + +------------------------------------------------------------------- +Fri Aug 30 10:27:48 UTC 2024 - Ben Greiner + +- Update to 0.9.8 + * Add update API by @Wh1isper in #148 +- Changes from 0.8.17 to 0.9.8 + * Check origin in nested transactions by @davidbrochart in #146 + * Move global origin registry to document by @davidbrochart in + #145 + * Fix origin by @davidbrochart in #144 + * Support transaction origin by @davidbrochart in #142 + * Bump pyo3 v0.22.2 by @davidbrochart in #143 + * Bump yrs v0.19.2 by @davidbrochart in #140 + * Allow multithreading by @davidbrochart in #137 + * Support undo manager expand_scope by @davidbrochart in #128 + * Export more from sync by @davidbrochart in #127 + * Add sync protocol (v1) by @davidbrochart in #124 + * Add undo manager by @davidbrochart in #119 + * Raise ValueError on Doc.get_update() error by @davidbrochart in + #118 + * Ignore empty updates by @davidbrochart in #107, #111 + * really drop python<=support by @kloczek in #96 + * Shared Types Popped from Shared Map are Empty by @jbdyn in #94 + +------------------------------------------------------------------- +Fri Jun 28 00:36:00 UTC 2024 - Steve Kowalik + +- Remove upper bound on pytest. + +------------------------------------------------------------------- +Fri Mar 29 19:13:03 UTC 2024 - Ben Greiner + +- Update to 0.8.17 + * Update yrs 0.18.2 by @davidbrochart in #92 +- Releases 0.8.7 to 0.8.16 + * Export Subscription by @davidbrochart in #90 + * Fix possibly undefined _subscriptions by @davidbrochart in #88 + * Remove warning about project not ready for production by + @davidbrochart in #82 + * Keep subscription references by @davidbrochart in #85 + * Fix doc observe by @davidbrochart in #87 + * Improve Doc.get return value type by @davidbrochart in #80 + * Add Doc.get() by @davidbrochart in #77 + * Add leading underscore to Python files by @davidbrochart in #75 + * Add update property to TransactionEvent by @davidbrochart in + #72 + +------------------------------------------------------------------- +Mon Jan 22 18:40:34 UTC 2024 - Ben Greiner + +- Update to 0.8.6 + * Resolve "Text data type does not delete as expected" by @jbdyn + in #68 +- Releases in Between: + * Bump yrs, pyo3, maturin +- Release 0.8.3 + * Support nested ReadTransaction by @davidbrochart in #59 + * Fix Map.pop default value handling by @davidbrochart in #60 + * Add contains method by @davidbrochart in #61 + * Support bytes by @davidbrochart in #62 + * Revert PR #58 by @davidbrochart in #63 + +------------------------------------------------------------------- +Thu Dec 28 17:00:19 UTC 2023 - Ben Greiner + +- Initial specfile for v0.8.2 +- Required by jupyter-collaboration 2 (still incubating phase) diff --git a/python-pycrdt.spec b/python-pycrdt.spec new file mode 100644 index 0000000..e91e0dc --- /dev/null +++ b/python-pycrdt.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-pycrdt +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pycrdt +Version: 0.12.7 +Release: 0 +Summary: Python bindings for Yrs +License: MIT +URL: https://github.com/jupyter-server/pycrdt +Source0: pycrdt-%{version}.tar.xz +Source1: vendor.tar.xz +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module maturin >= 1.4.0} +BuildRequires: %{python_module pip} +BuildRequires: cargo-packaging +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: (python-anyio >= 4.4 with python-anyio < 5) +Requires: (python-importlib-metadata >= 3.6 if python-base < 3.10) +# SECTION test requirements +BuildRequires: %{python_module pytest >= 7.4.2} +BuildRequires: %{python_module anyio >= 4.4.0 with %python-anyio < 5} +BuildRequires: %{python_module exceptiongroup if %python-base < 3.11} +BuildRequires: %{python_module importlib-metadata >= 3.6 if %python-base < 3.10} +BuildRequires: %{python_module trio >= 0.25.1 with %python-trio < 0.27} +# /SECTION +%python_subpackages + +%description +Pycrdt is a Python CRDT library that provides bindings for Yrs, the Rust port of the Yjs framework. + +Conflict-free Replicated Data Types (CRDTs) allow creating shared documents that can automatically +merge changes made concurrently on different "copies" of the data. When the data lives on different +machines, they make it possible to build distributed systems that work with local data, leaving the +synchronization and conflict resolution with remote data to the CRDT algorithm, which ensures that +all data replicas eventually converge to the same state. + +%prep +%autosetup -p1 -n pycrdt-%{version} -a1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +# pydantic is too old +%pytest_arch --ignore tests/test_model.py + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitearch}/pycrdt +%{python_sitearch}/pycrdt-%{version}.dist-info + +%changelog diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..fbe9461 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4544cafd5d46d99deabbdf21731c50828e3ccb80dc60110e84a6302776633034 +size 6491760