forked from Mirrors/cloudflare-ddns-docker
Update dependency click to v8.2.0 #46
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/click-8.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==8.1.8
->==8.2.0
Release Notes
pallets/click (click)
v8.2.0
Compare Source
Released 2025-05-10
Drop support for Python 3.7, 3.8, and 3.9. :pr:
2588
:pr:2893
Use modern packaging metadata with
pyproject.toml
instead ofsetup.cfg
.:pr:
2438
Use
flit_core
instead ofsetuptools
as build backend. :pr:2543
Deprecate the
__version__
attribute. Use feature detection, orimportlib.metadata.version("click")
, instead. :issue:2598
BaseCommand
is deprecated.Command
is the base class for allcommands. :issue:
2589
MultiCommand
is deprecated.Group
is the base class for all groupcommands. :issue:
2590
The current parser and related classes and methods, are deprecated.
:issue:
2205
OptionParser
and theparser
module, which is a modified copy ofoptparse
in the standard library.Context.protected_args
is unneeded.Context.args
contains anyremaining arguments while parsing.
Parameter.add_to_parser
(on bothArgument
andOption
) isunneeded. Parsing works directly without building a separate parser.
split_arg_string
is moved fromparser
toshell_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
fortypes.Choice
options within--help
message ifshow_choices=False
is specified.:issue:
2356
Do not display default values in prompts when
Option.show_default
isFalse
. :pr:2509
Add
get_help_extra
method onOption
to fetch the generated extraitems used in
get_help_record
to render help text. :issue:2516
:pr:
2517
Keep stdout and stderr streams independent in
CliRunner
. Alwayscollect stderr output and never raise an exception. Add a new
output stream to simulate what the user sees in its terminal. Removes
the
mix_stderr
parameter inCliRunner
. :issue:2522
:pr:2523
Option.show_envvar
now also shows environment variable in error messages.:issue:
2695
:pr:2696
Context.close
will be called on exit. This results in allContext.call_on_close
callbacks and context managers added viaContext.with_resource
to be closed on exit as well. :pr:2680
Add
ProgressBar(hidden: bool)
to allow hiding the progressbar. :issue:2609
A
UserWarning
will be shown when multiple parameters attempt to use thesame name. :issue:
2396
When using
Option.envvar
withOption.flag_value
, theflag_value
will always be used instead of the value of the environment variable.
:issue:
2746
:pr:2788
Add
Choice.get_invalid_choice_message
method for customizing theinvalid choice message. :issue:
2621
:pr:2622
If help is shown because
no_args_is_help
is enabled (defaults toTrue
for groups,
False
for commands), the exit code is 2 instead of 0.:issue:
1489
:pr:1489
Contexts created during shell completion are closed properly, fixing
a
ResourceWarning
when usingclick.File
. :issue:2644
:pr:2800
:pr:
2767
click.edit(filename)
now supports passing an iterable of filenames incase the editor supports editing multiple files at once. Its return type
is now also typed:
AnyStr
iftext
is passed, otherwiseNone
.:issue:
2067
:pr:2068
Specialized typing of
progressbar(length=...)
asProgressBar[int]
.:pr:
2630
Improve
echo_via_pager
behaviour in face of errors.:issue:
2674
echo_via_pager
raises an exception.
to terminate.
echo_via_pager
will not ignoreKeyboardInterrupt
anymore. Thisallows the user to search for future output of the generator when
using less and then aborting the program using ctrl-c.
deprecated: bool | str
can now be used on options and arguments. Thispreviously was only available for
Command
. The message can now also becustomised by using a
str
instead of abool
. :issue:2263
:pr:2271
Command.deprecated
formatting in--help
changed from(Deprecated) help
tohelp (DEPRECATED)
.Add a
catch_exceptions
parameter toCliRunner
. Ifcatch_exceptions
is not passed toCliRunner.invoke
, the valuefrom
CliRunner
is used. :issue:2817
:pr:2818
Option.flag_value
will no longer have a default value set based onOption.default
ifOption.is_flag
isFalse
. This results inOption.default
not needing to implement__bool__
. :pr:2829
Incorrect
click.edit
typing has been corrected. :pr:2804
Choice
is now generic and supports any iterable value.This allows you to use enums and other non-
str
values. :pr:2796
:issue:
605
Fix setup of help option's defaults when using a custom class on its
decorator. Removes
HelpOption
. :issue:2832
:pr:2840
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.