Update to 8.1.7
Resolves: rhbz#2220975
This commit is contained in:
parent
81e1038480
commit
0671b72886
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
||||
@ -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,
|
||||
@ -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 <cstratak@redhat.com> - 8.1.7-1
|
||||
- Update to 8.1.7
|
||||
Resolves: rhbz#2220975
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.3-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (click-8.1.3.tar.gz) = 29194ee3877e013a2fe1037870522c5b5a78136ca60da9109f29312a3e52c767867f5eec2d90ca385cd0508f77555b9d6ad8f5141dc31900ddc9307a2207a818
|
||||
SHA512 (click-8.1.7.tar.gz) = a1cb115b90193d78f94ec2a6af563b089820517e6e0e4b71ea3d6c68304444d16db3597358c62e1757d9d05449996b7168a220eecde6ab4991367fdb6e74096f
|
||||
|
||||
Loading…
Reference in New Issue
Block a user