15
0

- Add compatibility-click-8.patch to fix compatiblity with

click 8 (gh#click-contrib/click-default-group#18).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-default-group?expand=0&rev=3
This commit is contained in:
2021-08-11 10:58:24 +00:00
committed by Git OBS Bridge
parent 89aac9aed5
commit dcffd773c9
3 changed files with 38 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-click-default-group
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,8 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -21,11 +22,14 @@ Version: 1.2.2
Release: 0
License: BSD-3-Clause
Summary: Extends clickGroup to invoke a command without explicit subcommand name
Url: https://github.com/sublee/click-default-group/
URL: https://github.com/sublee/click-default-group/
Group: Development/Languages/Python
Source: https://github.com/click-contrib/click-default-group/archive/v%{version}.tar.gz#/click-default-group-%{version}.tar.gz
BuildRequires: python-rpm-macros
# PATCH-FIX-UPSTREAM compatibility-click-8.patch gh#click-contrib/click-default-group#18 mcepl@suse.com
# Make tests compatible with click 8
Patch0: compatibility-click-8.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module click}
BuildRequires: %{python_module pytest}
@@ -40,7 +44,7 @@ BuildArch: noarch
Extends click.Group to invoke a command without explicit subcommand name.
%prep
%setup -q -n click-default-group-%{version}
%autosetup -p1 -n click-default-group-%{version}
%build
%python_build