diff --git a/click-8.2.1-clirunner.patch b/click-8.2.1-clirunner.patch index 0a0727c..3663ded 100644 --- a/click-8.2.1-clirunner.patch +++ b/click-8.2.1-clirunner.patch @@ -27,31 +27,31 @@ Restore previous implementation of a test broken by changes of 262bdf0. Fixes #2939. --- - CHANGES.rst | 5 +++++ - src/click/testing.py | 17 ++++++++--------- - tests/test_chain.py | 4 ++-- + CHANGES.rst | 5 +++++ + src/click/testing.py | 17 ++++++++--------- + tests/test_chain.py | 4 ++-- 3 files changed, 15 insertions(+), 11 deletions(-) -Index: click-8.2.2/CHANGES.rst -=================================================================== ---- click-8.2.2.orig/CHANGES.rst 2025-07-30 06:32:01.000000000 +0200 -+++ click-8.2.2/CHANGES.rst 2025-08-08 21:03:56.929349331 +0200 +diff --git a/CHANGES.rst b/CHANGES.rst +index 1b8af9a5f..decdc2d91 100644 +--- a/CHANGES.rst ++++ b/CHANGES.rst @@ -1,5 +1,10 @@ .. currentmodule:: click -+Version 8.2.3 ++Version 8.2.2 +------------- + +- 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 -=================================================================== ---- click-8.2.2.orig/src/click/testing.py 2025-07-30 06:32:01.000000000 +0200 -+++ click-8.2.2/src/click/testing.py 2025-08-08 21:03:10.999298055 +0200 -@@ -128,13 +128,6 @@ +diff --git a/src/click/testing.py b/src/click/testing.py +index 7c0e8741e..e57eacc5d 100644 +--- a/src/click/testing.py ++++ b/src/click/testing.py +@@ -116,13 +116,6 @@ def name(self) -> str: def mode(self) -> str: return self._mode @@ -65,7 +65,7 @@ Index: click-8.2.2/src/click/testing.py def make_input_stream( 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 def visible_input(prompt: str | None = None) -> str: 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.flush() 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: sys.stdout.write(f"{prompt or ''}\n") sys.stdout.flush() @@ -89,11 +89,11 @@ Index: click-8.2.2/src/click/testing.py @_pause_echo(echo_input) # type: ignore def _getchar(echo: bool) -> str: -Index: click-8.2.2/tests/test_chain.py -=================================================================== ---- click-8.2.2.orig/tests/test_chain.py 2025-07-30 06:32:01.000000000 +0200 -+++ click-8.2.2/tests/test_chain.py 2025-08-08 21:03:10.999484673 +0200 -@@ -163,8 +163,8 @@ +diff --git a/tests/test_chain.py b/tests/test_chain.py +index ba11b7e2a..702eaaa3e 100644 +--- a/tests/test_chain.py ++++ b/tests/test_chain.py +@@ -163,8 +163,8 @@ def processor(iterator): return processor result = runner.invoke(cli, args, input=input) diff --git a/click-8.2.1.tar.gz b/click-8.2.1.tar.gz new file mode 100644 index 0000000..e5429d5 --- /dev/null +++ b/click-8.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202 +size 286342 diff --git a/click-8.2.2.tar.gz b/click-8.2.2.tar.gz deleted file mode 100644 index 93d1c94..0000000 --- a/click-8.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:068616e6ef9705a07b6db727cb9c248f4eb9dae437a30239f56fa94b18b852ef -size 263977 diff --git a/python-click.changes b/python-click.changes index 81cd1ef..de41918 100644 --- a/python-click.changes +++ b/python-click.changes @@ -1,24 +1,3 @@ -------------------------------------------------------------------- -Fri Aug 8 19:00:26 UTC 2025 - Matej Cepl - -- 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 diff --git a/python-click.spec b/python-click.spec index 63f2dac..0dfb2df 100644 --- a/python-click.spec +++ b/python-click.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-click -Version: 8.2.2 +Version: 8.2.1 Release: 0 Summary: A wrapper around optparse for command line utilities License: BSD-3-Clause