summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-click_8.0.0.bb
Commit message (Collapse)AuthorAgeFilesLines
* python3-click: Upgrade 8.0.0 -> 8.0.1Leon Anavi2021-05-241-39/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade to release 8.0.1: - Mark top-level names as exported so type checking understand imports in user projects. - Annotate Context.obj as Any so type checking allows all operations on the arbitrary object. - Fix some types that weren’t available in Python 3.6.0. - Fix type checking for iterating over ProgressBar object. - The importlib_metadata backport package is installed on Python < 3.8. - Arguments with nargs=-1 only use env var value if no command line values are given. - Flag options guess their type from flag_value if given, like regular options do from default. - Added documentation that custom parameter types may be passed already valid values in addition to strings. - Resolving commands returns the name that was given, not command.name, fixing an unintended change to help text and default_map lookups. When using patterns like AliasedGroup, override resolve_command to change the name that is returned if needed. - If a default value is invalid, it does not prevent showing help text. - Pass windows_expand_args=False when calling the main command to disable pattern expansion on Windows. There is no way to escape patterns in CMD, so if the program needs to pass them on as-is then expansion must be disabled. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
* python3-click: Upgrade 7.1.2 -> 8.0.0Leon Anavi2021-05-141-0/+39
Upgrade to release 8.0.0: - Drop support for Python 2 and 3.5. - Colorama is always installed on Windows in order to provide style and color support. - Adds a repr to Command, showing the command name for friendlier debugging. - Add support for distinguishing the source of a command line parameter. - Add an optional parameter to ProgressBar.update to set the current_item. - New class attributes make it easier to use custom core objects throughout an entire application. - Use Context.with_resource() to manage resources that would normally be used in a with statement, allowing them to be used across subcommands and callbacks, then cleaned up when the context ends. - The result object returned by the test runner’s invoke() method has a return_value attribute with the value returned by the invoked command. - Required arguments with the Choice type show the choices in curly braces to indicate that one is required ({a|b|c}). - Redesign the shell completion system. - Completion correctly parses command line strings with incomplete quoting or escape sequences. - Fix formatting when Command.options_metavar is empty. - Revert adding space between option help text that wraps. - When defining a parameter, default is validated with multiple and nargs. More validation is done for values being processed as well. - HelpFormatter.write_text uses the full line width when wrapping text. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>