From 82a6efd84081768ee49715c2c6692fca2db5e399ae09cb437d6004a081bdf133 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 24 Feb 2022 09:38:51 +0000 Subject: [PATCH] - Update to 0.7.1: * - Add support for Python 3.10 (@s-t-e-v-e-n-k): #54 - Drop patch python-310-support.patch, merged upstream. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mando?expand=0&rev=14 --- mando-0.7.0.tar.gz | 3 -- mando-0.7.1.tar.gz | 3 ++ python-310-support.patch | 61 ---------------------------------------- python-mando.changes | 7 +++++ python-mando.spec | 6 ++-- 5 files changed, 12 insertions(+), 68 deletions(-) delete mode 100644 mando-0.7.0.tar.gz create mode 100644 mando-0.7.1.tar.gz delete mode 100644 python-310-support.patch diff --git a/mando-0.7.0.tar.gz b/mando-0.7.0.tar.gz deleted file mode 100644 index 4837409..0000000 --- a/mando-0.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5306a91109096fe2e204a1f5ae141038842193f7210a7930c8ee73ccb7ecbf62 -size 38317 diff --git a/mando-0.7.1.tar.gz b/mando-0.7.1.tar.gz new file mode 100644 index 0000000..8ad35db --- /dev/null +++ b/mando-0.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18baa999b4b613faefb00eac4efadcf14f510b59b924b66e08289aa1de8c3500 +size 37868 diff --git a/python-310-support.patch b/python-310-support.patch deleted file mode 100644 index 02b97e3..0000000 --- a/python-310-support.patch +++ /dev/null @@ -1,61 +0,0 @@ -Index: mando-0.7.0/mando/tests/test_numpy.py -=================================================================== ---- mando-0.7.0.orig/mando/tests/test_numpy.py -+++ mando-0.7.0/mando/tests/test_numpy.py -@@ -1,3 +1,4 @@ -+import sys - import pytest - from mando import Program - -@@ -51,6 +52,20 @@ optional arguments: - --arg2 ARG2 Description of `arg2` - '''), - ] -+if sys.version_info[:2] >= (3, 10): -+ NUMPY_DOCSTRING_HELP_CASES = [ -+ ('simple_numpy_docstring --help 2 --arg2=test', '''usage: example.py simple_numpy_docstring [-h] [--arg2 ARG2] arg1 -+ -+Extended description. -+ -+positional arguments: -+ arg1 Description of `arg1` -+ -+options: -+ -h, --help show this help message and exit -+ --arg2 ARG2 Description of `arg2` -+'''), -+ ] - - - @pytest.mark.parametrize('args,result', NUMPY_DOCSTRING_HELP_CASES) -Index: mando-0.7.0/mando/tests/test_google.py -=================================================================== ---- mando-0.7.0.orig/mando/tests/test_google.py -+++ mando-0.7.0/mando/tests/test_google.py -@@ -1,3 +1,4 @@ -+import sys - import pytest - from mando import Program - -@@ -46,6 +47,21 @@ optional arguments: - --arg2 ARG2 Description of `arg2` - '''), - ] -+if sys.version_info[:2] >= (3, 10): -+ GOOGLE_DOCSTRING_HELP_CASES = [ -+ ('simple_google_docstring --help 2 --arg2=test', '''usage: example.py simple_google_docstring [-h] [--arg2 ARG2] arg1 -+ -+Extended description. -+ -+positional arguments: -+ arg1 Description of `arg1` -+ -+options: -+ -h, --help show this help message and exit -+ --arg2 ARG2 Description of `arg2` -+'''), -+ ] -+ - - - @pytest.mark.parametrize('args,result', GOOGLE_DOCSTRING_HELP_CASES) diff --git a/python-mando.changes b/python-mando.changes index 9c78eef..91be77a 100644 --- a/python-mando.changes +++ b/python-mando.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 24 09:37:25 UTC 2022 - Steve Kowalik + +- Update to 0.7.1: + * - Add support for Python 3.10 (@s-t-e-v-e-n-k): #54 +- Drop patch python-310-support.patch, merged upstream. + ------------------------------------------------------------------- Mon Dec 13 05:41:16 UTC 2021 - Steve Kowalik diff --git a/python-mando.spec b/python-mando.spec index 30ae02a..a07e645 100644 --- a/python-mando.spec +++ b/python-mando.spec @@ -1,7 +1,7 @@ # # spec file for package python-mando # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mando -Version: 0.7.0 +Version: 0.7.1 Release: 0 Summary: Python wrapper around argparse, a tool to create CLI apps License: MIT 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,7 +42,6 @@ applications. %prep %setup -q -n mando-%{version} -%autopatch -p1 sed -i -e '/^#!\//, 1d' mando/tests/*.py %build