From 0671b728866d5636ce2b236269998d1b81ec717a Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Oct 23 2023 23:06:08 +0000 Subject: Update to 8.1.7 Resolves: rhbz#2220975 --- diff --git a/.gitignore b/.gitignore index f3d2053..cd42351 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ /click-8.0.4.tar.gz /click-8.1.2.tar.gz /click-8.1.3.tar.gz +/click-8.1.7.tar.gz diff --git a/pytest-7.3.patch b/pytest-7.3.patch deleted file mode 100644 index 02a277b..0000000 --- a/pytest-7.3.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/tests/test_arguments.py b/tests/test_arguments.py -index 735df4b..3395c55 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 test_bytes_args(runner, monkeypatch): - ), "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, diff --git a/python-click.spec b/python-click.spec index 257306e..2457326 100644 --- a/python-click.spec +++ b/python-click.spec @@ -1,16 +1,12 @@ Name: python-click -Version: 8.1.3 -Release: 5%{?dist} +Version: 8.1.7 +Release: 1%{?dist} Summary: Simple wrapper around optparse for powerful command line utilities License: BSD-3-Clause URL: https://github.com/pallets/click Source0: %{url}/archive/%{version}/click-%{version}.tar.gz -# Fix test failures with pytest 7.3.0 -# From https://github.com/pallets/click/issues/2489#issuecomment-1504160617 by Ran Benita -Patch: pytest-7.3.patch - BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel @@ -58,6 +54,10 @@ sed -i 's|requirements/tests.txt|requirements/tests.in|' tox.ini %changelog +* Wed Aug 23 2023 Charalampos Stratakis - 8.1.7-1 +- Update to 8.1.7 +Resolves: rhbz#2220975 + * Fri Jul 21 2023 Fedora Release Engineering - 8.1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index b2fdf51..c3d8769 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (click-8.1.3.tar.gz) = 29194ee3877e013a2fe1037870522c5b5a78136ca60da9109f29312a3e52c767867f5eec2d90ca385cd0508f77555b9d6ad8f5141dc31900ddc9307a2207a818 +SHA512 (click-8.1.7.tar.gz) = a1cb115b90193d78f94ec2a6af563b089820517e6e0e4b71ea3d6c68304444d16db3597358c62e1757d9d05449996b7168a220eecde6ab4991367fdb6e74096f