Bump click from 8.1.8 to 8.2.1
Bumps click from 8.1.8 to 8.2.1.
Release notes
Sourced from click's releases.
8.2.1
This is the Click 8.2.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/click/8.2.1/ Changes: https://click.palletsprojects.com/page/changes/#version-8-2-1 Milestone: https://github.com/pallets/click/milestone/24?closed=1
- Fix flag value handling for flag options with a provided type. #2894 #2897
- Fix shell completion for nested groups. #2906
- Flush
sys.stderrat the end ofCliRunner.invoke. #2682- Fix EOF handling for stdin input in
CliRunner. #27878.2.0
This is the Click 8.2.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecation, or introduce potentially breaking changes.
We encourage everyone to upgrade. You can read more about our Version Support Policy on our website.
PyPI: https://pypi.org/project/click/8.2.0/ Changes: https://click.palletsprojects.com/en/stable/changes/ Milestone https://github.com/pallets/click/milestone/15
- Drop support for Python 3.7, 3.8,and 3.9. #2588, #2893
- Use modern packaging metadata with
pyproject.tomlinstead ofsetup.cfg. #2438- Use
flit_coreinstead ofsetuptoolsas build backend. #2543- Deprecate the
__version__attribute. Use feature detection, orimportlib.metadata.version("click"), instead. #2598BaseCommandis deprecated.Commandis the base class for all commands. #2589MultiCommandis deprecated.Groupis the base class for all group commands. #2590- The current parser and related classes and methods, are deprecated. #2205
OptionParserand theparsermodule, which is a modified copy ofoptparsein the standard library.Context.protected_argsis unneeded.Context.argscontains any remaining arguments while parsing.Parameter.add_to_parser(on bothArgumentandOption) is unneeded. Parsing works directly without building a separate parser.split_arg_stringis moved fromparsertoshell_completion.- Enable deferred evaluation of annotations with
from __future__ import annotations. #2270- When generating a command's name from a decorated function's name, the suffixes
_command,_cmd,_group, and_grpare removed. #2322- Show the
types.ParamType.namefortypes.Choiceoptions within--helpmessage ifshow_choices=Falseis specified. #2356- Do not display default values in prompts when
Option.show_defaultisFalse. #2509- Add
get_help_extramethod onOptionto fetch the generated extra items used inget_help_recordto render help text. #2516 #2517- Keep stdout and stderr streams independent in
CliRunner. Always collect stderr output and never raise an exception. Add a new output stream to simulate what the user sees in its terminal. Removes themix_stderrparameter inCliRunner. #2522 #2523Option.show_envvarnow also shows environment variable in error messages. #2695 #2696Context.closewill be called on exit. This results in allContext.call_on_closecallbacks and context managers added viaContext.with_resourceto be closed on exit as well. #2680- Add
ProgressBar(hidden: bool)to allow hiding the progressbar. #2609- A
UserWarningwill be shown when multiple parameters attempt to use the same name. #2396- When using
Option.envvarwithOption.flag_value, theflag_valuewill always be used instead of the value of the environment variable. #2746 #2788- Add
Choice.get_invalid_choice_messagemethod for customizing the invalid choice message. #2621 #2622- If help is shown because
no_args_is_helpis enabled (defaults toTruefor groups,Falsefor commands), the exit code is 2 instead of 0. #1489 #1489- Contexts created during shell completion are closed properly, fixing a
ResourceWarningwhen usingclick.File. #2644 #2800 #2767click.edit(filename)now supports passing an iterable of filenames in case the editor supports editing multiple files at once. Its return type is now also typed:AnyStriftextis passed, otherwiseNone. #2067 #2068
... (truncated)
Changelog
Sourced from click's changelog.
Version 8.2.1
Released 2025-05-20
- Fix flag value handling for flag options with a provided type. :issue:
2894:issue:2897:pr:2930- Fix shell completion for nested groups. :issue:
2906:pr:2907- Flush
sys.stderrat the end ofCliRunner.invoke. :issue:2682- Fix EOF handling for stdin input in CliRunner. :issue:
2787Version 8.2.0
Released 2025-05-10
Drop support for Python 3.7, 3.8, and 3.9. :pr:
2588:pr:2893Use modern packaging metadata with
pyproject.tomlinstead ofsetup.cfg. :pr:2438Use
flit_coreinstead ofsetuptoolsas build backend. :pr:2543Deprecate the
__version__attribute. Use feature detection, orimportlib.metadata.version("click"), instead. :issue:2598
BaseCommandis deprecated.Commandis the base class for all commands. :issue:2589
MultiCommandis deprecated.Groupis the base class for all group commands. :issue:2590The current parser and related classes and methods, are deprecated. :issue:
2205
OptionParserand theparsermodule, which is a modified copy ofoptparsein the standard library.Context.protected_argsis unneeded.Context.argscontains any remaining arguments while parsing.Parameter.add_to_parser(on bothArgumentandOption) is unneeded. Parsing works directly without building a separate parser.split_arg_stringis moved fromparsertoshell_completion.Enable deferred evaluation of annotations with
from __future__ import annotations. :pr:2270When generating a command's name from a decorated function's name, the suffixes
_command,_cmd,_group, and_grpare removed. :issue:2322Show the
types.ParamType.namefortypes.Choiceoptions within--helpmessage ifshow_choices=Falseis specified. :issue:2356Do not display default values in prompts when
Option.show_defaultisFalse. :pr:2509Add
get_help_extramethod onOptionto fetch the generated extra items used inget_help_recordto render help text. :issue:2516:pr:2517
... (truncated)
Commits
fd183b2release version 8.2.1262bdf0Raise an exception on end of input in CliRunner (#2934)80efdf6Raise an exception on end of input in CliRunnercfa6f4aFlush sys.stderr when CliRunner finalizes (#2933)f3a4363flush sys.stderr when CliRunner.invoke finalizesb7cf069fix shell completion for nested groups (#2935)7c575d6parametrize testac6a2acFix shell completion for nested groups884af5cFix flag value set when is_flag=True and type is provided (#2930)4fd2feaFix condition for setting flag value when type is provided- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
upvote from me. It's the followup project from the same author, license is the same. Solves also my issue #3558
replacing the feature is a breaking change, can we adjust this PR so that it's additive instead?
replacing the feature is a breaking change, can we adjust this PR so that it's additive instead?
I don't see why it's a bc break ? old feature is keep but is an alias to the new one it should not change anything for end user ?
Agree with Joel, the main change here should be one related to trademarks and the old feature should work with the (almost) same functionality.
@robjtede Could you clarify a scenario that may cause a breaking change?
I think you're right. My reaction was too cautious. I haven't been able to contrive a breakage.
I'm going to push an update to 0.25 of hickory-resolver.