15
0
forked from pool/python-mando

- Add patch support-python-310.patch:

* Support argparse changes introduced in Python 3.10.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mando?expand=0&rev=12
This commit is contained in:
2021-12-13 03:46:25 +00:00
committed by Git OBS Bridge
parent 41ecc957eb
commit 5903de865b
3 changed files with 70 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-mando
#
# Copyright (c) 2020 SUSE LLC
# 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
@@ -22,9 +22,9 @@ Version: 0.7.0
Release: 0
Summary: Python wrapper around argparse, a tool to create CLI apps
License: MIT
Group: Development/Languages/Python
URL: https://mando.readthedocs.org/
Source: https://files.pythonhosted.org/packages/source/m/mando/mando-%{version}.tar.gz
Patch0: python-310-support.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -43,6 +43,7 @@ applications.
%prep
%setup -q -n mando-%{version}
%autopatch -p1
sed -i -e '/^#!\//, 1d' mando/tests/*.py
%build