Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mando for openSUSE:Factory checked in at 2021-12-16 21:19:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mando (Old) and /work/SRC/openSUSE:Factory/.python-mando.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mando" Thu Dec 16 21:19:17 2021 rev:6 rq:940133 version:0.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mando/python-mando.changes 2020-04-05 20:51:47.133081609 +0200 +++ /work/SRC/openSUSE:Factory/.python-mando.new.2520/python-mando.changes 2021-12-16 21:20:08.254540082 +0100 @@ -1,0 +2,6 @@ +Mon Dec 13 05:41:16 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch python-310-support.patch: + * Support argparse changes introduced in Python 3.10. + +------------------------------------------------------------------- New: ---- python-310-support.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mando.spec ++++++ --- /var/tmp/diff_new_pack.Gka94w/_old 2021-12-16 21:20:08.702540252 +0100 +++ /var/tmp/diff_new_pack.Gka94w/_new 2021-12-16 21:20:08.710540255 +0100 @@ -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 @@ 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 @@ %prep %setup -q -n mando-%{version} +%autopatch -p1 sed -i -e '/^#!\//, 1d' mando/tests/*.py %build ++++++ python-310-support.patch ++++++ 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)