python-click/python-click.spec
Markéta Machová 555d91a213 Accepting request 1101850 from home:mcalabkova:branches:devel:languages:python
- Update to 8.1.6
  * Replace all typing.Dict occurrences to typing.MutableMapping for parameter
    hints. #2255
  * Improve type hinting for decorators and give all generic types parameters.
  * Fix return value and type signature of
    shell_completion.add_completion_class function. #2421
  * Bash version detection doesn’t fail on Windows. #2461
  * Completion works if there is a dot (.) in the program name. #2166
  * Improve type annotations for pyright type checker. #2268
  * Improve responsiveness of click.clear(). #2284
  * Improve command name detection when using Shiv or PEX. #2332
  * Avoid showing empty lines if command help text is empty. #2368
  * ZSH completion script works when loaded from fpath. #2344.
  * EOFError and KeyboardInterrupt tracebacks are not suppressed when
    standalone_mode is disabled. #2380
  * @group.command does not fail if the group was created with a custom
    command_class. #2416
  * multiple=True is allowed for flag options again and does not require
    setting default=(). #2246, #2292, #2295
  * Make the decorators returned by @argument() and @option() reusable when the
    cls parameter is used. #2294
  * Don’t fail when writing filenames to streams with strict errors. Replace
    invalid bytes with the replacement character (�). #2395
  * Remove unnecessary attempt to detect MSYS2 environment. #2355
  * Remove outdated and unnecessary detection of App Engine environment. #2554
  * echo() does not fail when no streams are attached, such as with pythonw on
    Windows. #2415
  * Argument with expose_value=False do not cause completion to fail. #2336
  * Fix an issue with type hints for @click.command(), @click.option(), and
    other decorators. Introduce typing tests. #2558

OBS-URL: https://build.opensuse.org/request/show/1101850
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click?expand=0&rev=46
2023-08-01 20:02:49 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-click
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-click
Version: 8.1.6
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
BuildArch: noarch
%python_subpackages
%description
Click is a Python package for creating command line interfaces
in a composable way with as little code as necessary. It's the "Command
Line Interface Creation Kit". It is configurable, and comes with
defaults out of the box.
%prep
%autosetup -p1 -n click-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest -rs --tb=short
%files %{python_files}
%license LICENSE.rst
%doc CHANGES.rst README.rst
%{python_sitelib}/click
%{python_sitelib}/click-%{version}-py%{python_version}.egg-info
%changelog