14
0
forked from pool/python-typer

- Resolve Typer no longer working since Click got bumped to version

8.
  * This removes support for autocompletion.
- Add basic-click8-support.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typer?expand=0&rev=3
This commit is contained in:
Matthias Bach
2021-07-23 19:01:09 +00:00
committed by Git OBS Bridge
parent 443ce94912
commit 436c606da1
3 changed files with 2078 additions and 6 deletions

2063
basic-click8-compat.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jul 23 18:56:14 UTC 2021 - Matthias Bach <marix@marix.org>
- Resolve Typer no longer working since Click got bumped to version
8.
* This removes support for autocompletion.
- Add basic-click8-support.patch
-------------------------------------------------------------------
Wed Apr 14 16:06:14 UTC 2021 - Matthias Bach <marix@marix.org>

View File

@@ -16,28 +16,29 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%define skip_python2 1
Name: python-typer
Version: 0.3.2
Release: 0
Summary: Typer, build great CLIs. Easy to code. Based on Python type hints
License: MIT
Group: Development/Languages/Python
URL: https://github.com/tiangolo/typer
Source: https://files.pythonhosted.org/packages/source/t/typer/typer-%{version}.tar.gz
Source1: %{name}-rpmlintrc
Group: Development/Languages/Python
BuildRequires: python-rpm-macros
Patch1: basic-click8-compat.patch
BuildRequires: %{python_module click}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module shellingham}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module shellingham}
BuildRequires: fdupes
BuildArch: noarch
BuildRequires: python-rpm-macros
Requires: python-click >= 7.1
Recommends: python-colorama
Recommends: python-shellingham
BuildArch: noarch
%python_subpackages
%description
@@ -48,9 +49,9 @@ With automatic help and completion, Typer makes CLIs easy to use for users.
This package provides the Typer Python package required to build and run Typer-based CLI applications.
%prep
%setup -q -n typer-%{version}
%patch1 -p1
%build
%python_build