Package: src:geventhttpclient
Version: 2.0.8-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
geventhttpclient ftbfs with Python 3.12:
[...]
==================================== ERRORS
====================================
__________ ERROR collecting src/geventhttpclient/tests/test_client.py
__________
ImportError while importing test module
'/<<PKGBUILDDIR>>/src/geventhttpclient/tests/test_client.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/geventhttpclient/tests/test_client.py:8: in <module>
from gevent.ssl import SSLError #@UnresolvedImport
/usr/lib/python3/dist-packages/gevent/ssl.py:32: in <module>
from gevent import _ssl3 as _source # pragma: no cover
/usr/lib/python3/dist-packages/gevent/_ssl3.py:53: in <module>
from ssl import match_hostname
E ImportError: cannot import name 'match_hostname' from 'ssl'
(/usr/lib/python3.12/ssl.py)
_________ ERROR collecting src/geventhttpclient/tests/test_headers.py
__________
ImportError while importing test module
'/<<PKGBUILDDIR>>/src/geventhttpclient/tests/test_headers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/geventhttpclient/tests/test_headers.py:5: in <module>
gevent.monkey.patch_all()
/usr/lib/python3/dist-packages/gevent/monkey.py:1279: in patch_all
patch_ssl(_warnings=_warnings, _first_time=first_time)
/usr/lib/python3/dist-packages/gevent/monkey.py:200: in ignores
return func(*args, **kwargs)
/usr/lib/python3/dist-packages/gevent/monkey.py:1044: in patch_ssl
gevent_mod, _ = _patch_module('ssl', _warnings=_warnings)
/usr/lib/python3/dist-packages/gevent/monkey.py:462: in _patch_module
gevent_module, target_module, target_module_name =
_check_availability(name)
/usr/lib/python3/dist-packages/gevent/monkey.py:448: in _check_availability
gevent_module = getattr(__import__('gevent.' + name), name)
/usr/lib/python3/dist-packages/gevent/ssl.py:32: in <module>
from gevent import _ssl3 as _source # pragma: no cover
/usr/lib/python3/dist-packages/gevent/_ssl3.py:53: in <module>
from ssl import match_hostname
E ImportError: cannot import name 'match_hostname' from 'ssl'
(/usr/lib/python3.12/ssl.py)
______ ERROR collecting src/geventhttpclient/tests/test_no_module_ssl.py
_______
ImportError while importing test module
'/<<PKGBUILDDIR>>/src/geventhttpclient/tests/test_no_module_ssl.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/geventhttpclient/tests/test_no_module_ssl.py:5: in <module>
import gevent.ssl
/usr/lib/python3/dist-packages/gevent/ssl.py:32: in <module>
from gevent import _ssl3 as _source # pragma: no cover
/usr/lib/python3/dist-packages/gevent/_ssl3.py:53: in <module>
from ssl import match_hostname
E ImportError: cannot import name 'match_hostname' from 'ssl'
(/usr/lib/python3.12/ssl.py)
___________ ERROR collecting src/geventhttpclient/tests/test_ssl.py
____________
ImportError while importing test module
'/<<PKGBUILDDIR>>/src/geventhttpclient/tests/test_ssl.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/geventhttpclient/tests/test_ssl.py:3: in <module>
gevent.monkey.patch_ssl()
/usr/lib/python3/dist-packages/gevent/monkey.py:200: in ignores
return func(*args, **kwargs)
/usr/lib/python3/dist-packages/gevent/monkey.py:1044: in patch_ssl
gevent_mod, _ = _patch_module('ssl', _warnings=_warnings)
/usr/lib/python3/dist-packages/gevent/monkey.py:462: in _patch_module
gevent_module, target_module, target_module_name =
_check_availability(name)
/usr/lib/python3/dist-packages/gevent/monkey.py:448: in _check_availability
gevent_module = getattr(__import__('gevent.' + name), name)
/usr/lib/python3/dist-packages/gevent/ssl.py:32: in <module>
from gevent import _ssl3 as _source # pragma: no cover
/usr/lib/python3/dist-packages/gevent/_ssl3.py:53: in <module>
from ssl import match_hostname
E ImportError: cannot import name 'match_hostname' from 'ssl'
(/usr/lib/python3.12/ssl.py)
=============================== warnings summary
===============================
../../../usr/lib/python3/dist-packages/gevent/events.py:74
/usr/lib/python3/dist-packages/gevent/events.py:74:
DeprecationWarning: pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import iter_entry_points
../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871
../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871:
DeprecationWarning: Deprecated call to
`pkg_resources.declare_namespace('zope')`.
Implementing implicit namespace packages (as specified in PEP 420) is
preferred to `pkg_resources.declare_namespace`. See
https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info
============================
ERROR src/geventhttpclient/tests/test_client.py
ERROR src/geventhttpclient/tests/test_headers.py
ERROR src/geventhttpclient/tests/test_no_module_ssl.py
ERROR src/geventhttpclient/tests/test_ssl.py
!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection
!!!!!!!!!!!!!!!!!!!!
======================== 3 warnings, 4 errors in 0.31s
=========================
E: pybuild pybuild:395: test: plugin custom failed with: exit code=2:
PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_geventhttpclient/build
python3.12 -m pytest -v -m 'not online'