public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-loguru] epel10.3: Update to 0.8.0 upstream release
Date: Thu, 12 Nov 2026 19:30:40 GMT [thread overview]
Message-ID: <179451184092.1.16570963867421827801.rpms-python-loguru-8205ddcfc9c2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-loguru
Branch : epel10.3
Commit : 8205ddcfc9c2adb1fe31ad099f82b52630266f51
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-12T14:15:39+00:00
Stats : +3/-192 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/python-loguru/c/8205ddcfc9c2adb1fe31ad099f82b52630266f51?branch=epel10.3
Log:
Update to 0.8.0 upstream release
- Resolves: rhbz#2572030
Upstream tag: 0.8.0
Upstream commit: 28349be3
Commit co-authored by Packit automation (https://packit.dev/)
---
diff --git a/0001-Fix-deprecation-warning-raised-by-tests-with-Python-.patch b/0001-Fix-deprecation-warning-raised-by-tests-with-Python-.patch
deleted file mode 100644
index 1612322..0000000
--- a/0001-Fix-deprecation-warning-raised-by-tests-with-Python-.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-From 58bd3fd8e5445c40c2c8d8714a4cc7561c43168d Mon Sep 17 00:00:00 2001
-From: Delgan <4193924+Delgan@users.noreply.github.com>
-Date: Thu, 13 Feb 2025 19:10:32 +0100
-Subject: [PATCH] Fix deprecation warning raised by tests with Python 3.14
- (#1298)
-
----
- pyproject.toml | 4 +++-
- tests/conftest.py | 8 +++++++-
- tests/test_coroutine_sink.py | 1 +
- 3 files changed, 11 insertions(+), 2 deletions(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 4ea6eb8..0c17351 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -52,7 +52,7 @@ dev = [
- "pytest-cov==5.0.0 ; python_version>='3.8' and python_version<'3.9'",
- "pytest-cov==6.0.0 ; python_version>='3.9'",
- "pytest-mypy-plugins==1.9.3 ; python_version>='3.6' and python_version<'3.8'",
-- "pytest-mypy-plugins==3.1.0 ; python_version>='3.8'",
-+ "pytest-mypy-plugins==3.1.0 ; python_version>='3.8' and python_version<'3.14'",
- # Testing utils.
- "colorama==0.4.5 ; python_version<'3.8'",
- "colorama==0.4.6 ; python_version>='3.8'",
-@@ -99,6 +99,8 @@ filterwarnings = [
- 'error',
- # Mixing threads and "fork()" is deprecated, but we need to test it anyway.
- 'ignore:.*use of fork\(\) may lead to deadlocks in the child.*:DeprecationWarning',
-+ # Using "set_event_loop()" is deprecated, but no alternative is provided.
-+ "ignore:.*'asyncio.set_event_loop' is deprecated.*:DeprecationWarning",
- ]
- testpaths = ["tests"]
-
-diff --git a/tests/conftest.py b/tests/conftest.py
-index a2db04f..7d1c5ca 100644
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -47,8 +47,14 @@ if sys.version_info < (3, 6):
- return pathlib.Path(str(tmp_path))
-
-
--if sys.version_info >= (3, 6):
-+try:
- from pytest_mypy_plugins.item import YamlTestItem
-+except ImportError:
-+ # The plugin is only available starting with Python 3.6.
-+ # Additionally, it has dependencies that are not compatible with Python versions in development.
-+ # In both cases, the Mypy tests will be skipped.
-+ pass
-+else:
-
- def _fix_positional_only_args(item: YamlTestItem):
- """Remove forward-slash marker from the expected output for Python 3.6."""
-diff --git a/tests/test_coroutine_sink.py b/tests/test_coroutine_sink.py
-index 177fe88..214280a 100644
---- a/tests/test_coroutine_sink.py
-+++ b/tests/test_coroutine_sink.py
-@@ -162,6 +162,7 @@ def test_using_sink_without_running_loop_none(capsys):
- assert out == ""
-
-
-+@pytest.mark.skipif(sys.version_info >= (3, 16), reason="The 'set_event_loop' function is removed")
- def test_global_loop_not_used(capsys):
- with new_event_loop_context() as loop:
- with set_event_loop_context(loop):
---
-2.48.1
-
diff --git a/84023e2bd8339de95250470f422f096edcb8f7b7.patch b/84023e2bd8339de95250470f422f096edcb8f7b7.patch
deleted file mode 100644
index ed54f04..0000000
--- a/84023e2bd8339de95250470f422f096edcb8f7b7.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 84023e2bd8339de95250470f422f096edcb8f7b7 Mon Sep 17 00:00:00 2001
-From: Delgan <delgan.py@gmail.com>
-Date: Sat, 5 Jul 2025 22:43:12 +0200
-Subject: [PATCH] Fix failing "exception_modern" unit test with Python 3.14
- (#1331)
-
-The test relies on the "repr()" output of a few classes which are
-not meant to be considered as a stabilized API. In this
-specific case, "Union" representation was changed upstream from
-"typing.Union" to "<class 'typing.Union'>" (kind of leak
-implementation details).
-
-I simply replaced the dummy "Union" with "Tuple" in the unit test,
-since its representation appears stable acrcoss versions.
----
- tests/exceptions/output/modern/type_hints.txt | 4 ++--
- tests/exceptions/source/modern/type_hints.py | 4 ++--
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/tests/exceptions/output/modern/type_hints.txt b/tests/exceptions/output/modern/type_hints.txt
-index 64484d3f9..917180a32 100644
---- a/tests/exceptions/output/modern/type_hints.txt
-+++ b/tests/exceptions/output/modern/type_hints.txt
-@@ -10,11 +10,11 @@
- ^[[36m └ ^[[0m^[[36m^[[1m<function foo at 0xDEADBEEF>^[[0m
-
- File "^[[32mtests/exceptions/source/modern/^[[0m^[[32m^[[1mtype_hints.py^[[0m", line ^[[33m15^[[0m, in ^[[35mfoo^[[0m
-- ^[[35m^[[1mdef^[[0m ^[[1mfoo^[[0m^[[1m(^[[0m^[[1ma^[[0m^[[1m:^[[0m ^[[1mint^[[0m^[[1m,^[[0m ^[[1mb^[[0m^[[1m:^[[0m ^[[1mUnion^[[0m^[[1m[^[[0m^[[1mName^[[0m^[[1m,^[[0m ^[[1mfloat^[[0m^[[1m]^[[0m^[[1m,^[[0m ^[[1mc^[[0m^[[1m:^[[0m ^[[36m"Name"^[[0m^[[1m)^[[0m ^[[35m^[[1m->^[[0m ^[[1mT^[[0m^[[1m:^[[0m ^[[34m^[[1m1^[[0m ^[[35m^[[1m/^[[0m ^[[34m^[[1m0^[[0m
-+ ^[[35m^[[1mdef^[[0m ^[[1mfoo^[[0m^[[1m(^[[0m^[[1ma^[[0m^[[1m:^[[0m ^[[1mint^[[0m^[[1m,^[[0m ^[[1mb^[[0m^[[1m:^[[0m ^[[1mTuple^[[0m^[[1m[^[[0m^[[1mName^[[0m^[[1m,^[[0m ^[[1mfloat^[[0m^[[1m]^[[0m^[[1m,^[[0m ^[[1mc^[[0m^[[1m:^[[0m ^[[36m"Name"^[[0m^[[1m)^[[0m ^[[35m^[[1m->^[[0m ^[[1mT^[[0m^[[1m:^[[0m ^[[34m^[[1m1^[[0m ^[[35m^[[1m/^[[0m ^[[34m^[[1m0^[[0m
- ^[[36m │ │ │ │ │ │ └ ^[[0m^[[36m^[[1m~T^[[0m
- ^[[36m │ │ │ │ │ └ ^[[0m^[[36m^[[1m3^[[0m
- ^[[36m │ │ │ │ └ ^[[0m^[[36m^[[1m<class 'str'>^[[0m
-- ^[[36m │ │ │ └ ^[[0m^[[36m^[[1mtyping.Union^[[0m
-+ ^[[36m │ │ │ └ ^[[0m^[[36m^[[1mtyping.Tuple^[[0m
- ^[[36m │ │ └ ^[[0m^[[36m^[[1m2^[[0m
- ^[[36m │ └ ^[[0m^[[36m^[[1m1^[[0m
- ^[[36m └ ^[[0m^[[36m^[[1m<function foo at 0xDEADBEEF>^[[0m
-diff --git a/tests/exceptions/source/modern/type_hints.py b/tests/exceptions/source/modern/type_hints.py
-index 84b36e511..cda95a681 100644
---- a/tests/exceptions/source/modern/type_hints.py
-+++ b/tests/exceptions/source/modern/type_hints.py
-@@ -1,6 +1,6 @@
- # fmt: off
- import sys
--from typing import TypeVar, Union
-+from typing import TypeVar, Tuple
-
- from loguru import logger
-
-@@ -12,7 +12,7 @@
- Name = str
-
-
--def foo(a: int, b: Union[Name, float], c: "Name") -> T: 1 / 0
-+def foo(a: int, b: Tuple[Name, float], c: "Name") -> T: 1 / 0
-
-
- def main():
diff --git a/CVE-2026-120217.patch b/CVE-2026-120217.patch
deleted file mode 100644
index 0b69700..0000000
--- a/CVE-2026-120217.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -Naur a/loguru/_colorizer.py b/loguru/_colorizer.py
---- a/loguru/_colorizer.py 2024-12-06 11:01:27.000000000 +0000
-+++ b/loguru/_colorizer.py 2026-11-04 06:55:33.372233034 +0000
-@@ -166,7 +166,8 @@
- }
- )
-
-- _regex_tag = re.compile(r"(\\*)(</?(?:[fb]g\s)?[^<>\s]*>)")
-+ # The negative lookbehind prevents quadratic re-scan of the whole input.
-+ _regex_tag = re.compile(r"(?<!\\)(\\*)(</?(?:[fb]g\s)?[^<>\s]*>)")
-
- def __init__(self):
- self._tokens = []
-diff -Naur a/loguru/_logger.py b/loguru/_logger.py
---- a/loguru/_logger.py 2024-12-06 11:01:27.000000000 +0000
-+++ b/loguru/_logger.py 2026-11-04 06:39:16.208366029 +0000
-@@ -667,7 +667,7 @@
- prepending a ``\`` like for example ``\<blue>``. To prevent the escaping to occur, you can
- simply double the ``\`` (e.g. ``\\<blue>`` will print a literal ``\`` before colored text).
- If, for some reason, you need to escape a string programmatically, note that the regex used
-- internally to parse markup tags is ``r"(\\*)(</?(?:[fb]g\s)?[^<>\s]*>)"``.
-+ internally to parse markup tags is ``r"(?<!\\)(\\*)(</?(?:[fb]g\s)?[^<>\s]*>)"``.
-
- Note that when logging a message with ``opt(colors=True)``, color tags present in the
- formatting arguments (``args`` and ``kwargs``) are completely ignored. This is important if
-diff -Naur a/tests/test_add_option_colorize.py b/tests/test_add_option_colorize.py
---- a/tests/test_add_option_colorize.py 2024-12-06 11:01:27.000000000 +0000
-+++ b/tests/test_add_option_colorize.py 2026-11-04 06:39:52.271871733 +0000
-@@ -1,5 +1,7 @@
- import pytest
-
-+import time
-+
- from loguru import logger
-
- from .conftest import StreamIsattyException, StreamIsattyFalse, StreamIsattyTrue, parse
-@@ -73,3 +75,13 @@
- logger.add(stream, format="<blue>{message}</blue>", colorize=None)
- logger.debug("Message")
- assert stream.getvalue() == "Message\n"
-+
-+
-+def test_search_through_pathological_pattern():
-+ # It's a reDoS if the internal regex is greedy.
-+ logger.add(lambda _: None)
-+ start = time.perf_counter()
-+ logger.opt(colors=True).info("\\" * 200000)
-+ end = time.perf_counter()
-+ elapsed = end - start
-+ assert elapsed < 1.0
diff --git a/README.packit b/README.packit
index 13501e1..d2f4bee 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
-The file was generated using packit 0.104.1.post1.dev2+g8a1a06eb.
+The file was generated using packit 1.17.0.post1.dev7+gd5cdd2e55.
diff --git a/python-loguru.spec b/python-loguru.spec
index 717f379..c557f8f 100644
--- a/python-loguru.spec
+++ b/python-loguru.spec
@@ -1,5 +1,5 @@
Name: python-loguru
-Version: 0.7.3
+Version: 0.8.0
Release: %autorelease
Summary: Python logging made (stupidly) simple
@@ -8,18 +8,6 @@ URL: https://github.com/Delgan/loguru
# The GitHub archive contains CHANGELOG.rst, which the PyPI sdist lacks.
Source: %{url}/archive/%{version}/loguru-%{version}.tar.gz
-# Fix deprecation warning raised by tests with Python 3.14
-# https://github.com/Delgan/loguru/pull/1298
-# Cherry-picked to 0.7.3
-Patch: 0001-Fix-deprecation-warning-raised-by-tests-with-Python-.patch
-# Fix failing "exception_modern" unit test with Python 3.14 (#1331)
-# https://github.com/Delgan/loguru/commit/84023e2bd8339de95250470f422f096edcb8f7b7
-Patch: %{url}/commit/84023e2bd8339de95250470f422f096edcb8f7b7.patch
-# Fix greedy regex causing quadratic scans and possible reDoS
-# https://github.com/Delgan/loguru/commit/4e7762bcb44862fce877b1f90f19063834509575
-# Fixes CVE-2026-120217. Backported to 0.7.3 without the changelog entry.
-Patch: CVE-2026-120217.patch
-
BuildArch: noarch
# The dev extra pins exact versions and includes unwanted coverage tools etc.
diff --git a/sources b/sources
index 946bde7..31c7a2a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (loguru-0.7.3.tar.gz) = 9bceddf7c83a14b4c62e3f48f9dc5d6957e068b4f0a8ce3e83ade0b558acd35dda86372d4c6c7abc489aebac3a3203eca56615c5973f42e15973e85894799fe7
+SHA512 (loguru-0.8.0.tar.gz) = 8940176cc8fa1ff959a3ec92100c9abbd6d6f73a8b0b1bcb9bcd74572b4ab1cf718d5470832ed153c152f0db2be99e04a78f85132acf30d24770d425589a0fd1
reply other threads:[~2026-11-12 19:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179451184092.1.16570963867421827801.rpms-python-loguru-8205ddcfc9c2@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox