14
0

Accepting request 1277594 from home:glaubitz:branches:devel:languages:python

- Update to 0.13.0
  * feat: add testing utilities (#368)
  * fix: Don't use deprecated model_fields access (#364)
  * build: fix building of wheels with uv (#370)
  * ci(pre-commit.ci): autoupdate (#369)
  * docs: general docs update, use mkdocs-api-autonav (#367)
  * build: use pyproject dependency groups and uv (#366)
  * ci(dependabot): bump pypa/cibuildwheel from 2.22 to 2.23 (#360)
  * Add back universal (none-any) wheel (#358)
  * ci(pre-commit.ci): autoupdate (#355)
- Drop support-pydantic-211.patch, merged upstream
- Update Suggests from pyproject.toml
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/request/show/1277594
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psygnal?expand=0&rev=15
This commit is contained in:
2025-05-15 15:19:53 +00:00
committed by Git OBS Bridge
parent c4a2ec82e8
commit 241d4bcb9d
5 changed files with 23 additions and 42 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d2a99803f3152c469d3642d36c04d680213a20e114245558e026695adf9a9c2
size 104400

3
psygnal-0.13.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:086cd929960713d7bf1e87242952b0d90330a1028827894dcb0cd174b331c1e4
size 107299

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu May 15 08:05:13 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.13.0
* feat: add testing utilities (#368)
* fix: Don't use deprecated model_fields access (#364)
* build: fix building of wheels with uv (#370)
* ci(pre-commit.ci): autoupdate (#369)
* docs: general docs update, use mkdocs-api-autonav (#367)
* build: use pyproject dependency groups and uv (#366)
* ci(dependabot): bump pypa/cibuildwheel from 2.22 to 2.23 (#360)
* Add back universal (none-any) wheel (#358)
* ci(pre-commit.ci): autoupdate (#355)
- Drop support-pydantic-211.patch, merged upstream
- Update Suggests from pyproject.toml
- Use Python 3.11 on SLE-15 by default
-------------------------------------------------------------------
Wed Apr 30 05:00:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -16,15 +16,14 @@
#
%{?sle15_python_module_pythons}
Name: python-psygnal
Version: 0.12.0
Version: 0.13.0
Release: 0
Summary: Fast python callback/event system modeled after Qt Signals
License: BSD-3-Clause
URL: https://github.com/pyapp-kit/psygnal
Source: https://files.pythonhosted.org/packages/source/p/psygnal/psygnal-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#pyapp-kit/psygnal#364
Patch0: support-pydantic-211.patch
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling >= 1.8.0}
BuildRequires: %{python_module pip}
@@ -46,7 +45,7 @@ Suggests: python-ipython
Suggests: python-numpy
Suggests: python-pydantic
Suggests: python-qtpy
Suggests: python-rich
Suggests: python-rich >= 14.0.0
Suggests: python-wrapt
Suggests: python-griffe == 0.25.5
Suggests: python-wrapt

View File

@@ -1,35 +0,0 @@
From e26b74711c598d383112c3450e044d6389fd8be8 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Wed, 30 Apr 2025 14:53:55 +1000
Subject: [PATCH] Don't use deprecated model_fields access
Pydantic 2.11 has deprecated accessing model_fields from instances of
the model class, instead requiring callers to use the class itself.
Fixes #356
---
src/psygnal/_evented_model.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/psygnal/_evented_model.py b/src/psygnal/_evented_model.py
index 31f90f98..c1cf1c57 100644
--- a/src/psygnal/_evented_model.py
+++ b/src/psygnal/_evented_model.py
@@ -111,7 +111,7 @@ def _get_defaults(
) -> dict[str, Any]:
"""Get possibly nested default values for a Model object."""
dflt = {}
- for k, v in obj.model_fields.items():
+ for k, v in type(obj).model_fields.items():
d = v.get_default()
if (
d is None
@@ -547,7 +547,7 @@ def update(self, values: Union["EventedModel", dict], recurse: bool = True) -> N
def reset(self) -> None:
"""Reset the state of the model to default values."""
model_config = _get_config(self)
- model_fields = _get_fields(self)
+ model_fields = _get_fields(type(self))
for name, value in self._defaults.items():
if isinstance(value, EventedModel):
cast("EventedModel", getattr(self, name)).reset()