14
0
forked from pool/python-click

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=62
This commit is contained in:
2025-08-08 19:05:29 +00:00
committed by Git OBS Bridge
parent 6a97cf7226
commit 2e57123d7f
5 changed files with 47 additions and 26 deletions

View File

@@ -27,31 +27,31 @@ Restore previous implementation of a test broken by changes of 262bdf0.
Fixes #2939. Fixes #2939.
--- ---
CHANGES.rst | 5 +++++ CHANGES.rst | 5 +++++
src/click/testing.py | 17 ++++++++--------- src/click/testing.py | 17 ++++++++---------
tests/test_chain.py | 4 ++-- tests/test_chain.py | 4 ++--
3 files changed, 15 insertions(+), 11 deletions(-) 3 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/CHANGES.rst b/CHANGES.rst Index: click-8.2.2/CHANGES.rst
index 1b8af9a5f..decdc2d91 100644 ===================================================================
--- a/CHANGES.rst --- click-8.2.2.orig/CHANGES.rst 2025-07-30 06:32:01.000000000 +0200
+++ b/CHANGES.rst +++ click-8.2.2/CHANGES.rst 2025-08-08 21:03:56.929349331 +0200
@@ -1,5 +1,10 @@ @@ -1,5 +1,10 @@
.. currentmodule:: click .. currentmodule:: click
+Version 8.2.2 +Version 8.2.3
+------------- +-------------
+ +
+- Fix regression related to EOF handling in CliRunner. :issue:`2939` +- Fix regression related to EOF handling in CliRunner. :issue:`2939`
+ +
Version 8.2.1 Version 8.2.2
------------- -------------
diff --git a/src/click/testing.py b/src/click/testing.py Index: click-8.2.2/src/click/testing.py
index 7c0e8741e..e57eacc5d 100644 ===================================================================
--- a/src/click/testing.py --- click-8.2.2.orig/src/click/testing.py 2025-07-30 06:32:01.000000000 +0200
+++ b/src/click/testing.py +++ click-8.2.2/src/click/testing.py 2025-08-08 21:03:10.999298055 +0200
@@ -116,13 +116,6 @@ def name(self) -> str: @@ -128,13 +128,6 @@
def mode(self) -> str: def mode(self) -> str:
return self._mode return self._mode
@@ -65,7 +65,7 @@ index 7c0e8741e..e57eacc5d 100644
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
@@ -348,7 +341,10 @@ def isolation( @@ -360,7 +353,10 @@
@_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 7c0e8741e..e57eacc5d 100644
sys.stdout.write(f"{val}\n") sys.stdout.write(f"{val}\n")
sys.stdout.flush() sys.stdout.flush()
return val return val
@@ -357,7 +353,10 @@ def visible_input(prompt: str | None = None) -> str: @@ -369,7 +365,10 @@
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 7c0e8741e..e57eacc5d 100644
@_pause_echo(echo_input) # type: ignore @_pause_echo(echo_input) # type: ignore
def _getchar(echo: bool) -> str: def _getchar(echo: bool) -> str:
diff --git a/tests/test_chain.py b/tests/test_chain.py Index: click-8.2.2/tests/test_chain.py
index ba11b7e2a..702eaaa3e 100644 ===================================================================
--- a/tests/test_chain.py --- click-8.2.2.orig/tests/test_chain.py 2025-07-30 06:32:01.000000000 +0200
+++ b/tests/test_chain.py +++ click-8.2.2/tests/test_chain.py 2025-08-08 21:03:10.999484673 +0200
@@ -163,8 +163,8 @@ def processor(iterator): @@ -163,8 +163,8 @@
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)

Binary file not shown.

3
click-8.2.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
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 # Copyright (c) 2025 SUSE LLC and contributors
# #
# 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.1 Version: 8.2.2
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