Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-logutils for openSUSE:Factory
checked in at 2024-09-13 14:25:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-logutils (Old)
and /work/SRC/openSUSE:Factory/.python-logutils.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-logutils"
Fri Sep 13 14:25:54 2024 rev:10 rq:1199774 version:0.3.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-logutils/python-logutils.changes
2024-01-21 23:08:07.304992515 +0100
+++
/work/SRC/openSUSE:Factory/.python-logutils.new.29891/python-logutils.changes
2024-09-13 14:26:21.663899228 +0200
@@ -1,0 +2,13 @@
+Tue Sep 10 03:08:22 UTC 2024 - Steve Kowalik <[email protected]>
+
+- Add patch use-logging-lock-directly.patch:
+ * Use logging._lock as a context manager.
+- Switch to autosetup macro.
+
+-------------------------------------------------------------------
+Thu Sep 5 18:08:30 UTC 2024 - Christoph G <[email protected]>
+
+- Add patch logutils-intersphinx.patch to fix compatibility
+ with recent Sphinx
+
+-------------------------------------------------------------------
New:
----
logutils-intersphinx.patch
use-logging-lock-directly.patch
BETA DEBUG BEGIN:
New:
- Add patch logutils-intersphinx.patch to fix compatibility
with recent Sphinx
New:
- Add patch use-logging-lock-directly.patch:
* Use logging._lock as a context manager.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-logutils.spec ++++++
--- /var/tmp/diff_new_pack.HYntwa/_old 2024-09-13 14:26:22.311926260 +0200
+++ /var/tmp/diff_new_pack.HYntwa/_new 2024-09-13 14:26:22.315926427 +0200
@@ -21,12 +21,15 @@
Release: 0
Summary: Logging utilities
License: BSD-3-Clause
-Group: Development/Languages/Python
URL: https://logutils.readthedocs.io/
Source:
https://files.pythonhosted.org/packages/source/l/logutils/logutils-%{version}.tar.gz
Patch0: sphinx4.patch
# PATCH-FIX-UPSTREAM logutils-pr1-fix-testasserts-py3.12.patch
https://bitbucket.org/vinay.sajip/logutils/pull-requests/1
Patch1:
https://bitbucket.org/hugovk/logutils/commits/0a3af211128567c437e68261a02591ffe2682d95/raw#/logutils-pr1-fix-testasserts-py3.12.patch
+# PATCH-FIX-UPSTREAM logutils-intersphinx.patch
+Patch2: logutils-intersphinx.patch
+# PATCH-FIX-OPENSUSE Use logging._lock as a context manager directly
+Patch3: use-logging-lock-directly.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module redis}
BuildRequires: %{python_module setuptools}
@@ -49,7 +52,6 @@
%package -n python-logutils-doc
Summary: Documentation for %{name}
-Group: Documentation/Other
Provides: %{python_module logutils-doc = %{version}}
%description -n python-logutils-doc
@@ -64,8 +66,7 @@
This package contains the documentation.
%prep
-%setup -q -n logutils-%{version}
-%autopatch -p1
+%autosetup -p1 -n logutils-%{version}
%build
%pyproject_wheel
++++++ logutils-intersphinx.patch ++++++
>From 28565675eea39b1b1def8cd6706b0a9556f7e505 Mon Sep 17 00:00:00 2001
From: Vinay Sajip <[email protected]>
Date: Thu, 15 Jun 2023 16:13:41 +0100
Subject: [PATCH] Add Read The Docs configuration.
---
diff --git a/doc/conf.py b/doc/conf.py
index afdd641..04e02eb 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -194,6 +194,4 @@ latex_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {
- 'http://docs.python.org/dev': None,
-}
+intersphinx_mapping = {'python': ('http://docs.python.org/', None)}
--
2.46.0
++++++ logutils-pr1-fix-testasserts-py3.12.patch ++++++
--- /var/tmp/diff_new_pack.HYntwa/_old 2024-09-13 14:26:22.355928096 +0200
+++ /var/tmp/diff_new_pack.HYntwa/_new 2024-09-13 14:26:22.359928263 +0200
@@ -52,6 +52,6 @@
def test_config5_ok(self):
self.test_config1_ok(config=self.config5)
--
-2.42.0
+2.46.0
++++++ use-logging-lock-directly.patch ++++++
Index: logutils-0.3.5/logutils/dictconfig.py
===================================================================
--- logutils-0.3.5.orig/logutils/dictconfig.py
+++ logutils-0.3.5/logutils/dictconfig.py
@@ -290,8 +290,7 @@ class DictConfigurator(BaseConfigurator)
raise ValueError("Unsupported version: %s" % config['version'])
incremental = config.pop('incremental', False)
EMPTY_DICT = {}
- logging._acquireLock()
- try:
+ with logging._lock:
if incremental:
handlers = config.get('handlers', EMPTY_DICT)
# incremental handler config only if handler name
@@ -430,8 +429,6 @@ class DictConfigurator(BaseConfigurator)
e = sys.exc_info()[1]
raise ValueError('Unable to configure root '
'logger: %s' % e)
- finally:
- logging._releaseLock()
def configure_formatter(self, config):
"""Configure a formatter from a dictionary."""
Index: logutils-0.3.5/tests/test_dictconfig.py
===================================================================
--- logutils-0.3.5.orig/tests/test_dictconfig.py
+++ logutils-0.3.5/tests/test_dictconfig.py
@@ -39,8 +39,7 @@ class ConfigDictTest(unittest.TestCase):
self.adapter = LoggerAdapter(l, {})
logger_dict = logging.getLogger().manager.loggerDict
- logging._acquireLock()
- try:
+ with logging._lock:
self.saved_handlers = logging._handlers.copy()
self.saved_handler_list = logging._handlerList[:]
self.saved_loggers = logger_dict.copy()
@@ -49,8 +48,6 @@ class ConfigDictTest(unittest.TestCase):
else:
self.saved_level_to_name = logging._levelToName.copy()
self.saved_name_to_level = logging._nameToLevel.copy()
- finally:
- logging._releaseLock()
self.root_logger = logging.getLogger("")
self.original_logging_level = self.root_logger.getEffectiveLevel()
@@ -58,8 +55,7 @@ class ConfigDictTest(unittest.TestCase):
def tearDown(self):
self.root_logger.setLevel(self.original_logging_level)
- logging._acquireLock()
- try:
+ with logging._lock:
if hasattr(logging, '_levelNames'):
logging._levelNames.clear()
logging._levelNames.update(self.saved_level_names)
@@ -74,8 +70,6 @@ class ConfigDictTest(unittest.TestCase):
loggerDict = logging.getLogger().manager.loggerDict
loggerDict.clear()
loggerDict.update(self.saved_loggers)
- finally:
- logging._releaseLock()
message_num = 0