Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202606/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-aioopenexchangerates, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
make: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
dh clean --buildsystem=pybuild --with python3
dh_auto_clean -O--buildsystem=pybuild
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
debian/rules binary
make: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
dh binary --buildsystem=pybuild --with python3
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
[... snipped ...]
reason: Optional[str] = None) -> ClientResponse:
if response_class is None:
response_class = ClientResponse
if payload is not None:
body = json.dumps(payload)
if not isinstance(body, bytes):
body = str.encode(body)
if request_headers is None:
request_headers = {}
loop = Mock()
loop.get_debug = Mock()
loop.get_debug.return_value = True
kwargs = {} # type: Dict[str, Any]
kwargs['request_info'] = RequestInfo(
url=url,
method=method,
headers=CIMultiDictProxy(CIMultiDict(**request_headers)),
)
kwargs['writer'] = None
kwargs['continue100'] = None
kwargs['timer'] = TimerNoop()
kwargs['traces'] = []
kwargs['loop'] = loop
kwargs['session'] = None
# We need to initialize headers manually
_headers = CIMultiDict({hdrs.CONTENT_TYPE: content_type})
if headers:
_headers.update(headers)
raw_headers = self._build_raw_headers(_headers)
/usr/lib/python3/dist-packages/aioresponses/core.py:171: TypeError
______ test_response_error[400-OpenExchangeRatesClientError-Bad Request] _______
client = <aioopenexchangerates.client.Client object at 0x7fa5a2dc46b0>
mock_response = <aioresponses.core.aioresponses object at 0x7fa5a2dc4c00>
generate_url = <function generate_url.<locals>.generate_url_ at 0x7fa5a2ca98a0>
status = 400
error = <class 'aioopenexchangerates.exceptions.OpenExchangeRatesClientError'>
message = 'Bad Request'
@pytest.mark.parametrize(
"status, error, message",
[
(401, OpenExchangeRatesAuthError, "Unauthorized"),
(403, OpenExchangeRatesAuthError, "Forbidden"),
(429, OpenExchangeRatesRateLimitError, "Too Many Requests"),
(400, OpenExchangeRatesClientError, "Bad Request"),
(500, OpenExchangeRatesClientError, "Internal Server Error"),
],
)
async def test_response_error(
client: Client,
mock_response: aioresponses,
generate_url: Callable[..., str],
status: int,
error: type[Exception],
message: str,
) -> None:
"""Test get_latest."""
mock_response.get(
generate_url("latest.json", app_id=client.api_key, base="USD"),
status=status,
)
with pytest.raises(error) as err:
tests/test_client.py:43:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
aioopenexchangerates/client.py:63: in get_latest
response = await self.request("latest.json", params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aioopenexchangerates/client.py:33: in request
return await self.session.get(url, raise_for_status=True, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<string>:3: in _request
???
/usr/lib/python3.13/unittest/mock.py:2332: in _execute_mock_call
result = await effect(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:512: in _request_mock
response = await self.match(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:456: in match
response_or_exc = await matcher.build_response(
/usr/lib/python3/dist-packages/aioresponses/core.py:202: in build_response
resp = self._build_response(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <aioresponses.core.RequestMatch object at 0x7fa5a2cd4270>
url = URL('https://openexchangerates.org/api/latest.json?app_id=test-api-key&base=USD')
method = 'get', request_headers = {}, status = 400, body = b''
content_type = 'application/json', payload = None, headers = None
response_class = <class 'aiohttp.client_reqrep.ClientResponse'>
reason = 'Bad Request'
def _build_response(self, url: 'Union[URL, str]',
method: str = hdrs.METH_GET,
request_headers: Optional[Dict] = None,
status: int = 200,
body: Union[str, bytes] = '',
content_type: str = 'application/json',
payload: Optional[Dict] = None,
headers: Optional[Dict] = None,
response_class: Optional[Type[ClientResponse]] = None,
reason: Optional[str] = None) -> ClientResponse:
if response_class is None:
response_class = ClientResponse
if payload is not None:
body = json.dumps(payload)
if not isinstance(body, bytes):
body = str.encode(body)
if request_headers is None:
request_headers = {}
loop = Mock()
loop.get_debug = Mock()
loop.get_debug.return_value = True
kwargs = {} # type: Dict[str, Any]
kwargs['request_info'] = RequestInfo(
url=url,
method=method,
headers=CIMultiDictProxy(CIMultiDict(**request_headers)),
)
kwargs['writer'] = None
kwargs['continue100'] = None
kwargs['timer'] = TimerNoop()
kwargs['traces'] = []
kwargs['loop'] = loop
kwargs['session'] = None
# We need to initialize headers manually
_headers = CIMultiDict({hdrs.CONTENT_TYPE: content_type})
if headers:
_headers.update(headers)
raw_headers = self._build_raw_headers(_headers)
/usr/lib/python3/dist-packages/aioresponses/core.py:171: TypeError
_ test_response_error[500-OpenExchangeRatesClientError-Internal Server Error] __
client = <aioopenexchangerates.client.Client object at 0x7fa5a2c74a50>
mock_response = <aioresponses.core.aioresponses object at 0x7fa5a2c74b50>
generate_url = <function generate_url.<locals>.generate_url_ at 0x7fa5a2ca8f40>
status = 500
error = <class 'aioopenexchangerates.exceptions.OpenExchangeRatesClientError'>
message = 'Internal Server Error'
@pytest.mark.parametrize(
"status, error, message",
[
(401, OpenExchangeRatesAuthError, "Unauthorized"),
(403, OpenExchangeRatesAuthError, "Forbidden"),
(429, OpenExchangeRatesRateLimitError, "Too Many Requests"),
(400, OpenExchangeRatesClientError, "Bad Request"),
(500, OpenExchangeRatesClientError, "Internal Server Error"),
],
)
async def test_response_error(
client: Client,
mock_response: aioresponses,
generate_url: Callable[..., str],
status: int,
error: type[Exception],
message: str,
) -> None:
"""Test get_latest."""
mock_response.get(
generate_url("latest.json", app_id=client.api_key, base="USD"),
status=status,
)
with pytest.raises(error) as err:
tests/test_client.py:43:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
aioopenexchangerates/client.py:63: in get_latest
response = await self.request("latest.json", params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aioopenexchangerates/client.py:33: in request
return await self.session.get(url, raise_for_status=True, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<string>:3: in _request
???
/usr/lib/python3.13/unittest/mock.py:2332: in _execute_mock_call
result = await effect(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:512: in _request_mock
response = await self.match(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:456: in match
response_or_exc = await matcher.build_response(
/usr/lib/python3/dist-packages/aioresponses/core.py:202: in build_response
resp = self._build_response(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <aioresponses.core.RequestMatch object at 0x7fa5a2c76150>
url = URL('https://openexchangerates.org/api/latest.json?app_id=test-api-key&base=USD')
method = 'get', request_headers = {}, status = 500, body = b''
content_type = 'application/json', payload = None, headers = None
response_class = <class 'aiohttp.client_reqrep.ClientResponse'>
reason = 'Internal Server Error'
def _build_response(self, url: 'Union[URL, str]',
method: str = hdrs.METH_GET,
request_headers: Optional[Dict] = None,
status: int = 200,
body: Union[str, bytes] = '',
content_type: str = 'application/json',
payload: Optional[Dict] = None,
headers: Optional[Dict] = None,
response_class: Optional[Type[ClientResponse]] = None,
reason: Optional[str] = None) -> ClientResponse:
if response_class is None:
response_class = ClientResponse
if payload is not None:
body = json.dumps(payload)
if not isinstance(body, bytes):
body = str.encode(body)
if request_headers is None:
request_headers = {}
loop = Mock()
loop.get_debug = Mock()
loop.get_debug.return_value = True
kwargs = {} # type: Dict[str, Any]
kwargs['request_info'] = RequestInfo(
url=url,
method=method,
headers=CIMultiDictProxy(CIMultiDict(**request_headers)),
)
kwargs['writer'] = None
kwargs['continue100'] = None
kwargs['timer'] = TimerNoop()
kwargs['traces'] = []
kwargs['loop'] = loop
kwargs['session'] = None
# We need to initialize headers manually
_headers = CIMultiDict({hdrs.CONTENT_TYPE: content_type})
if headers:
_headers.update(headers)
raw_headers = self._build_raw_headers(_headers)
/usr/lib/python3/dist-packages/aioresponses/core.py:171: TypeError
---------- coverage: platform linux, python 3.13.12-final-0 ----------
Name Stmts Miss Branch BrPart Cover Missing
----------------------------------------------------------------------------
aioopenexchangerates/client.py 42 9 8 0 70% 35-41, 54, 64
----------------------------------------------------------------------------
TOTAL 65 9 8 0 79%
6 files skipped due to complete coverage.
=========================== short test summary info ============================
FAILED tests/model/test_currencies.py::test_get_latest_symbols - TypeError: C...
FAILED tests/model/test_latest.py::test_get_latest[USD-USD] - TypeError: Clie...
FAILED tests/model/test_latest.py::test_get_latest[EUR-EUR] - TypeError: Clie...
FAILED tests/model/test_latest.py::test_get_latest_symbols - TypeError: Clien...
FAILED tests/test_client.py::test_response_error[401-OpenExchangeRatesAuthError-Unauthorized]
FAILED tests/test_client.py::test_response_error[403-OpenExchangeRatesAuthError-Forbidden]
FAILED tests/test_client.py::test_response_error[429-OpenExchangeRatesRateLimitError-Too Many Requests]
FAILED tests/test_client.py::test_response_error[400-OpenExchangeRatesClientError-Bad Request]
FAILED tests/test_client.py::test_response_error[500-OpenExchangeRatesClientError-Internal Server Error]
========================= 9 failed, 3 passed in 0.76s ==========================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" --parallel=2 returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------