From 11ddc6695f612daad84bcb855a7bd2d3ccf30a2cd1fd7584928beed87313b611 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 21 Jan 2025 12:14:37 +0000 Subject: [PATCH] Accepting request 1239253 from home:glaubitz:branches:devel:languages:python - Update to 4.2 * Drop support for Python 3.7, 3.8. * Add support for Python 3.13. - Drop py313.patch, merged upstream OBS-URL: https://build.opensuse.org/request/show/1239253 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZConfig?expand=0&rev=25 --- py313.patch | 34 ---------------------------------- python-ZConfig.changes | 8 ++++++++ python-ZConfig.spec | 6 ++---- zconfig-4.1.tar.gz | 3 --- zconfig-4.2.tar.gz | 3 +++ 5 files changed, 13 insertions(+), 41 deletions(-) delete mode 100644 py313.patch delete mode 100644 zconfig-4.1.tar.gz create mode 100644 zconfig-4.2.tar.gz diff --git a/py313.patch b/py313.patch deleted file mode 100644 index 523317e..0000000 --- a/py313.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 7d4cbabc5f450ac4d9e228d79778c21805136b2c Mon Sep 17 00:00:00 2001 -From: dieter -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"]) diff --git a/python-ZConfig.changes b/python-ZConfig.changes index a4230a7..b1f2d91 100644 --- a/python-ZConfig.changes +++ b/python-ZConfig.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Jan 21 12:02:37 UTC 2025 - John Paul Adrian Glaubitz + +- 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 diff --git a/python-ZConfig.spec b/python-ZConfig.spec index feef84a..d84ff9b 100644 --- a/python-ZConfig.spec +++ b/python-ZConfig.spec @@ -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} diff --git a/zconfig-4.1.tar.gz b/zconfig-4.1.tar.gz deleted file mode 100644 index b24ed1b..0000000 --- a/zconfig-4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6a79dda157f3698c8768d2cedc263216e8af240d3cf9d09a02a64291114eb20 -size 146996 diff --git a/zconfig-4.2.tar.gz b/zconfig-4.2.tar.gz new file mode 100644 index 0000000..122eafa --- /dev/null +++ b/zconfig-4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0e4b5277c4cee8060ce335a578ac458f82c240ae96b16659200dbc4d98bfcce +size 127198