From 324486d8a6507959b01a3fd09988dd5ff88cffa068cbef0122be4b58755bae99 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 5 Jun 2022 16:39:42 +0000 Subject: [PATCH] Accepting request 980898 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/980898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=38 --- click-8.0.4.tar.gz | 3 -- click-8.1.3.tar.gz | 3 ++ python-click.changes | 77 ++++++++++++++++++++++++++++++++++++++++++++ python-click.spec | 5 +-- 4 files changed, 83 insertions(+), 5 deletions(-) delete mode 100644 click-8.0.4.tar.gz create mode 100644 click-8.1.3.tar.gz diff --git a/click-8.0.4.tar.gz b/click-8.0.4.tar.gz deleted file mode 100644 index fbc34d9..0000000 --- a/click-8.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb -size 329520 diff --git a/click-8.1.3.tar.gz b/click-8.1.3.tar.gz new file mode 100644 index 0000000..1ee662c --- /dev/null +++ b/click-8.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e +size 331147 diff --git a/python-click.changes b/python-click.changes index 0b4c207..9ea1d7f 100644 --- a/python-click.changes +++ b/python-click.changes @@ -1,3 +1,80 @@ +------------------------------------------------------------------- +Sun Jun 5 14:19:36 UTC 2022 - Arun Persaud + +- specfile + * require python >= 3.7 + +- update to version 8.1.3: + * Use verbose form of "typing.Callable" for "@command" and + "@group". :issue:`2255` + * Show error when attempting to create an option with + "multiple=True, is_flag=True". Use "count" instead. + :issue:`2246` + +- changes from version 8.1.2: + * Fix error message for readable path check that was mixed up with + the executable check. :pr:`2236` + * Restore parameter order for "Path", placing the "executable" + parameter at the end. It is recommended to use keyword arguments + instead of positional arguments. :issue:`2235` + +- changes from version 8.1.1: + * Fix an issue with decorator typing that caused type checking to + report that a command was not callable. :issue:`2227` + +- changes from version 8.1.0: + * Drop support for Python 3.6. :pr:`2129` + * Remove previously deprecated code. :pr:`2130` + + "Group.resultcallback" is renamed to "result_callback". + + "autocompletion" parameter to "Command" is renamed to + "shell_complete". + + "get_terminal_size" is removed, use "shutil.get_terminal_size" + instead. + + "get_os_args" is removed, use "sys.argv[1:]" instead. + * Rely on :pep:`538` and :pep:`540` to handle selecting UTF-8 + encoding instead of ASCII. Click's locale encoding detection is + removed. :issue:`2198` + * Single options boolean flags with "show_default=True" only show + the default if it is "True". :issue:`1971` + * The "command" and "group" decorators can be applied with or + without parentheses. :issue:`1359` + * The "Path" type can check whether the target is executable. + :issue:`1961` + * "Command.show_default" overrides "Context.show_default", instead + of the other way around. :issue:`1963` + * Parameter decorators and "@group" handles "cls=None" the same as + not passing "cls". "@option" handles "help=None" the same as not + passing "help". :issue:`#1959` + * A flag option with "required=True" requires that the flag is + passed instead of choosing the implicit default + value. :issue:`1978` + * Indentation in help text passed to "Option" and "Command" is + cleaned the same as using the "@option" and "@command" + decorators does. A command's "epilog" and "short_help" are also + processed. :issue:`1985` + * Store unprocessed "Command.help", "epilog" and "short_help" + strings. Processing is only done when formatting help text for + output. :issue:`2149` + * Allow empty str input for "prompt()" when + "confirmation_prompt=True" and "default=""". :issue:`2157` + * Windows glob pattern expansion doesn't fail if a value is an + invalid pattern. :issue:`2195` + * It's possible to pass a list of "params" to "@command". Any params + defined with decorators are appended to the passed params. + :issue:`2131`. + * "@command" decorator is annotated as returning the correct type if + a "cls" argument is used. :issue:`2211` + * A "Group" with "invoke_without_command=True" and "chain=False" + will invoke its result callback with the group function's return + value. :issue:`2124` + * "to_info_dict" will not fail if a "ParamType" doesn't define a + "name". :issue:`2168` + * Shell completion prioritizes option values with option prefixes + over new options. :issue:`2040` + * Options that get an environment variable value using + "autoenvvar_prefix" treat an empty value as "None", consistent + with a direct "envvar". :issue:`2146` + ------------------------------------------------------------------- Sun Mar 27 11:02:05 UTC 2022 - Dirk Müller diff --git a/python-click.spec b/python-click.spec index cf85401..7e93bfd 100644 --- a/python-click.spec +++ b/python-click.spec @@ -20,22 +20,23 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-click -Version: 8.0.4 +Version: 8.1.3 Release: 0 Summary: A wrapper around optparse for command line utilities License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/mitsuhiko/click Source: https://files.pythonhosted.org/packages/source/c/click/click-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools +BuildArch: noarch %if "%{python_flavor}" == "python36" Requires: python-importlib-metadata %endif -BuildArch: noarch %python_subpackages %description