15
0

Accepting request 1239258 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1239258
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ZConfig?expand=0&rev=13
This commit is contained in:
2025-01-21 20:11:04 +00:00
committed by Git OBS Bridge
5 changed files with 13 additions and 41 deletions

View File

@@ -1,34 +0,0 @@
From 7d4cbabc5f450ac4d9e228d79778c21805136b2c Mon Sep 17 00:00:00 2001
From: dieter <dieter.maurer@online.de>
Date: Sat, 18 May 2024 07:12:53 +0200
Subject: [PATCH] Fix test failure for Python3.13b1
---
CHANGES.rst | 3 +++
.../components/logger/tests/test_logger.py | 15 +++++++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
--- a/src/ZConfig/components/logger/tests/test_logger.py
+++ b/src/ZConfig/components/logger/tests/test_logger.py
@@ -699,8 +699,19 @@ def test_filehandler_reopen_thread_safety(self):
h = self.handler_factory(fn)
calls = []
- h.acquire = lambda: calls.append("acquire")
- h.release = lambda: calls.append("release")
+
+ class _LockMockup:
+ def acquire(*args, **kw):
+ calls.append("acquire")
+
+ __enter__ = acquire
+
+ def release(*args, **kw):
+ calls.append("release")
+
+ __exit__ = release
+
+ h.lock = _LockMockup()
h.reopen()
self.assertEqual(calls, ["acquire", "release"])

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jan 21 12:02:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 4.2
* Drop support for Python 3.7, 3.8.
* Add support for Python 3.13.
- Drop py313.patch, merged upstream
-------------------------------------------------------------------
Mon Oct 28 22:21:11 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ZConfig
#
# 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
@@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-ZConfig
Version: 4.1
Version: 4.2
Release: 0
Summary: Structured Configuration Library
License: ZPL-2.1
URL: https://github.com/zopefoundation/ZConfig
Source: https://files.pythonhosted.org/packages/source/Z/ZConfig/zconfig-%{version}.tar.gz
# PATCH-FIX-UPSTREAM: gh#zopefoundation/ZConfig#97
Patch1: py313.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module manuel}

View File

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

3
zconfig-4.2.tar.gz Normal file
View File

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