Package: src:sphinx-theme-builder Version: 0.2.0b2-5 Severity: serious Tags: ftbfs forky sid
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/202512/ 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:sphinx-theme-builder, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild pybuild --clean -i python{version} -p "3.14 3.13" rm -rf .pybuild/ find . -name \*.pyc -exec rm {} \; dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild rm -f debian/debhelper-build-stamp rm -rf debian/.debhelper/ rm -f -- debian/python3-sphinx-theme-builder.substvars debian/files rm -fr -- debian/python3-sphinx-theme-builder/ debian/tmp/ find . \( \( \ \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} + \) -o \ \( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \) 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 pybuild --configure -i python{version} -p "3.14 3.13" dh_auto_build -O--buildsystem=pybuild pybuild --build -i python{version} -p "3.14 3.13" I: pybuild plugin_pyproject:131: Building wheel for python3.14 with "build" module I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14 * Building wheel... Successfully built sphinx_theme_builder-0.2.0b2-py3-none-any.whl I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.14 with "installer" module I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" module I: pybuild base:317: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13 * Building wheel... Successfully built sphinx_theme_builder-0.2.0b2-py3-none-any.whl I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with "installer" module dh_auto_test -O--buildsystem=pybuild pybuild --test --test-pytest -i python{version} -p "3.14 3.13" I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build configfile: pyproject.toml plugins: typeguard-4.4.4, anyio-4.11.0 collected 52 items tests/integration/test_cli_compile.py .. [ 3%] tests/integration/test_cli_new.py .... [ 11%] tests/integration/test_cli_package.py . [ 13%] tests/unit/test_errors.py ................... [ 50%] tests/unit/test_project.py ........F..F.F..... [ 86%] tests/workflow/test_cli.py ... [ 92%] tests/workflow/test_new.py ... [ 98%] tests/workflow/test_package.py . [100%] =================================== FAILURES =================================== __________ TestProjectFromPath.test_works_with_proper_dynamic_version __________ self = <test_project.TestProjectFromPath object at 0x7f92afc16a50> tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-0/test_works_with_proper_dynamic0') def test_works_with_proper_dynamic_version(self, tmp_path: Path) -> None: # GIVEN (tmp_path / "pyproject.toml").write_text( textwrap.dedent( """ [project] name = "magic" dynamic = ["version"] license = { text = "MIT" } [tool.sphinx-theme-builder] node-version = "16.13.0" """ ) ) (tmp_path / "src" / "magic").mkdir(parents=True) (tmp_path / "src" / "magic" / "__init__.py").write_text( textwrap.dedent( """ version = "2.3.4" # not really, we just ignore this. __version__ = "1.2.3" """ ) ) # WHEN > project = Project.from_path(tmp_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/unit/test_project.py:224: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sphinx_theme_builder/_internal/project.py:247: in from_path version_s, version_comes_from = _determine_version( sphinx_theme_builder/_internal/project.py:149: in _determine_version declared_in_python = get_version_using_ast(package_init_file.read_bytes()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ contents = b'\nversion = "2.3.4" # not really, we just ignore this.\n__version__ = "1.2.3"\n' def get_version_using_ast(contents: bytes) -> Optional[str]: """Extract the version from the given file, using the Python AST.""" tree = ast.parse(contents) # Only need to check the top-level nodes, and not recurse deeper. version: Optional[str] = None for child in tree.body: # Look for a simple string assignment to __version__ if ( isinstance(child, ast.Assign) and len(child.targets) == 1 and isinstance(child.targets[0], ast.Name) and child.targets[0].id == "__version__" > and isinstance(child.value, ast.Str) ^^^^^^^ ): E AttributeError: module 'ast' has no attribute 'Str' sphinx_theme_builder/_internal/project.py:43: AttributeError ___________ TestProjectFromPath.test_rejects_with_double_declaration ___________ self = <test_project.TestProjectFromPath object at 0x7f92afbf6210> tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-0/test_rejects_with_double_decla0') def test_rejects_with_double_declaration(self, tmp_path: Path) -> None: # GIVEN (tmp_path / "pyproject.toml").write_text( textwrap.dedent( """ [project] name = "magic" version = "1.2.3" """ ) ) (tmp_path / "src" / "magic").mkdir(parents=True) (tmp_path / "src" / "magic" / "__init__.py").write_text('__version__ = "2.3.4"') # WHEN with pytest.raises(InvalidProjectStructure) as ctx: > Project.from_path(tmp_path) tests/unit/test_project.py:296: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sphinx_theme_builder/_internal/project.py:247: in from_path version_s, version_comes_from = _determine_version( sphinx_theme_builder/_internal/project.py:149: in _determine_version declared_in_python = get_version_using_ast(package_init_file.read_bytes()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ contents = b'__version__ = "2.3.4"' def get_version_using_ast(contents: bytes) -> Optional[str]: """Extract the version from the given file, using the Python AST.""" tree = ast.parse(contents) # Only need to check the top-level nodes, and not recurse deeper. version: Optional[str] = None for child in tree.body: # Look for a simple string assignment to __version__ if ( isinstance(child, ast.Assign) and len(child.targets) == 1 and isinstance(child.targets[0], ast.Name) and child.targets[0].id == "__version__" > and isinstance(child.value, ast.Str) ^^^^^^^ ): E AttributeError: module 'ast' has no attribute 'Str' sphinx_theme_builder/_internal/project.py:43: AttributeError ___ TestProjectFromPath.test_rejects_no_dynamic_with_version_in_python_file ____ self = <test_project.TestProjectFromPath object at 0x7f92af874d70> tmp_path = PosixPath('/tmp/pytest-of-sbuild/pytest-0/test_rejects_no_dynamic_with_v0') def test_rejects_no_dynamic_with_version_in_python_file( self, tmp_path: Path ) -> None: # GIVEN (tmp_path / "pyproject.toml").write_text( textwrap.dedent( """ [project] name = "magic" """ ) ) (tmp_path / "src" / "magic").mkdir(parents=True) (tmp_path / "src" / "magic" / "__init__.py").write_text('__version__ = "1.2.3"') # WHEN with pytest.raises(ImproperProjectMetadata) as ctx: > Project.from_path(tmp_path) tests/unit/test_project.py:352: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sphinx_theme_builder/_internal/project.py:247: in from_path version_s, version_comes_from = _determine_version( sphinx_theme_builder/_internal/project.py:149: in _determine_version declared_in_python = get_version_using_ast(package_init_file.read_bytes()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ contents = b'__version__ = "1.2.3"' def get_version_using_ast(contents: bytes) -> Optional[str]: """Extract the version from the given file, using the Python AST.""" tree = ast.parse(contents) # Only need to check the top-level nodes, and not recurse deeper. version: Optional[str] = None for child in tree.body: # Look for a simple string assignment to __version__ if ( isinstance(child, ast.Assign) and len(child.targets) == 1 and isinstance(child.targets[0], ast.Name) and child.targets[0].id == "__version__" > and isinstance(child.value, ast.Str) ^^^^^^^ ): E AttributeError: module 'ast' has no attribute 'Str' sphinx_theme_builder/_internal/project.py:43: AttributeError =========================== short test summary info ============================ FAILED tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version FAILED tests/unit/test_project.py::TestProjectFromPath::test_rejects_with_double_declaration FAILED tests/unit/test_project.py::TestProjectFromPath::test_rejects_no_dynamic_with_version_in_python_file ========================= 3 failed, 49 passed in 0.21s ========================= E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest tests I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build configfile: pyproject.toml plugins: typeguard-4.4.4, anyio-4.11.0 collected 52 items tests/integration/test_cli_compile.py .. [ 3%] tests/integration/test_cli_new.py .... [ 11%] tests/integration/test_cli_package.py . [ 13%] tests/unit/test_errors.py ................... [ 50%] tests/unit/test_project.py ................... [ 86%] tests/workflow/test_cli.py ... [ 92%] tests/workflow/test_new.py ... [ 98%] tests/workflow/test_package.py . [100%] =============================== warnings summary =============================== tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version tests/unit/test_project.py::TestProjectFromPath::test_rejects_with_double_declaration tests/unit/test_project.py::TestProjectFromPath::test_rejects_no_dynamic_with_version_in_python_file /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/sphinx_theme_builder/_internal/project.py:43: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead and isinstance(child.value, ast.Str) tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version tests/unit/test_project.py::TestProjectFromPath::test_rejects_with_double_declaration tests/unit/test_project.py::TestProjectFromPath::test_rejects_no_dynamic_with_version_in_python_file /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/sphinx_theme_builder/_internal/project.py:45: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead version = child.value.s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 52 passed, 7 warnings in 0.17s ======================== rm -fr -- /tmp/dh-xdg-rundir-kiyk4Vm5 dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:5: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

