Package: src:python-directv Version: 0.4.0-2 Severity: serious Tags: ftbfs
Dear maintainer: During a rebuild of all packages in unstable, your package failed to build: -------------------------------------------------------------------------------- [...] 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 I: pybuild base:311: python3.12 setup.py config /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) /<<PKGBUILDDIR>>/directv/__version__.pyrunning config dh_auto_build -O--buildsystem=pybuild 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_suite' warnings.warn(msg) /<<PKGBUILDDIR>>/directv/__version__.pyrunning build running build_py creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv copying directv/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv copying directv/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv copying directv/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv copying directv/directv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv copying directv/const.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv copying directv/models.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv copying directv/__version__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv running egg_info creating directv.egg-info writing directv.egg-info/PKG-INFO writing dependency_links to directv.egg-info/dependency_links.txt writing requirements to directv.egg-info/requires.txt writing top-level names to directv.egg-info/top_level.txt writing manifest file 'directv.egg-info/SOURCES.txt' reading manifest file 'directv.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'LICENSE.md' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' writing manifest file 'directv.egg-info/SOURCES.txt' dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build; python3.12 -m pytest --no-cov /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:208: 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.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>> plugins: typeguard-4.3.0, asyncio-0.24.0a1, aresponses-3.0.0, cov-5.0.0 asyncio: mode=Mode.STRICT, default_loop_scope=None collected 36 items tests/test_directv.py ......F.... [ 30%] tests/test_interface.py ............... [ 72%] tests/test_models.py ........ [ 94%] tests/test_utils.py .. [100%] =================================== FAILURES =================================== ______________________________ test_client_error _______________________________ @pytest.mark.asyncio async def test_client_error(): """Test http client error.""" async with ClientSession() as session: dtv = DIRECTV("#", session=session) with pytest.raises(DIRECTVConnectionError):
assert await dtv._request("/info/getVersion")
tests/test_directv.py:139: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ directv/directv.py:59: in _request url = URL.build( /usr/lib/python3/dist-packages/yarl/_url.py:385: in build netloc = cls._make_netloc( /usr/lib/python3/dist-packages/yarl/_url.py:1057: in _make_netloc ret = cls._encode_host(host) /usr/lib/python3/dist-packages/yarl/_url.py:1038: in _encode_host _host_validate(host) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = '#' @lru_cache(_MAXCACHE) def _host_validate(host: str) -> None: """Validate an ascii host name.""" invalid = _not_reg_name.search(host) if invalid is None: return value, pos, extra = invalid.group(), invalid.start(), "" if value == "@" or (value == ":" and "@" in host[pos:]): # this looks like an authority string extra = ( ", if the value includes a username or password, " "use 'authority' instead of 'host'" )
raise ValueError(
f"Host {host!r} cannot contain {value!r} (at position " f"{pos}){extra}" ) from None E ValueError: Host '#' cannot contain '#' (at position 0) /usr/lib/python3/dist-packages/yarl/_url.py:1607: ValueError =============================== warnings summary =============================== directv/models.py:128 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv/models.py:128: 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). at: datetime = datetime.utcnow() .pybuild/cpython3_3.12_directv/build/tests/test_directv.py: 10 warnings .pybuild/cpython3_3.12_directv/build/tests/test_interface.py: 18 warnings /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build/directv/directv.py:77: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead with async_timeout.timeout(self.request_timeout): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_directv.py::test_client_error - ValueError: Host '#' cannot... ================== 1 failed, 35 passed, 29 warnings in 1.18s =================== E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_directv/build; python3.12 -m pytest --no-cov dh_auto_test: error: pybuild --test -i python{version} -p 3.12 returned exit code 13 make: *** [debian/rules:8: 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/202410/ 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.