Your message dated Sun, 06 Mar 2022 09:50:56 +0000
with message-id <[email protected]>
and subject line Bug#1005015: fixed in mando 0.7.1-1
has caused the Debian Bug report #1005015,
regarding mando: ftbfs (test failures) with python 3.10
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 [email protected]
immediately.)


-- 
1005015: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005015
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mando
Version:
Severity: normal

Dear Maintainer,

current mando package fails to build whith python 3.10 due to test
failures. There are two cases:

a) collections import, fixed in upstream 0.7.0:
...
 File "/home/ubuntu/git/packages/mando/mando/mando/core.py", line 107,
in _generate_command
    doc = str(GoogleDocstring(doc, config))
  File "/home/ubuntu/git/packages/mando/mando/mando/napoleon/docstring.py",
line 115, in __init__
    elif isinstance(obj, collections.Callable): # type: ignore
AttributeError: module 'collections' has no attribute 'Callable'

Patch:
--- mando/mando/napoleon/docstring.py   2022-02-05 13:54:55.001545246 +0000
+++ mando-0.7.0/mando/napoleon/docstring.py     2020-03-16
11:01:40.000000000 +0000
@@ -11,7 +11,10 @@
     :license: BSD, see LICENSE for details.
 """

-import collections
+try:
+    from collections.abc import Callable
+except ImportError:
+    from collections import Callable
 import inspect
 import re

@@ -112,7 +115,7 @@
                 what = 'class'
             elif inspect.ismodule(obj):
                 what = 'module'
-            elif isinstance(obj, collections.Callable):  # type: ignore
+            elif isinstance(obj, Callable):  # type: ignore
                 what = 'function'
             else:
                 what = 'object'


b) help output, with a patch in https://github.com/rubik/mando/pull/54
=================================== FAILURES ===================================
_ test_google_docstring_help[simple_google_docstring --help 2
--arg2=test-usage: example.py simple_google_docstring [-h] [--arg2
ARG2] arg1\n\nExtended description.\n\npositional arguments:\n arg1
Description of `arg1`\n\noptional arguments:\n -h, --help show this
help message and exit\n --arg2 ARG2 Description of `arg2`\n] _

args = ['simple_google_docstring', '--help', '2', '--arg2=test']
result = 'usage: example.py simple_google_docstring [-h] [--arg2 ARG2]
arg1\n\nExtended description.\n\npositional arguments:\n...
`arg1`\n\noptional arguments:\n -h, --help show this help message and
exit\n --arg2 ARG2 Description of `arg2`\n'

    @pytest.mark.parametrize('args,result', GOOGLE_DOCSTRING_HELP_CASES)
    def test_google_docstring_help(args, result):
        args = args.split()
        with pytest.raises(SystemExit):
            with capture.capture_sys_output() as (stdout, stderr):
                program.execute(args)
> assert result == stdout.getvalue()
E AssertionError: assert 'usage: examp...n of `arg2`\n' == 'usage:
examp...n of `arg2`\n'
E Skipping 146 identical leading characters in diff, use -v to show
E 1`
E
E - options:
E + optional arguments:
E -h, --help show this help message and exit
E --arg2 ARG2 Description of `arg2`

mando/tests/test_google.py:57: AssertionError
_ test_numpy_docstring_help[simple_numpy_docstring --help 2
--arg2=test-usage: example.py simple_numpy_docstring [-h] [--arg2
ARG2] arg1\n\nExtended description.\n\npositional arguments:\n arg1
Description of `arg1`\n\noptional arguments:\n -h, --help show this
help message and exit\n --arg2 ARG2 Description of `arg2`\n] _

args = ['simple_numpy_docstring', '--help', '2', '--arg2=test']
result = 'usage: example.py simple_numpy_docstring [-h] [--arg2 ARG2]
arg1\n\nExtended description.\n\npositional arguments:\n ...
`arg1`\n\noptional arguments:\n -h, --help show this help message and
exit\n --arg2 ARG2 Description of `arg2`\n'

    @pytest.mark.parametrize('args,result', NUMPY_DOCSTRING_HELP_CASES)
    def test_numpy_docstring_help(args, result):
        args = args.split()
        with pytest.raises(SystemExit):
            with capture.capture_sys_output() as (stdout, stderr):
                program.execute(args)
> assert result == stdout.getvalue()
E AssertionError: assert 'usage: examp...n of `arg2`\n' == 'usage:
examp...n of `arg2`\n'
E Skipping 145 identical leading characters in diff, use -v to show
E 1`
E
E - options:
E + optional arguments:
E -h, --help show this help message and exit
E --arg2 ARG2 Description of `arg2`

mando/tests/test_numpy.py:62: AssertionError
=========================== short test summary info ============================
FAILED 
mando/tests/test_google.py::test_google_docstring_help[simple_google_docstring
--help 2 --arg2=test-usage: example.py simple_google_docstring [-h]
[--arg2 ARG2] arg1\n\nExtended description.\n\npositional arguments:\n
arg1 Description of `arg1`\n\noptional arguments:\n -h, --help show
this help message and exit\n --arg2 ARG2 Description of `arg2`\n]
FAILED 
mando/tests/test_numpy.py::test_numpy_docstring_help[simple_numpy_docstring
--help 2 --arg2=test-usage: example.py simple_numpy_docstring [-h]
[--arg2 ARG2] arg1\n\nExtended description.\n\npositional arguments:\n
arg1 Description of `arg1`\n\noptional arguments:\n -h, --help show
this help message and exit\n --arg2 ARG2 Description of `arg2`\n]
========================= 2 failed, 77 passed in 0.20s =========================

--- End Message ---
--- Begin Message ---
Source: mando
Source-Version: 0.7.1-1
Done: Neil Williams <[email protected]>

We believe that the bug you reported is fixed in the latest version of
mando, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Neil Williams <[email protected]> (supplier of updated mando 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 06 Mar 2022 08:43:02 +0000
Source: mando
Architecture: source
Version: 0.7.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Neil Williams <[email protected]>
Closes: 1005015
Changes:
 mando (0.7.1-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #1005015)
Checksums-Sha1:
 36e949b6ab8c4cae20e483a00a998357df75c76c 2170 mando_0.7.1-1.dsc
 beb7056e30684b44b97a6f22baf97be061669eb3 37797 mando_0.7.1.orig.tar.gz
 b6e959e64dc5dc2dc25385fc458dfb267ea724d0 4372 mando_0.7.1-1.debian.tar.xz
 ab0d926763ae4e8fc95c5fe2c26413c474447c28 8007 mando_0.7.1-1_amd64.buildinfo
Checksums-Sha256:
 af246c120e7c19a01c366c030f3a851fa2948d4e53932fb9accdf1be4d13e34d 2170 
mando_0.7.1-1.dsc
 29aa614effcb77758e9ace886d2390d69635d261c110749b0309213d6f784572 37797 
mando_0.7.1.orig.tar.gz
 83c0cece730cd2c2537eebc721f76ee099b002a7818b9e9d55d308a7054f3a40 4372 
mando_0.7.1-1.debian.tar.xz
 5a63a0514e364ab72aa55e33501515b801ee32849cd46af95d9a6d22a600fb6d 8007 
mando_0.7.1-1_amd64.buildinfo
Files:
 0ef10e1a29d9570e788715d79bb69b48 2170 python optional mando_0.7.1-1.dsc
 b6d3de17e735cfb4e2bd073ddbb25f9f 37797 python optional mando_0.7.1.orig.tar.gz
 8e79889800100c596ddc9445f712d7fd 4372 python optional 
mando_0.7.1-1.debian.tar.xz
 8f72f9ef7313a11affb238207e355b29 8007 python optional 
mando_0.7.1-1_amd64.buildinfo

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

iQIzBAEBCAAdFiEEf3HB6ceOc10DYMbM8WfkPIFDtoIFAmIkfqQACgkQ8WfkPIFD
toL2OhAAixaS6DJQWNUdmVNlS1KzbNcGUK80OwNpPyNfStiF9DbzEsIPSFHHvFei
t2IGs/oOiL73FliCeUPCRPms5I9hQJ8J2rsrb8DnxU7xJ/i8UYb/XItHuV5o5brO
oU2Q7ahvIJ4qHBCTA4yJOIZ5NjOLfEa+MguPG9oOEh1fDy5kjldsJaUNY1h4HmQv
NgtSPA6Y3MYC4Q+8AFd2S5MfSzQe1u/wbslygc+jC6do3VbZ9zWPz8shwyZsTHx4
e7W7oagomOuc9Mjpt49MimOEs2Xnz2Z3BniiVukAvzJw5hbZUkBLWCYI3kz1e7JW
z46h3KpaepCYxy0ebwhCPqvtrrJhNarbmc/JOAWcpQ0ajv2lCyHg9fCJ4GyEA4dD
BjHPHtEoB/5xFKK7wAOqJeJc4Qn0ubIy1d4dN8xQr3hvqNpFSJ4lDEv/31WAC4PW
SRcF98HK04sAimoDPahrki85RAOaiwhpY3Oj0sKOs/aPOanoIejinjHjT+YcYNrz
hEo0GqAMHe1aqRVJ5R0qBVj8C9pzqSuim2Z+EZY4wBFnSHKi2l6xAzUgmU+0uWo9
609aVzIFVkJyLFTfxwJ4lR6dGoTabcMJOguOxOezjE4dRvFCI3l9p/3IVSPnEH6I
Sxm2G3xMDjopyahqAxf8KzmWaRCkiNhI2OcEHEVWus1gg9xTB6E=
=C423
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to