Package: src:python-renault-api Version: 0.2.9-1 Severity: serious Tags: ftbfs trixie sid
Dear maintainer: During a rebuild of all packages in unstable, your package failed to build: -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12 * Building wheel... Successfully built renault_api-0.2.9-py3-none-any.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13 * Building wheel... Successfully built renault_api-0.2.9-py3-none-any.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ============================== platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build configfile: pyproject.toml plugins: asyncio-0.25.1, typeguard-4.4.1 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None collected 291 items tests/cli/test_account.py ... [ 1%] tests/cli/test_client.py .... [ 2%] tests/cli/test_main.py F... [ 3%] tests/cli/test_session.py ..... [ 5%] tests/cli/test_vehicle.py .................... [ 12%] tests/cli/test_vehicle_charge.py ............... [ 17%] tests/cli/test_vehicle_hvac.py ...... [ 19%] tests/gigya/test_gigya.py .... [ 20%] tests/gigya/test_gigya_error.py ...... [ 23%] tests/gigya/test_gigya_models.py ...... [ 25%] tests/kamereon/test_kamereon.py ..... [ 26%] tests/kamereon/test_kamereon_error.py ..................... [ 34%] tests/kamereon/test_kamereon_person.py . [ 34%] tests/kamereon/test_kamereon_vehicle_action.py .......... [ 37%] tests/kamereon/test_kamereon_vehicle_contract.py .... [ 39%] tests/kamereon/test_kamereon_vehicle_data.py ........................... [ 48%] ................... [ 54%] tests/kamereon/test_kamereon_vehicle_details.py .. [ 55%] tests/kamereon/test_kamereon_vehicle_gateway.py ..... [ 57%] tests/kamereon/test_kamereon_vehicles.py ........... [ 61%] tests/test_api_keys.py ..............................sssssssssssssssssss [ 78%] sssssssssss. [ 82%] tests/test_credential.py .. [ 82%] tests/test_credential_store.py ....... [ 85%] tests/test_renault_account.py .... [ 86%] tests/test_renault_client.py .... [ 87%] tests/test_renault_session.py ........ [ 90%] tests/test_renault_vehicle.py ........................... [100%] =================================== FAILURES =================================== ______________________________ test_main_succeeds ______________________________ cli_runner = <click.testing.CliRunner object at 0x7f0cd45ebcb0> def test_main_succeeds(cli_runner: CliRunner) -> None: """It exits with a status code of zero.""" result = cli_runner.invoke(__main__.main) > assert result.exit_code == 0, result.exception E AssertionError: SystemExit(2) E assert 2 == 0 E + where 2 = <Result SystemExit(2)>.exit_code tests/cli/test_main.py:46: AssertionError =============================== warnings summary =============================== tests/cli/test_account.py: 3 warnings tests/cli/test_client.py: 2 warnings tests/cli/test_vehicle.py: 20 warnings tests/cli/test_vehicle_charge.py: 15 warnings tests/cli/test_vehicle_hvac.py: 6 warnings tests/gigya/test_gigya.py: 1 warning tests/kamereon/test_kamereon.py: 5 warnings tests/test_credential.py: 1 warning tests/test_credential_store.py: 3 warnings tests/test_renault_account.py: 5 warnings tests/test_renault_client.py: 5 warnings tests/test_renault_session.py: 2 warnings tests/test_renault_vehicle.py: 28 warnings /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/fixtures.py:41: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). payload={"exp": datetime.datetime.utcnow() + timedelta}, tests/cli/test_account.py::test_list_vehicles_prompt tests/cli/test_client.py::test_login_prompt tests/cli/test_client.py::test_list_accounts_prompt tests/cli/test_vehicle.py::test_vehicle_status_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/renault_api/cli/renault_client.py:34: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_account.py::test_list_vehicles_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/cli/test_account.py:55: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_client.py::test_login_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/cli/test_client.py:37: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_client.py::test_list_accounts_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/cli/test_client.py:76: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_vehicle.py::test_vehicle_status_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/cli/test_vehicle.py:268: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/kamereon/test_kamereon.py::test_set_vehicle_action /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon.py:107: DeprecationWarning: You should use the full endpoint: actions/hvac-start. assert await kamereon.set_vehicle_action( tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon_vehicle_contract.py:44: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "battery-status") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon_vehicle_contract.py:59: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "battery-status") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon_vehicle_contract.py:60: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "charge-mode") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon_vehicle_contract.py:61: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "charging-settings") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon_vehicle_contract.py:62: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "hvac-history") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon_vehicle_contract.py:63: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "hvac-sessions") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/kamereon/test_kamereon_vehicle_contract.py:64: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "hvac-status") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_renault_vehicle.py:99: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("battery-status") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_renault_vehicle.py:100: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("hvac-status") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_renault_vehicle.py:101: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("charge-mode") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_renault_vehicle.py:110: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("battery-status") -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/cli/test_main.py::test_main_succeeds - AssertionError: SystemExi... =========== 1 failed, 260 passed, 30 skipped, 116 warnings in 1.83s ============ E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ============================== platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build configfile: pyproject.toml plugins: asyncio-0.25.1, typeguard-4.4.1 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None collected 291 items tests/cli/test_account.py ... [ 1%] tests/cli/test_client.py .... [ 2%] tests/cli/test_main.py F... [ 3%] tests/cli/test_session.py ..... [ 5%] tests/cli/test_vehicle.py .................... [ 12%] tests/cli/test_vehicle_charge.py ............... [ 17%] tests/cli/test_vehicle_hvac.py ...... [ 19%] tests/gigya/test_gigya.py .... [ 20%] tests/gigya/test_gigya_error.py ...... [ 23%] tests/gigya/test_gigya_models.py ...... [ 25%] tests/kamereon/test_kamereon.py ..... [ 26%] tests/kamereon/test_kamereon_error.py ..................... [ 34%] tests/kamereon/test_kamereon_person.py . [ 34%] tests/kamereon/test_kamereon_vehicle_action.py .......... [ 37%] tests/kamereon/test_kamereon_vehicle_contract.py .... [ 39%] tests/kamereon/test_kamereon_vehicle_data.py ........................... [ 48%] ................... [ 54%] tests/kamereon/test_kamereon_vehicle_details.py .. [ 55%] tests/kamereon/test_kamereon_vehicle_gateway.py ..... [ 57%] tests/kamereon/test_kamereon_vehicles.py ........... [ 61%] tests/test_api_keys.py ..............................sssssssssssssssssss [ 78%] sssssssssss. [ 82%] tests/test_credential.py .. [ 82%] tests/test_credential_store.py ....... [ 85%] tests/test_renault_account.py .... [ 86%] tests/test_renault_client.py .... [ 87%] tests/test_renault_session.py ........ [ 90%] tests/test_renault_vehicle.py ........................... [100%] =================================== FAILURES =================================== ______________________________ test_main_succeeds ______________________________ cli_runner = <click.testing.CliRunner object at 0x7f847f747570> def test_main_succeeds(cli_runner: CliRunner) -> None: """It exits with a status code of zero.""" result = cli_runner.invoke(__main__.main) > assert result.exit_code == 0, result.exception E AssertionError: SystemExit(2) E assert 2 == 0 E + where 2 = <Result SystemExit(2)>.exit_code tests/cli/test_main.py:46: AssertionError =============================== warnings summary =============================== tests/cli/test_account.py: 3 warnings tests/cli/test_client.py: 2 warnings tests/cli/test_vehicle.py: 20 warnings tests/cli/test_vehicle_charge.py: 15 warnings tests/cli/test_vehicle_hvac.py: 6 warnings tests/gigya/test_gigya.py: 1 warning tests/kamereon/test_kamereon.py: 5 warnings tests/test_credential.py: 1 warning tests/test_credential_store.py: 3 warnings tests/test_renault_account.py: 5 warnings tests/test_renault_client.py: 5 warnings tests/test_renault_session.py: 2 warnings tests/test_renault_vehicle.py: 28 warnings /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/fixtures.py:41: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). payload={"exp": datetime.datetime.utcnow() + timedelta}, tests/cli/test_account.py::test_list_vehicles_prompt tests/cli/test_client.py::test_login_prompt tests/cli/test_client.py::test_list_accounts_prompt tests/cli/test_vehicle.py::test_vehicle_status_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/renault_api/cli/renault_client.py:34: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_account.py::test_list_vehicles_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/cli/test_account.py:55: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_client.py::test_login_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/cli/test_client.py:37: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_client.py::test_list_accounts_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/cli/test_client.py:76: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_vehicle.py::test_vehicle_status_prompt /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/cli/test_vehicle.py:268: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. default_locale = getdefaultlocale()[0] tests/cli/test_vehicle_charge.py: 12 warnings tests/cli/test_vehicle_hvac.py: 7 warnings /usr/lib/python3/dist-packages/dateparser/utils/strptime.py:94: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious and fails to parse leap day. The default behavior will change in Python 3.15 to either always raise an exception or to use a different default year (TBD). To avoid trouble, add a specific year to the input & format. See https://github.com/python/cpython/issues/70647. obj = datetime(*__strptime(date_string, format)[:-3]) tests/kamereon/test_kamereon.py::test_set_vehicle_action /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon.py:107: DeprecationWarning: You should use the full endpoint: actions/hvac-start. assert await kamereon.set_vehicle_action( tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_contract.py:44: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "battery-status") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_contract.py:59: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "battery-status") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_contract.py:60: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "charge-mode") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_contract.py:61: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "charging-settings") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_contract.py:62: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "hvac-history") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_contract.py:63: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "hvac-sessions") tests/kamereon/test_kamereon_vehicle_contract.py::test_has_required_contract_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_contract.py:64: DeprecationWarning: This method is deprecated. assert has_required_contracts(response.contractList, "hvac-status") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_renault_vehicle.py:99: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("battery-status") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_renault_vehicle.py:100: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("hvac-status") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_1 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_renault_vehicle.py:101: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("charge-mode") tests/test_renault_vehicle.py::test_has_contract_for_endpoint_2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_renault_vehicle.py:110: DeprecationWarning: This method is deprecated. assert await vehicle.has_contract_for_endpoint("battery-status") -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/cli/test_main.py::test_main_succeeds - AssertionError: SystemExi... =========== 1 failed, 260 passed, 30 skipped, 135 warnings in 1.79s ============ E: pybuild pybuild:389: 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.12 3.13" returned exit code 13 make: *** [debian/rules:3: binary] Error 25 dpkg-buildpackage: error: debian/rules binary 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/202502/ 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 add an affects on src:python-renault-api, so that this is still visible in the BTS web page for this package. Thanks.