Your message dated Sat, 23 Jan 2021 14:33:59 +0000
with message-id <e1l3jzd-000j2o...@fasolo.debian.org>
and subject line Bug#977097: fixed in sphinx-argparse 0.2.5-1
has caused the Debian Bug report #977097,
regarding sphinx-argparse FTBFS with pytest 6
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
977097: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977097
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: sphinx-argparse
Version: 0.2.2-3
Severity: important
User: pyt...@packages.debian.org
Usertags: pytest-v6

Hi,

sphinx-argparse FTBFS with pytest 6 in experimental. The pytest
changelog may offer clues as to why:

    https://docs.pytest.org/en/stable/changelog.html

The error log below has more details.

> I: pybuild base:232: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sphinx-argparse/build; python3.9 -m 
> pytest -v
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0 -- 
> /usr/bin/python3.9
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>
> collecting ... collected 15 items
> 
> test/test_parser.py::test_parse_options PASSED                           [  
> 6%]
> test/test_parser.py::test_parse_default PASSED                           [ 
> 13%]
> test/test_parser.py::test_parse_arg_choices PASSED                       [ 
> 20%]
> test/test_parser.py::test_parse_opt_choices PASSED                       [ 
> 26%]
> test/test_parser.py::test_parse_default_skip_default PASSED              [ 
> 33%]
> test/test_parser.py::test_parse_positional PASSED                        [ 
> 40%]
> test/test_parser.py::test_parse_description PASSED                       [ 
> 46%]
> test/test_parser.py::test_parse_nested FAILED                            [ 
> 53%]
> test/test_parser.py::test_parse_nested_with_alias FAILED                 [ 
> 60%]
> test/test_parser.py::test_aliased_traversal FAILED                       [ 
> 66%]
> test/test_parser.py::test_parse_nested_traversal FAILED                  [ 
> 73%]
> test/test_parser.py::test_fill_in_default_prog PASSED                    [ 
> 80%]
> test/test_parser.py::test_string_quoting PASSED                          [ 
> 86%]
> test/test_parser.py::test_parse_groups PASSED                            [ 
> 93%]
> test/test_parser.py::test_action_groups_with_subcommands PASSED          
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________________________ test_parse_nested 
> _______________________________
> 
>     def test_parse_nested():
>         parser = argparse.ArgumentParser()
>         parser.add_argument('foo', default=False, help='foo help')
>         parser.add_argument('bar', default=False)
>     
>         subparsers = parser.add_subparsers()
>     
>         subparser = subparsers.add_parser('install', help='install help')
>         subparser.add_argument('ref', type=str, help='foo1 help')
>         subparser.add_argument('--upgrade', action='store_true', 
> default=False, help='foo2 help')
>     
>         data = parse_parser(parser)
>     
>         assert data['action_groups'][0]['options'] == [
>             {
>                 'name': ['foo'],
>                 'help': 'foo help',
>                 'default': False
>             }, {
>                 'name': ['bar'],
>                 'help': '',
>                 'default': False
>             }
>         ]
>     
>>       assert data['children'] == [
>             {
>                 'name': 'install',
>                 'help': 'install help',
>                 'usage': 'usage: pytest.py install [-h] [--upgrade] ref',
>                 'bare_usage': 'pytest.py install [-h] [--upgrade] ref',
>                 'action_groups': [
>                     {
>                         'title': 'Positional Arguments',
>                         'description': None,
>                         'options': [
>                             {
>                                 'name': ['ref'],
>                                 'help': 'foo1 help',
>                                 'default': None
>                             }
>                         ]
>                     },
>                     {
>                         'description': None,
>                         'title': 'Named Arguments',
>                         'options': [
>                             {
>                                 'name': ['--upgrade'],
>                                 'default': False,
>                                 'help': 'foo2 help'
>                             }
>                         ]
>                     }
>                 ]
>             }
>         ]
> E       AssertionError: assert [{'action_gro...nstall', ...}] == 
> [{'action_gro...nstall', ...}]
> E         At index 0 diff: {'name': 'install', 'help': 'install help', 
> 'usage': 'usage: __main__.py install [-h] [--upgrade] ref', 'bare_usage': 
> '__main__.py install [-h] [--upgrade] ref', 'action_groups': [{'title': 
> 'Positional Arguments', 'description': None, 'options': [{'name': ['ref'], 
> 'default': None, 'help': 'foo1 help'}]}, {'title': 'Named Arguments', 
> 'description': None, 'options': [{'name': ['--upgrade'], 'default': False, 
> 'help': 'foo2 help'}]}]} != {'name': 'install', 'help': 'install help', 
> 'usage': 'usage: pytest.py install [-h] [--upgrade] ref', 'bare_usage': 
> 'pyte...
> E         
> E         ...Full output truncated (24 lines hidden), use '-vv' to show
> 
> test/test_parser.py:157: AssertionError
> _________________________ test_parse_nested_with_alias 
> _________________________
> 
>     def test_parse_nested_with_alias():
>         parser = argparse.ArgumentParser()
>         parser.add_argument('foo', default=False, help='foo help')
>         parser.add_argument('bar', default=False)
>     
>         subparsers = parser.add_subparsers()
>     
>         subparser = subparsers.add_parser('install', aliases=['i'], 
> help='install help')
>         subparser.add_argument('ref', type=str, help='foo1 help')
>         subparser.add_argument('--upgrade', action='store_true', 
> default=False, help='foo2 help')
>     
>         data = parse_parser(parser)
>     
>         assert data['action_groups'][0]['options'] == [
>             {
>                 'name': ['foo'],
>                 'help': 'foo help',
>                 'default': False
>             }, {
>                 'name': ['bar'],
>                 'help': '',
>                 'default': False
>             }
>         ]
>     
>>       assert data['children'] == [
>             {
>                 'name': 'install (i)',
>                 'identifier': 'install',
>                 'help': 'install help',
>                 'usage': 'usage: pytest.py install [-h] [--upgrade] ref',
>                 'bare_usage': 'pytest.py install [-h] [--upgrade] ref',
>                 'action_groups': [
>                     {
>                         'title': 'Positional Arguments',
>                         'description': None,
>                         'options': [
>                             {
>                                 'name': ['ref'],
>                                 'help': 'foo1 help',
>                                 'default': None
>                             }
>                         ]
>                     },
>                     {
>                         'description': None,
>                         'title': 'Named Arguments',
>                         'options': [
>                             {
>                                 'name': ['--upgrade'],
>                                 'default': False,
>                                 'help': 'foo2 help'
>                             }
>                         ]
>                     }
>                 ]
>             }
>         ]
> E       AssertionError: assert [{'action_gro...nstall', ...}] == 
> [{'action_gro...nstall', ...}]
> E         At index 0 diff: {'name': 'install (i)', 'help': 'install help', 
> 'usage': 'usage: __main__.py install [-h] [--upgrade] ref', 'bare_usage': 
> '__main__.py install [-h] [--upgrade] ref', 'identifier': 'install', 
> 'action_groups': [{'title': 'Positional Arguments', 'description': None, 
> 'options': [{'name': ['ref'], 'default': None, 'help': 'foo1 help'}]}, 
> {'title': 'Named Arguments', 'description': None, 'options': [{'name': 
> ['--upgrade'], 'default': False, 'help': 'foo2 help'}]}]} != {'name': 
> 'install (i)', 'identifier': 'install', 'help': 'install help', 'usage': 
> 'usage: py...
> E         
> E         ...Full output truncated (25 lines hidden), use '-vv' to show
> 
> test/test_parser.py:217: AssertionError
> ____________________________ test_aliased_traversal 
> ____________________________
> 
>     def test_aliased_traversal():
>         parser = argparse.ArgumentParser()
>     
>         subparsers1 = parser.add_subparsers()
>         subparsers1.add_parser('level1', aliases=['l1'])
>     
>         data = parse_parser(parser)
>     
>         data2 = parser_navigate(data, 'level1')
>     
>>       assert(data2 == {
>             'bare_usage': 'pytest.py level1 [-h]',
>             'help': '',
>             'usage': 'usage: pytest.py level1 [-h]',
>             'name': 'level1 (l1)',
>             'identifier': 'level1'})
> E       AssertionError: assert {'bare_usage'...l1 (l1)', ...} == 
> {'bare_usage'...l1 (l1)', ...}
> E         Omitting 3 identical items, use -vv to show
> E         Differing items:
> E         {'usage': 'usage: __main__.py level1 [-h]'} != {'usage': 'usage: 
> pytest.py level1 [-h]'}
> E         {'bare_usage': '__main__.py level1 [-h]'} != {'bare_usage': 
> 'pytest.py level1 [-h]'}
> E         Full diff:
> E           {
> E         -  'bare_usage': 'pytest.py level1 [-h]',...
> E         
> E         ...Full output truncated (12 lines hidden), use '-vv' to show
> 
> test/test_parser.py:261: AssertionError
> _________________________ test_parse_nested_traversal 
> __________________________
> 
>     def test_parse_nested_traversal():
>         parser = argparse.ArgumentParser()
>     
>         subparsers1 = parser.add_subparsers()
>         subparser1 = subparsers1.add_parser('level1')
>     
>         subparsers2 = subparser1.add_subparsers()
>         subparser2 = subparsers2.add_parser('level2')
>     
>         subparsers3 = subparser2.add_subparsers()
>         subparser3 = subparsers3.add_parser('level3')
>     
>         subparser3.add_argument('foo', help='foo help')
>         subparser3.add_argument('bar')
>     
>         data = parse_parser(parser)
>     
>         data3 = parser_navigate(data, 'level1 level2 level3')
>     
>         assert data3['action_groups'][0]['options'] == [
>             {
>                 'name': ['foo'],
>                 'help': 'foo help',
>                 'default': None
>             }, {
>                 'name': ['bar'],
>                 'help': '',
>                 'default': None
>             }
>         ]
>     
>         data2 = parser_navigate(data, 'level1 level2')
>>       assert data2['children'] == [
>             {
>                 'name': 'level3',
>                 'help': '',
>                 'usage': 'usage: pytest.py level1 level2 level3 [-h] foo bar',
>                 'bare_usage': 'pytest.py level1 level2 level3 [-h] foo bar',
>                 'action_groups': [
>                     {
>                         'title': 'Positional Arguments',
>                         'description': None,
>                         'options': [
>                             {
>                                 'default': None,
>                                 'name': ['foo'],
>                                 'help': 'foo help'
>                             }, {
>                                 'name': ['bar'],
>                                 'help': '',
>                                 'default': None
>                             }
>                         ]
>                     }
>                 ]
>             }
>         ]
> E       AssertionError: assert [{'action_gro...level3', ...}] == 
> [{'action_gro...level3', ...}]
> E         At index 0 diff: {'name': 'level3', 'help': '', 'usage': 'usage: 
> __main__.py level1 level2 level3 [-h] foo bar', 'bare_usage': '__main__.py 
> level1 level2 level3 [-h] foo bar', 'action_groups': [{'title': 'Positional 
> Arguments', 'description': None, 'options': [{'name': ['foo'], 'default': 
> None, 'help': 'foo help'}, {'name': ['bar'], 'default': None, 'help': ''}]}]} 
> != {'name': 'level3', 'help': '', 'usage': 'usage: pytest.py level1 level2 
> level3 [-h] foo bar', 'bare_usage': 'pytest.py level1 level2 level3 [-h] foo 
> bar', 'action_groups': [{'title': 'Positional Arguments'...
> E         
> E         ...Full output truncated (22 lines hidden), use '-vv' to show
> 
> test/test_parser.py:301: AssertionError
> =============================== warnings summary 
> ===============================
> sphinxarg/parser.py:13
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sphinx-argparse/build/sphinxarg/parser.py:13:
>  DeprecationWarning: invalid escape sequence \s
>     path = re.split('\s+', path)
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info 
> ============================
> FAILED test/test_parser.py::test_parse_nested - AssertionError: assert 
> [{'act...
> FAILED test/test_parser.py::test_parse_nested_with_alias - AssertionError: 
> as...
> FAILED test/test_parser.py::test_aliased_traversal - AssertionError: assert 
> {...
> FAILED test/test_parser.py::test_parse_nested_traversal - AssertionError: 
> ass...
> =================== 4 failed, 11 passed, 1 warning in 0.07s 
> ====================
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sphinx-argparse/build; python3.9 -m 
> pytest -v
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 
> returned exit code 13
> make: *** [debian/rules:7: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

--- End Message ---
--- Begin Message ---
Source: sphinx-argparse
Source-Version: 0.2.5-1
Done: Michael R. Crusoe <cru...@debian.org>

We believe that the bug you reported is fixed in the latest version of
sphinx-argparse, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 977...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael R. Crusoe <cru...@debian.org> (supplier of updated sphinx-argparse 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 23 Jan 2021 15:00:56 +0100
Source: sphinx-argparse
Architecture: source
Version: 0.2.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Michael R. Crusoe <cru...@debian.org>
Closes: 977097
Changes:
 sphinx-argparse (0.2.5-1) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Debian Janitor ]
   * Bump debhelper from old 10 to 12.
   * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
     Repository-Browse.
 .
   [ Bastian Germann ]
   * New upstream version 0.2.5
   * lintian: runtime-test-file-uses-installed-python-versions
 .
   [ Ondřej Nový ]
   * d/control: Update Maintainer field with new Debian Python Team
     contact address.
   * d/control: Update Vcs-* fields with new Debian Python Team Salsa
     layout.
 .
   [ Michael R. Crusoe ]
   * Standards-Version: 4.5.1 (routine-update)
   * debhelper-compat 13 (routine-update)
   * Add salsa-ci file (routine-update)
   * Rules-Requires-Root: no (routine-update)
   * Incorporate patch submitted to upstream to fix failing tests.
     Closes: #977097
   * debian/control: Document which version of sphinx was used to build
     the binary package.
Checksums-Sha1:
 08b727962b7f242a7ac6a52c7a839a5f4ffa24fa 2213 sphinx-argparse_0.2.5-1.dsc
 7948a7d127ded36ee7555798b13fee5818f660e2 24890 
sphinx-argparse_0.2.5.orig.tar.gz
 b33e54aee6d8ae4e35bd112fe4889ee85ad10008 6552 
sphinx-argparse_0.2.5-1.debian.tar.xz
 80536481a54082418317bf77947caf54bfb3dee4 7409 
sphinx-argparse_0.2.5-1_source.buildinfo
Checksums-Sha256:
 2ee3697776358fe4437cdb821fec77db89f3db88300bc7504916263c2164e903 2213 
sphinx-argparse_0.2.5-1.dsc
 943df89bb2b05474252de974bb6bf17c56cf2b1dc4671ff8b6229b2235620110 24890 
sphinx-argparse_0.2.5.orig.tar.gz
 006d2a0dcb4cf7d6cfa26ea422e242fdb43559ed767f6a3680c1d76483e0d49e 6552 
sphinx-argparse_0.2.5-1.debian.tar.xz
 deb82b84654b25263c482532b8cdbaa5dd667cdf8b0912703c4092519e1a9293 7409 
sphinx-argparse_0.2.5-1_source.buildinfo
Files:
 8e0b6d4a407b7e60a8fb174a57d95640 2213 python optional 
sphinx-argparse_0.2.5-1.dsc
 615c10d4130b047360a4879a3f3cd9a2 24890 python optional 
sphinx-argparse_0.2.5.orig.tar.gz
 2dfc58fb2e804446780563759acbcbd7 6552 python optional 
sphinx-argparse_0.2.5-1.debian.tar.xz
 b6fc9d5b0a72c84d253ac651bf9e03b8 7409 python optional 
sphinx-argparse_0.2.5-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEck1gkzcRPHEFUNdHPCZ2P2xn5uIFAmAMLDcACgkQPCZ2P2xn
5uItDA/+NooCJFRYynx39YVU0OM0ZXnyWiG+JpF5jF957uR+FvsSBanFopq/m7N7
pkxSmg2bvie/3FQ63zo6nYO/U3vClWhHzXhkC6bnRyyXglA+Bq7kHcPIUIwygag8
u1fmYlwj/b4Px/ncY2YfcSANOA6KuErr0I0COXl+erOZnjm/vIhBddqQ7L/mCXtD
whdy0KdxWQ/JfYP6WaWy1qNs/pJwaWg2/ZzJFkPLBxSSRBsN4cSs81kj6rcOyNjm
BZhECaD/LaYeB6BdUjTrL0bjfJ0apHIskei6eqcAqt2NAlr+VF5yEsiWdOUVXJUR
4Ly9873VrE85kjRjLi3iqzHZr/Zslh/xGKqLm98hcbyNcy4XrOq/HMkD8t96jAoi
gwgI7tPwwrHI1f0vWwNC1bxh9SXXPGaWwBlGCBbSC7TleQIfpxZAXrpt3q4GXqHL
KHwMXyIMOgfrhPWspYZO5LBrkHgWLStmy+f+25ji3GOf5CkEl3hRVrM8OsNQMQ57
H6c2omeN8DVC1proKftkV8S+DzZAr3mTZnf+hdtFDZcTOp3ZLiN3aano65x1g5mz
6QivAjvtNd8JeQs2T+FTJ/RHUyIzcLLrUk4xl+Evo7hZc/tW7qFKxYnys8CEkqSt
La3NRf5JAScCHpJH5xpMNzkYK75S6qjDEsp566As3EQb4U7miOw=
=jamw
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to