- 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.
- Update to version 8.2.0:
* Drop support for Python 3.7, 3.8, and 3.9. #2588#2893
* Use modern packaging metadata with pyproject.toml instead of setup.cfg.
#2438
* Use flit_core instead of setuptools as build backend. #2543
* Deprecate the __version__ attribute. Use feature detection, or
importlib.metadata.version("click"), instead. #2598
* BaseCommand is deprecated. Command is the base class for all
commands. #2589
* MultiCommand is deprecated. Group is the base class for all group
commands. #2590
* The current parser and related classes and methods, are deprecated.
#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. #2270
OBS-URL: https://build.opensuse.org/request/show/1278968
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-click?expand=0&rev=24
- 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`
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=54
- Update to 8.2.0
* Drop support for Python 3.7.
* BaseCommand is deprecated. Command is the base class for all commands.
* MultiCommand is deprecated. Group is the base class for all group commands.
* The current parser and related classes and methods, are deprecated.
* Enable deferred evaluation of annotations with from __future__ import annotations.
* When generating a command's name from a decorated function's name, the suffixes
_command, _cmd, _group, and _grp are removed.
* Add a catch_exceptions parameter to CliRunner. If catch_exceptions is not passed
to CliRunner.invoke, the value from CliRunner.
* Option.flag_value will no longer have a default value set based on Option.default
if Option.is_flag is False.
* Choice is now generic and supports any iterable value. This allows you to use
enums and other non-str values.
OBS-URL: https://build.opensuse.org/request/show/1243308
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=52
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=50
- 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.
OBS-URL: https://build.opensuse.org/request/show/925757
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-click?expand=0&rev=15
- update to version 7.0:
* Drop support for Python 2.6 and 3.3.
* Wrap ``click.Choice``'s missing message.
* Add native ZSH autocompletion support.
* Document that ANSI color info isn't parsed from bytearrays in
Python 2.
* Document byte-stripping behavior of ``CliRunner``.
* Usage errors now hint at the ``--help`` option.
* Implement streaming pager.
* Extract bar formatting to its own method.
* Add ``DateTime`` type for converting input in given date time
formats.
* ``secho``'s first argument can now be ``None``, like in ``echo``.
* Fixes a ``ZeroDivisionError`` in ``ProgressBar.make_step``, when the
arg passed to the first call of ``ProgressBar.update`` is 0.
* Show progressbar only if total execution time is visible.
* Added the ability to hide commands and options from help.
* Document that options can be ``required=True``.
* Non-standalone calls to ``Context.exit`` return the exit code,
rather than calling ``sys.exit``.
* ``click.getchar()`` returns Unicode in Python 3 on Windows,
consistent with other platforms.
* Added ``FloatRange`` type.
* Added support for bash completion of ``type=click.Choice`` for
``Options`` and ``Arguments``.
* Only allow one positional arg for ``Argument`` parameter
declaration.
* Add ``case_sensitive=False`` as an option to Choice.
OBS-URL: https://build.opensuse.org/request/show/662313
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-click?expand=0&rev=8
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.