From 9e7b7fc006ac38952936e101057baeddbfa3adac Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 13 May 2021 16:23:29 +0300 Subject: python3-click: Upgrade 7.1.2 -> 8.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../recipes-devtools/python/python3-click_8.0.0.bb | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-click_8.0.0.bb (limited to 'meta-python/recipes-devtools/python/python3-click_8.0.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-click_8.0.0.bb b/meta-python/recipes-devtools/python/python3-click_8.0.0.bb new file mode 100644 index 0000000000..f7af73d6d5 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-click_8.0.0.bb @@ -0,0 +1,39 @@ +SUMMARY = "A simple wrapper around optparse for powerful command line utilities." +DESCRIPTION = "\ +Click is a Python package for creating beautiful command line interfaces \ +in a composable way with as little code as necessary. It's the "Command \ +Line Interface Creation Kit". It's highly configurable but comes with \ +sensible defaults out of the box." +HOMEPAGE = "http://click.pocoo.org/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=1fa98232fd645608937a0fdc82e999b8" + +SRC_URI[sha256sum] = "7d8c289ee437bcb0316820ccee14aefcb056e58d31830ecab8e47eda6540e136" + +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-terminal \ + ${PYTHON_PN}-unixadmin \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +UPSTREAM_CHECK_REGEX = "click/(?P\d+(\.\d+)+)/" + +CLEANBROKEN = "1" + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-io \ + ${PYTHON_PN}-threading \ + " + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf