Package: src:python-mypermobil
Version: 0.1.8-1.1
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules build
dh build --with=python3 --buildsystem=pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.13 setup.py config
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'test_requires'
warnings.warn(msg)
running config
I: pybuild base:311: python3.12 setup.py config
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'test_requires'
warnings.warn(msg)
running config
dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3.13 setup.py build
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'test_requires'
warnings.warn(msg)
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/mypermobil
copying ./mypermobil/mypermobil.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/mypermobil
copying ./mypermobil/const.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/mypermobil
copying ./mypermobil/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/mypermobil
copying ./mypermobil/py.typed ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/mypermobil
I: pybuild base:311: /usr/bin/python3 setup.py build
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning:
Unknown distribution option: 'test_requires'
warnings.warn(msg)
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/mypermobil
copying ./mypermobil/mypermobil.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/mypermobil
copying ./mypermobil/const.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/mypermobil
copying ./mypermobil/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/mypermobil
copying ./mypermobil/py.typed ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/mypermobil
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build;
python3.13 -m pytest -k "not test_region"
============================= test session starts ==============================
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
configfile: pyproject.toml
plugins: typeguard-4.4.1
collected 39 items / 1 deselected / 38 selected
tests/auth_test.py ........ [ 21%]
tests/item_test.py ........F....... [ 63%]
tests/misc_test.py .. [ 68%]
tests/requests_test.py .... [ 78%]
tests/validation_test.py ........ [100%]
=================================== FAILURES ===================================
______________________ TestRequest.test_request_item_404 _______________________
self = <tests.item_test.TestRequest testMethod=test_request_item_404>
async def test_request_item_404(self):
status = 404
msg = "not found"
resp = AsyncMock(status=status)
resp.json = AsyncMock(return_value={"error": msg})
self.api.make_request = AsyncMock(return_value=resp)
> with self.assertRaises(MyPermobilAPIException):
E AssertionError: MyPermobilAPIException not raised
tests/item_test.py:57: AssertionError
=============================== warnings summary ===============================
tests/auth_test.py::TestAuth::test_deauthenticate
/usr/lib/python3/dist-packages/aiounittest/helpers.py:119:
DeprecationWarning: There is no current event loop
old_loop = asyncio.get_event_loop()
tests/requests_test.py::TestRequest::test_battery_info
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_battery_info of <tests.requests_test.TestRequest
testMethod=test_battery_info>>)
return self.run(*args, **kwds)
tests/requests_test.py::TestRequest::test_daily_usage
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_daily_usage of <tests.requests_test.TestRequest
testMethod=test_daily_usage>>)
return self.run(*args, **kwds)
tests/requests_test.py::TestRequest::test_gps_info
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_gps_info of <tests.requests_test.TestRequest
testMethod=test_gps_info>>)
return self.run(*args, **kwds)
tests/requests_test.py::TestRequest::test_records_info
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_records_info of <tests.requests_test.TestRequest
testMethod=test_records_info>>)
return self.run(*args, **kwds)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/item_test.py::TestRequest::test_request_item_404 - AssertionErro...
============ 1 failed, 37 passed, 1 deselected, 5 warnings in 0.64s ============
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -k "not
test_region"
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build;
python3.12 -m pytest -k "not test_region"
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build
configfile: pyproject.toml
plugins: typeguard-4.4.1
collected 39 items / 1 deselected / 38 selected
tests/auth_test.py ........ [ 21%]
tests/item_test.py ................ [ 63%]
tests/misc_test.py .. [ 68%]
tests/requests_test.py .... [ 78%]
tests/validation_test.py ........ [100%]
=============================== warnings summary ===============================
tests/auth_test.py::TestAuth::test_deauthenticate
/usr/lib/python3/dist-packages/aiounittest/helpers.py:119:
DeprecationWarning: There is no current event loop
old_loop = asyncio.get_event_loop()
tests/requests_test.py::TestRequest::test_battery_info
/usr/lib/python3.12/unittest/case.py:690: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_battery_info of <tests.requests_test.TestRequest
testMethod=test_battery_info>>)
return self.run(*args, **kwds)
tests/requests_test.py::TestRequest::test_daily_usage
/usr/lib/python3.12/unittest/case.py:690: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_daily_usage of <tests.requests_test.TestRequest
testMethod=test_daily_usage>>)
return self.run(*args, **kwds)
tests/requests_test.py::TestRequest::test_gps_info
/usr/lib/python3.12/unittest/case.py:690: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_gps_info of <tests.requests_test.TestRequest
testMethod=test_gps_info>>)
return self.run(*args, **kwds)
tests/requests_test.py::TestRequest::test_records_info
/usr/lib/python3.12/unittest/case.py:690: DeprecationWarning: It is
deprecated to return a value that is not None from a test case (<bound method
TestRequest.test_records_info of <tests.requests_test.TestRequest
testMethod=test_records_info>>)
return self.run(*args, **kwds)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================= 38 passed, 1 deselected, 5 warnings in 0.63s =================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13
3.12" returned exit code 13
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202412/
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 could not 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 affects, so that this is still visible in the BTS web
page for this package.
Thanks.