Accepting request 1241449 from devel:languages:python:jupyter

- Add pycrdt-pr227-trio0.28.patch gh#jupyter-server/pycrdt#227

- 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/request/show/1241449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycrdt?expand=0&rev=7
This commit is contained in:
Ana Guerrero 2025-01-31 15:02:25 +00:00 committed by Git OBS Bridge
commit 66358ef43e
7 changed files with 102 additions and 12 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4184727fc659cf9c2b523714e78738870842e596c7df528a0dfba7e72eabe614
size 49456

3
pycrdt-0.12.7.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f68f5a0945130c983db5f8c321e0b59e7f4608985034caa9c64c1636d8602ec
size 53392

View File

@ -0,0 +1,63 @@
From 238396359d6f4e67db0269c5554ce2701674cc50 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Thu, 30 Jan 2025 17:49:28 +0100
Subject: [PATCH] Bump trio upper version to <0.29
---
.github/workflows/publish.yml | 8 ++++----
pyproject.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 39a3a25..8f3f504 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -31,7 +31,7 @@ jobs:
args: --release --target universal2-apple-darwin --out dist -i 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
- name: Test built wheel - universal2
run: |
- pip install pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.26" "exceptiongroup; python_version<'3.11'"
+ pip install pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.29" "exceptiongroup; python_version<'3.11'"
pip install pycrdt --no-deps --no-index --find-links dist --force-reinstall
pytest
- name: Upload wheels
@@ -64,7 +64,7 @@ jobs:
args: --release --out dist -i ${{ matrix.platform.interpreter }}
- name: Test built wheel
run: |
- pip install pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.26" "exceptiongroup; python_version<'3.11'"
+ pip install pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.29" "exceptiongroup; python_version<'3.11'"
pip install pycrdt --no-deps --no-index --find-links dist --force-reinstall
pytest
- name: Upload wheels
@@ -100,7 +100,7 @@ jobs:
- name: Test built wheel
if: matrix.target == 'x86_64'
run: |
- pip install pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.26" "exceptiongroup; python_version<'3.11'"
+ pip install pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.29" "exceptiongroup; python_version<'3.11'"
pip install pycrdt --no-deps --no-index --find-links dist --force-reinstall
pytest
- name: Upload wheels
@@ -136,7 +136,7 @@ jobs:
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
- pip3 install -U pip pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.26" "exceptiongroup; python_version<'3.11'"
+ pip3 install -U pip pytest pytest-mypy-testing "pydantic>=2.5.2,<3" "anyio>=4.4.0,<5" "trio>=0.25.1,<0.29" "exceptiongroup; python_version<'3.11'"
run: |
pip3 install pycrdt --no-deps --no-index --find-links dist/ --force-reinstall
pytest
diff --git a/pyproject.toml b/pyproject.toml
index a520aa6..65c3a4c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -40,7 +40,7 @@ test = [
"pytest >=7.4.2,<8",
"pytest-mypy-testing",
"anyio",
- "trio >=0.25.1,<0.27",
+ "trio >=0.25.1,<0.29",
"pydantic >=2.5.2,<3",
"mypy",
"coverage[toml] >=7",

View File

@ -1,4 +1,4 @@
name: pycrdt
version: 0.10.6
mtime: 1729861432
commit: 59293cd09f192fd513a80e2be9981939ac8b7bd5
version: 0.12.7
mtime: 1737630432
commit: 7d8b4019e5117e12cbd02e83c8f63dfc303f0cd0

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Thu Jan 30 16:54:41 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Add pycrdt-pr227-trio0.28.patch gh#jupyter-server/pycrdt#227
-------------------------------------------------------------------
Wed Jan 29 15:32:57 UTC 2025 - Ben Greiner <code@bnavigator.de>
- 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 <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pycrdt
#
# Copyright (c) 2024 SUSE LLC
# 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
@ -17,25 +17,29 @@
Name: python-pycrdt
Version: 0.10.6
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.8}
# PATCH-FIX-UPSTREAM pycrdt-pr227-trio0.28.patch gh#jupyter-server/pycrdt#227
Patch0: pycrdt-pr227-trio0.28.patch
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 trio >= 0.25.1 with %python-trio < 0.27}
BuildRequires: %{python_module importlib-metadata >= 3.6 if %python-base < 3.10}
BuildRequires: %{python_module trio >= 0.25.1 with %python-trio < 0.29}
# /SECTION
%python_subpackages

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31245f1ea1929d14aebb368b7b208cb9605025f8111e6fe88b38e4afbb02ce74
size 5951296
oid sha256:4544cafd5d46d99deabbdf21731c50828e3ccb80dc60110e84a6302776633034
size 6491760