14
0
forked from pool/python-click

Accepting request 1298502 from devel:languages:python

revert

OBS-URL: https://build.opensuse.org/request/show/1298502
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=63
This commit is contained in:
2025-08-09 07:08:18 +00:00
committed by Git OBS Bridge
parent 2e57123d7f
commit cf928ff2b3
5 changed files with 26 additions and 47 deletions

View File

@@ -32,26 +32,26 @@ Fixes #2939.
tests/test_chain.py | 4 ++-- tests/test_chain.py | 4 ++--
3 files changed, 15 insertions(+), 11 deletions(-) 3 files changed, 15 insertions(+), 11 deletions(-)
Index: click-8.2.2/CHANGES.rst diff --git a/CHANGES.rst b/CHANGES.rst
=================================================================== index 1b8af9a5f..decdc2d91 100644
--- click-8.2.2.orig/CHANGES.rst 2025-07-30 06:32:01.000000000 +0200 --- a/CHANGES.rst
+++ click-8.2.2/CHANGES.rst 2025-08-08 21:03:56.929349331 +0200 +++ b/CHANGES.rst
@@ -1,5 +1,10 @@ @@ -1,5 +1,10 @@
.. currentmodule:: click .. currentmodule:: click
+Version 8.2.3 +Version 8.2.2
+------------- +-------------
+ +
+- Fix regression related to EOF handling in CliRunner. :issue:`2939` +- Fix regression related to EOF handling in CliRunner. :issue:`2939`
+ +
Version 8.2.2 Version 8.2.1
------------- -------------
Index: click-8.2.2/src/click/testing.py diff --git a/src/click/testing.py b/src/click/testing.py
=================================================================== index 7c0e8741e..e57eacc5d 100644
--- click-8.2.2.orig/src/click/testing.py 2025-07-30 06:32:01.000000000 +0200 --- a/src/click/testing.py
+++ click-8.2.2/src/click/testing.py 2025-08-08 21:03:10.999298055 +0200 +++ b/src/click/testing.py
@@ -128,13 +128,6 @@ @@ -116,13 +116,6 @@ def name(self) -> str:
def mode(self) -> str: def mode(self) -> str:
return self._mode return self._mode
@@ -65,7 +65,7 @@ Index: click-8.2.2/src/click/testing.py
def make_input_stream( def make_input_stream(
input: str | bytes | t.IO[t.Any] | None, charset: str input: str | bytes | t.IO[t.Any] | None, charset: str
@@ -360,7 +353,10 @@ @@ -348,7 +341,10 @@ def isolation(
@_pause_echo(echo_input) # type: ignore @_pause_echo(echo_input) # type: ignore
def visible_input(prompt: str | None = None) -> str: def visible_input(prompt: str | None = None) -> str:
sys.stdout.write(prompt or "") sys.stdout.write(prompt or "")
@@ -77,7 +77,7 @@ Index: click-8.2.2/src/click/testing.py
sys.stdout.write(f"{val}\n") sys.stdout.write(f"{val}\n")
sys.stdout.flush() sys.stdout.flush()
return val return val
@@ -369,7 +365,10 @@ @@ -357,7 +353,10 @@ def visible_input(prompt: str | None = None) -> str:
def hidden_input(prompt: str | None = None) -> str: def hidden_input(prompt: str | None = None) -> str:
sys.stdout.write(f"{prompt or ''}\n") sys.stdout.write(f"{prompt or ''}\n")
sys.stdout.flush() sys.stdout.flush()
@@ -89,11 +89,11 @@ Index: click-8.2.2/src/click/testing.py
@_pause_echo(echo_input) # type: ignore @_pause_echo(echo_input) # type: ignore
def _getchar(echo: bool) -> str: def _getchar(echo: bool) -> str:
Index: click-8.2.2/tests/test_chain.py diff --git a/tests/test_chain.py b/tests/test_chain.py
=================================================================== index ba11b7e2a..702eaaa3e 100644
--- click-8.2.2.orig/tests/test_chain.py 2025-07-30 06:32:01.000000000 +0200 --- a/tests/test_chain.py
+++ click-8.2.2/tests/test_chain.py 2025-08-08 21:03:10.999484673 +0200 +++ b/tests/test_chain.py
@@ -163,8 +163,8 @@ @@ -163,8 +163,8 @@ def processor(iterator):
return processor return processor
result = runner.invoke(cli, args, input=input) result = runner.invoke(cli, args, input=input)

BIN
click-8.2.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:068616e6ef9705a07b6db727cb9c248f4eb9dae437a30239f56fa94b18b852ef
size 263977

View File

@@ -1,24 +1,3 @@
-------------------------------------------------------------------
Fri Aug 8 19:00:26 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 8.2.2:
- Fix reconciliation of default, flag_value and type parameters
for flag options, as well as parsing and normalization of
environment variables. #2952 #2956
- Fix typing issue in BadParameter and MissingParameter
exceptions for the parameter param_hint that did not allow
for a sequence of string where the underlying functino
_join_param_hints allows for it. #2777 #2990
- Use the value of Enum choices to render their default value
in help screen. #2911 #3004
- Fix completion for the Z shell (zsh) for completion items
containing colons. #2703 #2846
- Don't include envvar in error hint when not configured. #2971
#2972
- Fix a rare race in click.testing.StreamMixer's finalization
that manifested as a ValueError on close in a multi-threaded
test session. #2993 #2991
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 8 15:09:58 UTC 2025 - Friedrich Haubensak <hsk17@mail.de> Tue Jun 8 15:09:58 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-click # spec file for package python-click
# #
# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-click Name: python-click
Version: 8.2.2 Version: 8.2.1
Release: 0 Release: 0
Summary: A wrapper around optparse for command line utilities Summary: A wrapper around optparse for command line utilities
License: BSD-3-Clause License: BSD-3-Clause