Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-click for openSUSE:Factory checked in at 2026-06-17 16:17:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-click (Old) and /work/SRC/openSUSE:Factory/.python-click.new.1981 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click" Wed Jun 17 16:17:19 2026 rev:33 rq:1359491 version:8.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-click/python-click.changes 2026-05-12 19:28:57.956800679 +0200 +++ /work/SRC/openSUSE:Factory/.python-click.new.1981/python-click.changes 2026-06-17 16:18:04.386445354 +0200 @@ -1,0 +2,95 @@ +Mon Jun 15 07:40:40 UTC 2026 - Daniel Garcia <[email protected]> + +- Update to 8.4.1: + * get_parameter_source() is available during eager callbacks and + type conversion again. + * Zsh completion scripts parse correctly on Windows. + * Shell completion of Enum values used as Choice options produces a + valid completion result. + * Fix empty byte-string handling in echo. + * Fix closed file error with echo_via_pager. + * Fix open_url on Windows when the file path contains spaces. + +Version 8.4.0: + * ParamType typing improvements. + - ParamType is now a generic abstract base class, parameterized by + its converted value type. + - ~ParamType.convert return types are narrowed on all concrete + types (str for STRING, int for INT, etc.). + - ~ParamType.to_info_dict returns specific ~typing.TypedDict + subclasses instead of dict[str, Any]. + - CompositeParamType and the number-range base are now generic + with abstract methods. + * Refactor convert_type to extract type inference into a private + _guess_type helper, and add typing.overload signatures. + * Parameter typing improvements. + - Parameter is now an abstract base class, making explicit that it + cannot be instantiated directly. + - Parameter.name is now str instead of str | None. When + expose_value=False, the name is set to "" instead of None. + - The ctx parameter of Parameter.get_error_hint is now typed + as Context | None, matching the runtime behavior. + * Split string values from default_map for parameters with nargs > 1 + or Tuple type, matching environment variable behavior. + * Auto-detect type=UNPROCESSED for flag_value of non-basic types + (not str, int, float, or bool), so programmer-provided Python + objects like classes and enum members are passed through unchanged + instead of being stringified. Previously type=click.UNPROCESSED + had to be set explicitly. + * The error hint now uses Command.get_help_option_names to + pick non-shadowed help option names, so Try '... -h' no longer + points to a subcommand option that shadows -h. The longest + surviving name is shown (--help over -h) for readability. + * Fix readline functionality on non-Windows platforms. Prompt text + is now passed directly to readline instead of being printed + separately, allowing proper backspace, line editing, and line + wrapping behavior. + * Use os.startfile on Windows to open URLs in open_url, + replacing the start built-in which cannot be invoked without + shell=True. + * Fix Fish shell completion errors when option help text contains + newlines. + * Add NoSuchCommand exception with suggestions for misspelled + commands. + * Use ValueError message when conversion in FuncParamType would + fail. + * Add click.get_pager_file for file-like access to an output pager. + * ~click.formatting.wrap_text now measures line width in visible + characters, ignoring ANSI escape sequences. + * Fix HelpFormatter.write_usage emitting only a blank line + when called without args. The usage prefix and program name are + now written even when no arguments follow, and the trailing + separator space is stripped so the line ends at the program name. + * Show custom error messages from types when prompt with + hide_input=True fails validation, instead of always showing a + generic message. Built-in type messages mask the input value. + * Add capture parameter to CliRunner with two modes: sys + (default) and fd. fd redirects file descriptors 1 and 2 via + os.dup2 so output that bypasses sys.stdout (stale stream + references, C extensions, subprocesses, faulthandler) is captured + with proper isolation. + * Revert the 8.3.3 change that exposed the original file descriptor + via fileno() on the redirected CliRunner streams in the default + capture mode. os.dup2(w, sys.stdout.fileno()) calls inside a CLI + no longer mutate the host runner's stdout, which broke Pytest's + fd-level capture teardown. C-level consumers that need a real fd + should use capture="fd". + * Mark additional built-in strings with gettext() to extend + translation coverage. + * Fix feature switch groups (several flag_value options sharing one + parameter name) silently dropping an explicit default when a + sibling option without an explicit default was declared first. + Arbitration is now source-aware: a more explicit + ParameterSource always wins, and within + ParameterSource.DEFAULT, an option that received an explicit + default= keyword wins over a sibling whose default was + auto-derived. The 8.3.x first-wins fallback for remaining ties was + reverted to the pre-8.3.x last-wins fallback. + * Fix missing space between option help text and the (DEPRECATED) + label, and localize the option label so it matches the command + label. The label and the DeprecationWarning reason suffix are now + produced by shared helpers. + * Document short option stacking (-abc is parsed as -a -b -c) and + clarify that multi-character short option names are not supported. + +------------------------------------------------------------------- Old: ---- click-8.3.3.tar.gz New: ---- click-8.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-click.spec ++++++ --- /var/tmp/diff_new_pack.gSfXYo/_old 2026-06-17 16:18:05.066473807 +0200 +++ /var/tmp/diff_new_pack.gSfXYo/_new 2026-06-17 16:18:05.066473807 +0200 @@ -27,7 +27,7 @@ %{?pythons_for_pypi} %{?sle15_python_module_pythons} Name: python-click%{psuffix} -Version: 8.3.3 +Version: 8.4.1 Release: 0 Summary: A wrapper around optparse for command line utilities License: BSD-3-Clause @@ -68,7 +68,8 @@ %check %if %{with test} export LANG=en_US.UTF-8 -%pytest -rs --tb=short +donttest="test_echo_via_pager" +%pytest -rs --tb=short --basetemp=tmpdir -k "not ($donttest)" %endif %if %{without test} ++++++ click-8.3.3.tar.gz -> click-8.4.1.tar.gz ++++++ ++++ 6820 lines of diff (skipped)
