Files
bpfire/lfs/python3-click
Adolf Belka 441e926955 python3-click: Update to version 8.1.2
- Update from 8.0.3 to 8.1.2
- Update of rootfile
- Changelog
   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`
   Version 8.1.1
	-   Fix an issue with decorator typing that caused type checking to
	    report that a command was not callable. :issue:`2227`
   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`
   Version 8.0.4
	-   ``open_file`` recognizes ``Path("-")`` as a standard stream, the
	    same as the string ``"-"``. :issue:`2106`
	-   The ``option`` and ``argument`` decorators preserve the type
	    annotation of the decorated function. :pr:`2155`
	-   A callable default value can customize its help text by overriding
	    ``__str__`` instead of always showing ``(dynamic)``. :issue:`2099`
	-   Fix a typo in the Bash completion script that affected file and
	    directory completion. If this script was generated by a previous
	    version, it should be regenerated. :issue:`2163`
	-   Fix typing for ``echo`` and ``secho`` file argument.
	    :issue:`2174, 2185`

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-04-18 21:10:09 +00:00

82 lines
3.2 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 8.1.2
THISAPP = click-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = python3-click
PAK_VER = 2
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = e0ac04e4583dadba61ca42640f6d75ade30c62bd46b5fd0d15378e00f102f29160190c8ebb01de637c5446d9d06b687bddba4b78b3b3c80bb6e64ba46df866fa
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
b2 : $(subst %,%_BLAKE2,$(objects))
dist:
@$(PAK)
###############################################################################
# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_BLAKE2,$(objects)) :
@$(B2SUM)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && python3 setup.py build
cd $(DIR_APP) && python3 setup.py install --root=/
@rm -rf $(DIR_APP)
@$(POSTBUILD)