Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-flasgger for openSUSE:Factory
checked in at 2025-05-23 14:27:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flasgger (Old)
and /work/SRC/openSUSE:Factory/.python-flasgger.new.2732 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flasgger"
Fri May 23 14:27:07 2025 rev:11 rq:1277022 version:0.9.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flasgger/python-flasgger.changes
2025-01-29 16:09:52.954231291 +0100
+++
/work/SRC/openSUSE:Factory/.python-flasgger.new.2732/python-flasgger.changes
2025-05-23 14:27:12.932105397 +0200
@@ -1,0 +2,6 @@
+Tue May 13 06:49:59 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Add patch support-click-8.2.patch:
+ * Support click 8.2+.
+
+-------------------------------------------------------------------
New:
----
support-click-8.2.patch
BETA DEBUG BEGIN:
New:
- Add patch support-click-8.2.patch:
* Support click 8.2+.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flasgger.spec ++++++
--- /var/tmp/diff_new_pack.pkaPJB/_old 2025-05-23 14:27:14.508171989 +0200
+++ /var/tmp/diff_new_pack.pkaPJB/_new 2025-05-23 14:27:14.520172497 +0200
@@ -35,6 +35,8 @@
Source:
https://files.pythonhosted.org/packages/source/f/flasgger/flasgger-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Based on gh#flasgger/flasgger#629
Patch0: remove-six.patch
+# PATCH-FIX-UPSTREAM gh#flasgger/flasgger#633
+Patch1: support-click-8.2.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
++++++ support-click-8.2.patch ++++++
>From 08591b60e988c0002fcf1b1e9f98b78e041d2732 Mon Sep 17 00:00:00 2001
From: Colin Watson <[email protected]>
Date: Tue, 4 Mar 2025 10:13:55 +0000
Subject: [PATCH] Fix tests with Click 8.2
https://github.com/pallets/click/pull/2523 introduced changes to
`click.testing` that broke a few unit tests in Flasgger:
`mix_stderr=False` is now effectively the default and can no longer be
specified explicitly. Although this Click version hasn't been fully
released yet, this adjusts Flasgger to work with both old and new
versions.
---
tests/conftest.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index bb83d682..5acb4923 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,7 +1,9 @@
+import inspect
import json
import random
import pytest
+from click.testing import CliRunner
from flasgger import Swagger
from flasgger.utils import get_examples
@@ -99,4 +101,8 @@ def app():
@pytest.fixture(scope="function")
def cli_runner(app):
- yield app.test_cli_runner(mix_stderr=False)
+ kwargs = {}
+ if "mix_stderr" in inspect.signature(CliRunner).parameters:
+ # click < 8.2
+ kwargs["mix_stderr"] = False
+ yield app.test_cli_runner(**kwargs)