Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-click for openSUSE:Factory 
checked in at 2023-05-09 13:06:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-click (Old)
 and      /work/SRC/openSUSE:Factory/.python-click.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-click"

Tue May  9 13:06:53 2023 rev:20 rq:1085129 version:8.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-click/python-click.changes        
2023-04-22 22:03:40.430369153 +0200
+++ /work/SRC/openSUSE:Factory/.python-click.new.1533/python-click.changes      
2023-05-09 13:07:05.084930597 +0200
@@ -1,0 +2,5 @@
+Fri May  5 13:41:09 UTC 2023 - Markéta Machová <mmach...@suse.com>
+
+- add fix-tests.patch to fix tests with new versions of python packages
+
+-------------------------------------------------------------------

New:
----
  fix-tests.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-click.spec ++++++
--- /var/tmp/diff_new_pack.UzkDWn/_old  2023-05-09 13:07:06.444938692 +0200
+++ /var/tmp/diff_new_pack.UzkDWn/_new  2023-05-09 13:07:06.448938716 +0200
@@ -27,6 +27,9 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/mitsuhiko/click
 Source:         
https://files.pythonhosted.org/packages/source/c/click/click-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM 
https://github.com/pallets/click/commit/6e05e1fa1c2804410f9916b27edc07076e3b156d
 Update dependencies using pip-compile-multi (#2508)
+# our tests were failing in a staging because of some new version and upstream 
came across the issue while updating dependencies, hence the weird commit 
message
+Patch:          fix-tests.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
@@ -45,7 +48,7 @@
 defaults out of the box.
 
 %prep
-%setup -q -n click-%{version}
+%autosetup -p1 -n click-%{version}
 
 %build
 %python_build

++++++ fix-tests.patch ++++++
>From 6e05e1fa1c2804410f9916b27edc07076e3b156d Mon Sep 17 00:00:00 2001
From: Sagi Buchbinder-Shadur <saro...@gmail.com>
Date: Wed, 3 May 2023 11:16:59 -0400
Subject: [PATCH] Update dependencies using pip-compile-multi (#2508)

---
 requirements/build.txt  | 14 +++++++-------
 requirements/dev.txt    | 38 ++++++++++++++++++--------------------
 requirements/docs.txt   | 38 +++++++++++++++++++-------------------
 requirements/tests.txt  | 12 ++++++------
 tests/test_arguments.py |  6 +++++-
 5 files changed, 55 insertions(+), 53 deletions(-)

diff --git a/tests/test_arguments.py b/tests/test_arguments.py
index 735df4b53..3395c552b 100644
--- a/tests/test_arguments.py
+++ b/tests/test_arguments.py
@@ -1,4 +1,5 @@
 import sys
+from unittest import mock
 
 import pytest
 
@@ -86,9 +87,12 @@ def from_bytes(arg):
         ), "UTF-8 encoded argument should be implicitly converted to Unicode"
 
     # Simulate empty locale environment variables
-    monkeypatch.setattr(sys.stdin, "encoding", "utf-8")
     monkeypatch.setattr(sys, "getfilesystemencoding", lambda: "utf-8")
     monkeypatch.setattr(sys, "getdefaultencoding", lambda: "utf-8")
+    # sys.stdin.encoding is readonly, needs some extra effort to patch.
+    stdin = mock.Mock(wraps=sys.stdin)
+    stdin.encoding = "utf-8"
+    monkeypatch.setattr(sys, "stdin", stdin)
 
     runner.invoke(
         from_bytes,

Reply via email to