b58ad09343
Accepting request 1329782 from devel:languages:python
Ana Guerrero2026-01-30 17:22:04 +00:00
2b8584ddf6
- Run tests in a subpackage, this allows to exclude build in different distributions
Daniel Garcia2026-01-29 09:08:14 +00:00
6b3e4fd94e
Accepting request 1318239 from devel:languages:python
Ana Guerrero2025-11-18 14:29:24 +00:00
09a5d07652
Accepting request 1318181 from home:glaubitz:branches:devel:languages:python
Nico Krapp2025-11-17 13:42:26 +00:00
f974bad4e3
Accepting request 1307244 from devel:languages:python
Ana Guerrero2025-09-26 20:24:20 +00:00
3b8ac119aa
- Update to 8.3.0: * Improved flag option handling: Reworked the relationship between flag_value and default parameters for better consistency. * Show correct auto complete value for nargs option in combination with flag option. * Fix handling of quoted and escaped parameters in Fish autocompletion. * Properly forward exception information to resources registered with click.core.Context.with_resource(). * Fix regression related to EOF handling in CliRunner. - Drop patch click-8.2.1-clirunner.patch, included upstream.
Steve Kowalik2025-09-26 04:28:28 +00:00
d3b24f2fab
Revert to 8.2.1, version 8.2.2 was yanked because Unintended change in behavior of boolean options and None https://pypi.org/project/click/8.2.2/ (and if I read osc log I would know dgarcia did this already)
Matej Cepl2025-08-09 07:10:28 +00:00
b4cad15be8
Accepting request 1298502 from devel:languages:python
Matej Cepl2025-08-09 07:08:18 +00:00
e6f00b4efc
- 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#2991Matej Cepl2025-08-08 19:05:29 +00:00
9cca5a93ea
Accepting request 1298127 from devel:languages:python
Daniel Garcia2025-08-07 11:42:35 +00:00
855f7206ce
Accepting request 1297475 from home:nkrapp:branches:devel:languages:python
Matej Cepl2025-08-05 18:43:12 +00:00
0c0c4c0a4d
- Update to 8.2.1: * Fix flag value handling for flag options with a provided type. #2894#2897 * Fix shell completion for nested groups. #2906 * Flush sys.stderr at the end of CliRunner.invoke. #2682 * Fix EOF handling for stdin input in CliRunner. #2787 - Update URL.
Steve Kowalik2025-05-21 07:16:56 +00:00
f3ba1fd1b0
- Update to 8.2.1: * Fix flag value handling for flag options with a provided type. #2894#2897 * Fix shell completion for nested groups. #2906 * Flush sys.stderr at the end of CliRunner.invoke. #2682 * Fix EOF handling for stdin input in CliRunner. #2787 - Update URL.
Steve Kowalik2025-05-21 07:16:56 +00:00
f0145b331e
re-format changelog as requested in request#1276563
Markéta Machová2025-05-13 06:23:34 +00:00
b2c55e71bc
Accepting request 1276957 from home:sebix:branches:devel:languages:python
Markéta Machová2025-05-13 06:23:34 +00:00
768aeeb63b
- Update to version 8.2.0: - Drop support for Python 3.7, 3.8, and 3.9. :pr:2588 :pr:2893 - Use modern packaging metadata with `pyproject.toml instead of setup.cfg. :pr:2438 - Use flit_core instead of setuptools as build backend. :pr:2543 - Deprecate the __version__ attribute. Use feature detection, or importlib.metadata.version("click"), instead. :issue:2598 - BaseCommand is deprecated. Command is the base class for all commands. :issue:2589 - MultiCommand is deprecated. Group is the base class for all group commands. :issue:2590 - The current parser and related classes and methods, are deprecated. :issue:2205 - OptionParser and the parser module, which is a modified copy of optparse in the standard library. - Context.protected_args is unneeded. Context.args contains any remaining arguments while parsing. - Parameter.add_to_parser (on both Argument and Option) is unneeded. Parsing works directly without building a separate parser. - split_arg_string is moved from parser to shell_completion. - Enable deferred evaluation of annotations with from __future__ import annotations. :pr:2270 - When generating a command's name from a decorated function's name, the suffixes _command, _cmd, _group, and _grp are removed. :issue:2322 - Show the types.ParamType.name for types.Choice options within --help message if show_choices=False is specified. :issue:2356 - Do not display default values in prompts when Option.show_default is False. :pr:2509`
Matej Cepl2025-05-12 06:35:29 +00:00
3505ab6552
Accepting request 1276563 from home:sebix:branches:devel:languages:python
Matej Cepl2025-05-12 06:35:29 +00:00
ad1dcc2cb6
Accepting request 1244737 from devel:languages:python
Markéta Machová2025-02-10 12:08:16 +00:00
0a2f1f46b6
Accepting request 1244737 from devel:languages:python
Markéta Machová2025-02-10 12:08:16 +00:00
62ff4bdfc3
Accepting request 1243308 from home:mcalabkova:branches:devel:languages:python
Dirk Mueller2025-02-05 15:41:13 +00:00
c8bc8cf0e3
Accepting request 1243308 from home:mcalabkova:branches:devel:languages:python
Dirk Mueller2025-02-05 15:41:13 +00:00
0058dc70a6
Accepting request 1236135 from devel:languages:python
Ana Guerrero2025-01-12 10:10:10 +00:00
9148922ae6
Accepting request 1236135 from devel:languages:python
Ana Guerrero2025-01-12 10:10:10 +00:00
841eec754e
- Update to 8.1.8 * Fix an issue with type hints for `click.open_file(). :issue:2717 * Fix issue where error message for invalid click.Path displays on multiple lines. :issue:2697 * Fixed issue that prevented a default value of "" from being displayed in the help for an option. :issue:2500 * The test runner handles stripping color consistently on Windows. :issue:2705 * Show correct value for flag default when using default_map. :issue:2632 * Fix click.echo(color=...) passing color to coloroma so it can be forced on Windows. :issue:2606`. - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install * Update name for dist directory in %files section - Update BuildRequires from pyproject.toml
Nico Krapp2025-01-09 10:00:31 +00:00
4544d66a07
Accepting request 1236118 from home:glaubitz:branches:devel:languages:python
Nico Krapp2025-01-09 10:00:31 +00:00
8ff7a7f8df
Accepting request 1109509 from devel:languages:python
Ana Guerrero2023-09-08 19:14:58 +00:00
6c97e0ff17
Accepting request 1109509 from devel:languages:python
Ana Guerrero2023-09-08 19:14:58 +00:00
c00a0b7141
- update to 8.1.7: * Fix issue with regex flags in shell completion. * Bash version detection issues a warning instead of an error. * Fix issue with completion script for Fish shell. - Update to version 4.1
Dirk Mueller2023-09-07 10:59:41 +00:00
5c069b5b49
- update to 8.1.7: * Fix issue with regex flags in shell completion. * Bash version detection issues a warning instead of an error. * Fix issue with completion script for Fish shell. - Update to version 4.1
Dirk Mueller2023-09-07 10:59:41 +00:00
f950effb5d
- update to 8.0.4: * `open_file recognizes Path("-") as a standard stream, the same as the string "-". :issue:2106 * The option and argument decorators preserve the type annotation of the decorated function. :pr:2155 * A callable default value can customize its help text by overriding __str__ instead of always showing (dynamic). :issue:2099 * Fix a typo in the Bash completion script that affected file and directory completion. If this script was generated by a previous version, it should be regenerated. :issue:2163 * Fix typing for echo and secho` file argument.
Dirk Mueller2022-03-27 11:03:10 +00:00
c4f1ef1c42
- update to 8.0.4: * `open_file recognizes Path("-") as a standard stream, the same as the string "-". :issue:2106 * The option and argument decorators preserve the type annotation of the decorated function. :pr:2155 * A callable default value can customize its help text by overriding __str__ instead of always showing (dynamic). :issue:2099 * Fix a typo in the Bash completion script that affected file and directory completion. If this script was generated by a previous version, it should be regenerated. :issue:2163 * Fix typing for echo and secho` file argument.
Dirk Mueller2022-03-27 11:03:10 +00:00
3fc27ed0ee
- update to 8.0.3: * Fix issue with `Path(resolve_path=True) type creating invalid paths. :issue:2088 * Importing readline does not cause the confirm() prompt to disappear when pressing backspace. :issue:2092 * Any default values injected by invoke() are cast to the corresponding parameter's type. :issue:2089, 2090 * is_bool_flag is not set to True if is_flag is False. * Bash version detection is locale independent. :issue:1940 * Empty default value is not shown for multiple=True. * Fix shell completion for arguments that start with a forward slash such as absolute file paths. :issue:1929 * Path type with resolve_path=True resolves relative symlinks to be relative to the containing directory. :issue:1921 * Completion does not skip Python's resource cleanup when exiting, avoiding some unexpected warning output. :issue:1738, 2017 * Fix type annotation for type argument in prompt function. * Fix overline and italic styles, which were incorrectly added when adding underline. :pr:2058 * An option with count=True will not show "[x>=0]" in help text. * Default values are not cast to the parameter type twice during processing. * Options with multiple and flag_value` use the flag value instead of leaving an internal placeholder.
Dirk Mueller2021-10-16 21:20:06 +00:00
065f0b714f
- update to 8.0.3: * Fix issue with `Path(resolve_path=True) type creating invalid paths. :issue:2088 * Importing readline does not cause the confirm() prompt to disappear when pressing backspace. :issue:2092 * Any default values injected by invoke() are cast to the corresponding parameter's type. :issue:2089, 2090 * is_bool_flag is not set to True if is_flag is False. * Bash version detection is locale independent. :issue:1940 * Empty default value is not shown for multiple=True. * Fix shell completion for arguments that start with a forward slash such as absolute file paths. :issue:1929 * Path type with resolve_path=True resolves relative symlinks to be relative to the containing directory. :issue:1921 * Completion does not skip Python's resource cleanup when exiting, avoiding some unexpected warning output. :issue:1738, 2017 * Fix type annotation for type argument in prompt function. * Fix overline and italic styles, which were incorrectly added when adding underline. :pr:2058 * An option with count=True will not show "[x>=0]" in help text. * Default values are not cast to the parameter type twice during processing. * Options with multiple and flag_value` use the flag value instead of leaving an internal placeholder.
Dirk Mueller2021-10-16 21:20:06 +00:00
c6c4936c46
- update to 7.1.2: Revert applying shell quoting to commands for `echo_with_pager and edit. This was intended to allows spaces in commands, but caused issues if the string was actually a command and arguments, or on Windows. Instead, the string must be quoted manually as it should appear on the command line. :issue:1514`
Dirk Mueller2020-06-03 11:15:50 +00:00
17b6d8068c
- update to 7.1.2: Revert applying shell quoting to commands for `echo_with_pager and edit. This was intended to allows spaces in commands, but caused issues if the string was actually a command and arguments, or on Windows. Instead, the string must be quoted manually as it should appear on the command line. :issue:1514`
Dirk Mueller2020-06-03 11:15:50 +00:00