--- Begin Message ---
Source: aioelectricitymaps
Version: 1.0.0-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20250107 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> 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
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.12_aioelectricitymaps
>
> * Building wheel...
> Successfully built aioelectricitymaps-0.0.0-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
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.13_aioelectricitymaps
>
> * Building wheel...
> Successfully built aioelectricitymaps-0.0.0-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
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.12_aioelectricitymaps/build;
> python3.12 -m pytest --no-cov
> /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.8, pytest-8.3.4, pluggy-1.5.0
> rootdir:
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.12_aioelectricitymaps/build
> configfile: pyproject.toml
> plugins: cov-5.0.0, asyncio-0.25.1, typeguard-4.4.1, syrupy-4.8.0
> asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None
> collected 12 items
>
> tests/test_electricitymaps.py .........F.F
> [100%]
>
> =================================== FAILURES
> ===================================
> _________________________ test_power_breakdown_history
> _________________________
>
> electricitymaps_client = ElectricityMaps(token='abc123',
> session=<aiohttp.client.ClientSession object at 0x7fde545c8980>,
> _close_session=False)
> responses = <aioresponses.core.aioresponses object at 0x7fde545c89e0>
> snapshot = PowerBreakdownHistory(zone='DE',
> history=[PowerBreakdown(time=datetime.datetime(2024, 3, 5, 20, 0,
> tzinfo=datetime.tim...=48570, power_import_total=5798,
> power_export_total=1467, is_estimated=True,
> estimation_method='TIME_SLICER_AVERAGE')])
>
> async def test_power_breakdown_history(
> electricitymaps_client: ElectricityMaps,
> responses: aioresponses,
> snapshot: SnapshotAssertion,
> ) -> None:
> """Test power_breakdown_history."""
> responses.get(
>
> "https://api.electricitymap.org/v3/power-breakdown/history?zone=DE",
> status=200,
> headers={"Content-Type": "application/json"},
> body=load_fixture("power_breakdown_history.json"),
> )
> > assert (
> await electricitymaps_client.power_breakdown_history(
> ZoneRequest("DE"),
> )
> == snapshot
> )
> E AssertionError: assert [+ received] == [- snapshot]
> E - ....timezone.utc), power_consumption_breakdown={'nuclear': 819,
> 'geothermal': 19, 'biomass': 5117, 'coal': 21057, 'wind': 12635, 'solar': 0,
> 'hydro': 3133, 'gas': 9511, 'oil': 353, 'unknown': 365, 'hydro discharge':
> 869, 'battery discharge': 0}, power_production_breakdown={'nuclear': None,
> 'geothermal': 21, 'biomass': 5360, 'coal': 22506, 'wind': 12590, 'solar': 0,
> 'hydro': 1634, 'gas': 10192, 'oil': 354, 'unknown': 335, 'hydro discharge':
> 845, 'battery discharge': None}, power_import_breakdown={'AT': 0, 'BE': 0,
> 'CH': 28, 'CZ': 783, 'FR': 643, 'LU': 0, 'NL': 0, 'PL': 0, 'DK-DK1': 1589,
> 'DK-DK2': 660, '...
> E
> E ...Full output truncated (2 lines hidden), use '-vv' to show
>
> tests/test_electricitymaps.py:169: AssertionError
> ________________________ test_carbon_intensity_history
> _________________________
>
> electricitymaps_client = ElectricityMaps(token='abc123',
> session=<aiohttp.client.ClientSession object at 0x7fde545b60f0>,
> _close_session=False)
> responses = <aioresponses.core.aioresponses object at 0x7fde545b6ed0>
> snapshot = CarbonIntensityHistory(zone='DE',
> history=[CarbonIntensity(carbon_intensity=599,
> timestamp=datetime.datetime(2024, 3, ...datetime.timezone.utc),
> emission_factor_type='lifecycle', is_estimated=True,
> estimation_method='TIME_SLICER_AVERAGE')])
>
> async def test_carbon_intensity_history(
> electricitymaps_client: ElectricityMaps,
> responses: aioresponses,
> snapshot: SnapshotAssertion,
> ) -> None:
> """Test power_breakdown_history."""
> responses.get(
>
> "https://api.electricitymap.org/v3/carbon-intensity/history?zone=DE",
> status=200,
> headers={"Content-Type": "application/json"},
> body=load_fixture("carbon_intensity_history.json"),
> )
> > assert (
> await electricitymaps_client.carbon_intensity_history(
> ZoneRequest("DE"),
> )
> == snapshot
> )
> E AssertionError: assert [+ received] == [- snapshot]
> E - CarbonIntensityHistory(zone='DE',
> history=[CarbonIntensity(carbon_intensity=599,
> timestamp=datetime.datetime(2024, 3, 5, 20, 0, tzinfo=datetime.timezone.utc),
> updated_at=datetime.datetime(2024, 3, 6, 15, 48, 54, 12000,
> tzinfo=datetime.timezone.utc), emission_factor_type='lifecycle',
> is_estimated=False, estimation_method=None),
> CarbonIntensity(carbon_intensity=607, timestamp=datetime.datetime(2024, 3, 5,
> 21, 0, tzinfo=datetime.timezone.utc), updated_at=datetime.datetime(2024, 3,
> 6, 11, 49, 4, 367000, tzinfo=datetime.timezone.utc),
> emission_factor_type='lifecycle', is_estimated=False, estimation_method=No...
> E
> E ...Full output truncated (2 lines hidden), use '-vv' to show
>
> tests/test_electricitymaps.py:209: AssertionError
> --------------------------- snapshot report summary
> ----------------------------
> 2 snapshots failed. 5 snapshots passed.
> =========================== short test summary info
> ============================
> FAILED tests/test_electricitymaps.py::test_power_breakdown_history -
> Assertio...
> FAILED tests/test_electricitymaps.py::test_carbon_intensity_history -
> Asserti...
> ========================= 2 failed, 10 passed in 0.22s
> =========================
> E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.12_aioelectricitymaps/build;
> python3.12 -m pytest --no-cov
> I: pybuild base:311: cd
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.13_aioelectricitymaps/build;
> python3.13 -m pytest --no-cov
> /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.1, pytest-8.3.4, pluggy-1.5.0
> rootdir:
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.13_aioelectricitymaps/build
> configfile: pyproject.toml
> plugins: cov-5.0.0, asyncio-0.25.1, typeguard-4.4.1, syrupy-4.8.0
> asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None
> collected 12 items
>
> tests/test_electricitymaps.py .........F.F
> [100%]
>
> =================================== FAILURES
> ===================================
> _________________________ test_power_breakdown_history
> _________________________
>
> electricitymaps_client = ElectricityMaps(token='abc123',
> session=<aiohttp.client.ClientSession object at 0x7f6dcc2f6cf0>,
> _close_session=False)
> responses = <aioresponses.core.aioresponses object at 0x7f6dcc10f450>
> snapshot = PowerBreakdownHistory(zone='DE',
> history=[PowerBreakdown(time=datetime.datetime(2024, 3, 5, 20, 0,
> tzinfo=datetime.tim...=48570, power_import_total=5798,
> power_export_total=1467, is_estimated=True,
> estimation_method='TIME_SLICER_AVERAGE')])
>
> async def test_power_breakdown_history(
> electricitymaps_client: ElectricityMaps,
> responses: aioresponses,
> snapshot: SnapshotAssertion,
> ) -> None:
> """Test power_breakdown_history."""
> responses.get(
>
> "https://api.electricitymap.org/v3/power-breakdown/history?zone=DE",
> status=200,
> headers={"Content-Type": "application/json"},
> body=load_fixture("power_breakdown_history.json"),
> )
> > assert (
> await electricitymaps_client.power_breakdown_history(
> ZoneRequest("DE"),
> )
> == snapshot
> )
> E AssertionError: assert [+ received] == [- snapshot]
> E - ....timezone.utc), power_consumption_breakdown={'nuclear': 819,
> 'geothermal': 19, 'biomass': 5117, 'coal': 21057, 'wind': 12635, 'solar': 0,
> 'hydro': 3133, 'gas': 9511, 'oil': 353, 'unknown': 365, 'hydro discharge':
> 869, 'battery discharge': 0}, power_production_breakdown={'nuclear': None,
> 'geothermal': 21, 'biomass': 5360, 'coal': 22506, 'wind': 12590, 'solar': 0,
> 'hydro': 1634, 'gas': 10192, 'oil': 354, 'unknown': 335, 'hydro discharge':
> 845, 'battery discharge': None}, power_import_breakdown={'AT': 0, 'BE': 0,
> 'CH': 28, 'CZ': 783, 'FR': 643, 'LU': 0, 'NL': 0, 'PL': 0, 'DK-DK1': 1589,
> 'DK-DK2': 660, '...
> E
> E ...Full output truncated (2 lines hidden), use '-vv' to show
>
> tests/test_electricitymaps.py:169: AssertionError
> ________________________ test_carbon_intensity_history
> _________________________
>
> electricitymaps_client = ElectricityMaps(token='abc123',
> session=<aiohttp.client.ClientSession object at 0x7f6dcc2f7df0>,
> _close_session=False)
> responses = <aioresponses.core.aioresponses object at 0x7f6dcc10ae40>
> snapshot = CarbonIntensityHistory(zone='DE',
> history=[CarbonIntensity(carbon_intensity=599,
> timestamp=datetime.datetime(2024, 3, ...datetime.timezone.utc),
> emission_factor_type='lifecycle', is_estimated=True,
> estimation_method='TIME_SLICER_AVERAGE')])
>
> async def test_carbon_intensity_history(
> electricitymaps_client: ElectricityMaps,
> responses: aioresponses,
> snapshot: SnapshotAssertion,
> ) -> None:
> """Test power_breakdown_history."""
> responses.get(
>
> "https://api.electricitymap.org/v3/carbon-intensity/history?zone=DE",
> status=200,
> headers={"Content-Type": "application/json"},
> body=load_fixture("carbon_intensity_history.json"),
> )
> > assert (
> await electricitymaps_client.carbon_intensity_history(
> ZoneRequest("DE"),
> )
> == snapshot
> )
> E AssertionError: assert [+ received] == [- snapshot]
> E - CarbonIntensityHistory(zone='DE',
> history=[CarbonIntensity(carbon_intensity=599,
> timestamp=datetime.datetime(2024, 3, 5, 20, 0, tzinfo=datetime.timezone.utc),
> updated_at=datetime.datetime(2024, 3, 6, 15, 48, 54, 12000,
> tzinfo=datetime.timezone.utc), emission_factor_type='lifecycle',
> is_estimated=False, estimation_method=None),
> CarbonIntensity(carbon_intensity=607, timestamp=datetime.datetime(2024, 3, 5,
> 21, 0, tzinfo=datetime.timezone.utc), updated_at=datetime.datetime(2024, 3,
> 6, 11, 49, 4, 367000, tzinfo=datetime.timezone.utc),
> emission_factor_type='lifecycle', is_estimated=False, estimation_method=No...
> E
> E ...Full output truncated (2 lines hidden), use '-vv' to show
>
> tests/test_electricitymaps.py:209: AssertionError
> --------------------------- snapshot report summary
> ----------------------------
> 2 snapshots failed. 5 snapshots passed.
> =========================== short test summary info
> ============================
> FAILED tests/test_electricitymaps.py::test_power_breakdown_history -
> Assertio...
> FAILED tests/test_electricitymaps.py::test_carbon_intensity_history -
> Asserti...
> ========================= 2 failed, 10 passed in 0.17s
> =========================
> E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd
> /build/reproducible-path/aioelectricitymaps-1.0.0/.pybuild/cpython3_3.13_aioelectricitymaps/build;
> python3.13 -m pytest --no-cov
> dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.13"
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2025/01/07/aioelectricitymaps_1.0.0-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250107;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250107&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
--- End Message ---