From 3222c59ff266b1b5ba69a9f3eb0fb7e3cfa724c4603859ae94af202bc1c506ba Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 9 Sep 2024 18:34:07 +0000 Subject: [PATCH] - Bump upper limit of trio gh#jupyter-server/pycrdt#160 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-pycrdt?expand=0&rev=9 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + _service | 21 ++++++++++++ pycrdt-0.8.17.tar.xz | 3 ++ pycrdt-0.9.11.tar.xz | 3 ++ pycrdt.obsinfo | 4 +++ python-pycrdt.changes | 79 +++++++++++++++++++++++++++++++++++++++++++ python-pycrdt.spec | 72 +++++++++++++++++++++++++++++++++++++++ vendor.tar.xz | 3 ++ 9 files changed, 209 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service 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.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..592871d --- /dev/null +++ b/pycrdt.obsinfo @@ -0,0 +1,4 @@ +name: pycrdt +version: 0.9.11 +mtime: 1725264371 +commit: 2fe8096593767f7708c81966dd47041e74b724fa diff --git a/python-pycrdt.changes b/python-pycrdt.changes new file mode 100644 index 0000000..e819d9e --- /dev/null +++ b/python-pycrdt.changes @@ -0,0 +1,79 @@ +------------------------------------------------------------------- +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..6b05761 --- /dev/null +++ b/python-pycrdt.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-pycrdt +# +# Copyright (c) 2024 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.9.11 +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 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) +# 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 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 +# gh#jupyter-server/pycrdt#160 +sed -i '/trio/ s/<0.26/<0.27/' pyproject.toml + +%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..1d838a1 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c288855663162e0669ed117abf985f00f2d1b06485ada3abfff6554d46fd5725 +size 5906608