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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-pycrdt?expand=0&rev=14
This commit is contained in:
Benjamin Greiner 2025-01-30 16:55:52 +00:00 committed by Git OBS Bridge
parent 3ed8f8648a
commit beacad0f6d
3 changed files with 60 additions and 1 deletions

View File

@ -0,0 +1,53 @@
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,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@ -24,6 +24,7 @@ License: MIT
URL: https://github.com/jupyter-server/pycrdt
Source0: pycrdt-%{version}.tar.xz
Source1: vendor.tar.xz
Patch0: pycrdt-pr227-trio0.28.patch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module maturin >= 1.4.0}
BuildRequires: %{python_module pip}
@ -37,7 +38,7 @@ 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}
BuildRequires: %{python_module trio >= 0.25.1 with %python-trio < 0.29}
# /SECTION
%python_subpackages