Control: merge -1 917682
Control: reassign -1 python3-hamcrest 1.8.0-1
Control: affects -1 vim-youcompleteme

Hi

On Sat, Dec 29, 2018 at 09:39:19PM +0000, Santiago Vila wrote:
>   File "/usr/lib/python3/dist-packages/hamcrest/core/helpers/hasmethod.py", 
> line 13, in hasmethod
>     return isinstance(method, collections.Callable)
>   File "/usr/lib/python3.7/collections/__init__.py", line 52, in __getattr__
>     DeprecationWarning, stacklevel=2)
> DeprecationWarning: Using or importing the ABCs from 'collections' instead of 
> from 'collections.abc' is deprecated, and in 3.8 it will stop working

I am not a pythonista, but running a simplified version [0] of the
indicated code produces the same message, so I would happily delegate
this to python-hamcrest maintainers – Hi not-me David :) – who hopefully
know more as I am just puzzled:

The source code of this file [1] is different in that it doesn't import
collections and the "bad line" mentioned above:
|13:    return isinstance(method, collections.Callable)
is in the source just:
|12:    return callable(method)

Which is also what the python-hamcrest package code is and what is
produced if I rebuild this package locally… o_O ?!?


In general it seems like the pyhamcrest package could use some love, so
@David Villa Alises, let me add the question if you are still active in
Debian and/or if you are still interested in maintaining this package?

As the freeze is drawing near I would appreciate a reply in the next
week so that we can proceed accordingly – I am e.g. happy to sponsor
uploads if need be. On the other hand, if I get no reply I plan to
upload at least a no-change -2 revision soon to resolve at least the
immediate problem before following the MIA track.


Best regards & wishes for the upcoming new year

David Kalnischkies

[0]
$ python3
Python 3.7.2rc1 (default, Dec 12 2018, 06:25:49)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import collections
>>> collections.Callable
__main__:1: DeprecationWarning: Using or importing the ABCs from 'collections' 
instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
<class 'collections.abc.Callable'>
>>>

[1] 
https://sources.debian.org/src/pyhamcrest/1.8.0-1/src/hamcrest/core/helpers/hasmethod.py/

Attachment: signature.asc
Description: PGP signature

Reply via email to