Source: hatch-vcs Version: 0.3.0-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20230101 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules binary > dh binary --with python3 --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:107: Building wheel for python3.11 with "build" > module > I: pybuild base:240: python3.11 -m build --skip-dependency-check > --no-isolation --wheel --outdir > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hatch-vcs > * Building wheel... > Successfully built hatch_vcs-0.3.0-py3-none-any.whl > I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.11 with > "installer" module > I: pybuild plugin_pyproject:107: Building wheel for python3.10 with "build" > module > I: pybuild base:240: python3.10 -m build --skip-dependency-check > --no-isolation --wheel --outdir > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_hatch-vcs > * Building wheel... > Successfully built hatch_vcs-0.3.0-py3-none-any.whl > I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.10 with > "installer" module > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:240: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hatch-vcs/build; python3.11 -m pytest > tests > ============================= test session starts > ============================== > platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hatch-vcs/build > collected 22 items > > tests/test_build.py .F... [ > 22%] > tests/test_build_config.py ...... [ > 50%] > tests/test_metadata_config.py .... [ > 68%] > tests/test_version_config.py ....... > [100%] > > =================================== FAILURES > =================================== > __________________________________ test_write > __________________________________ > > new_project_write = '/tmp/tmpffnpiawl/my-app' > > def test_write(new_project_write): > build_project('-t', 'wheel') > > build_dir = os.path.join(new_project_write, 'dist') > assert os.path.isdir(build_dir) > > artifacts = os.listdir(build_dir) > assert len(artifacts) == 1 > wheel_file = artifacts[0] > > assert wheel_file == 'my_app-1.2.3-py2.py3-none-any.whl' > > extraction_directory = > os.path.join(os.path.dirname(new_project_write), '_archive') > os.mkdir(extraction_directory) > > with zipfile.ZipFile(os.path.join(build_dir, wheel_file), 'r') as > zip_archive: > zip_archive.extractall(extraction_directory) > > metadata_directory = os.path.join(extraction_directory, > 'my_app-1.2.3.dist-info') > assert os.path.isdir(metadata_directory) > > package_directory = os.path.join(extraction_directory, 'my_app') > assert os.path.isdir(package_directory) > assert len(os.listdir(package_directory)) == 5 > > assert os.path.isfile(os.path.join(package_directory, '__init__.py')) > assert os.path.isfile(os.path.join(package_directory, 'foo.py')) > assert os.path.isfile(os.path.join(package_directory, 'bar.py')) > assert os.path.isfile(os.path.join(package_directory, 'baz.py')) > > version_file = os.path.join(package_directory, '_version.py') > assert os.path.isfile(version_file) > > lines = read_file(version_file).splitlines() > > assert lines[3].startswith(('version =', '__version__ =')) > E AssertionError: assert False > E + where False = <built-in method startswith of str object at > 0x7f7ef49e6bb0>(('version =', '__version__ =')) > E + where <built-in method startswith of str object at > 0x7f7ef49e6bb0> = '__version_tuple__ = version_tuple = (1, 2, 3)'.startswith > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hatch-vcs/build/tests/test_build.py:78: > AssertionError > =========================== short test summary info > ============================ > FAILED tests/test_build.py::test_write - AssertionError: assert False > ========================= 1 failed, 21 passed in 1.30s > ========================= > E: pybuild pybuild:388: test: plugin pyproject failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hatch-vcs/build; python3.11 -m pytest > tests > I: pybuild base:240: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_hatch-vcs/build; python3.10 -m pytest > tests > ============================= test session starts > ============================== > platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_hatch-vcs/build > collected 22 items > > tests/test_build.py .F... [ > 22%] > tests/test_build_config.py ...... [ > 50%] > tests/test_metadata_config.py .... [ > 68%] > tests/test_version_config.py ....... > [100%] > > =================================== FAILURES > =================================== > __________________________________ test_write > __________________________________ > > new_project_write = '/tmp/tmpr907v97q/my-app' > > def test_write(new_project_write): > build_project('-t', 'wheel') > > build_dir = os.path.join(new_project_write, 'dist') > assert os.path.isdir(build_dir) > > artifacts = os.listdir(build_dir) > assert len(artifacts) == 1 > wheel_file = artifacts[0] > > assert wheel_file == 'my_app-1.2.3-py2.py3-none-any.whl' > > extraction_directory = > os.path.join(os.path.dirname(new_project_write), '_archive') > os.mkdir(extraction_directory) > > with zipfile.ZipFile(os.path.join(build_dir, wheel_file), 'r') as > zip_archive: > zip_archive.extractall(extraction_directory) > > metadata_directory = os.path.join(extraction_directory, > 'my_app-1.2.3.dist-info') > assert os.path.isdir(metadata_directory) > > package_directory = os.path.join(extraction_directory, 'my_app') > assert os.path.isdir(package_directory) > assert len(os.listdir(package_directory)) == 5 > > assert os.path.isfile(os.path.join(package_directory, '__init__.py')) > assert os.path.isfile(os.path.join(package_directory, 'foo.py')) > assert os.path.isfile(os.path.join(package_directory, 'bar.py')) > assert os.path.isfile(os.path.join(package_directory, 'baz.py')) > > version_file = os.path.join(package_directory, '_version.py') > assert os.path.isfile(version_file) > > lines = read_file(version_file).splitlines() > > assert lines[3].startswith(('version =', '__version__ =')) > E AssertionError: assert False > E + where False = <built-in method startswith of str object at > 0x7f0c0c3a2cd0>(('version =', '__version__ =')) > E + where <built-in method startswith of str object at > 0x7f0c0c3a2cd0> = '__version_tuple__ = version_tuple = (1, 2, 3)'.startswith > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_hatch-vcs/build/tests/test_build.py:78: > AssertionError > =========================== short test summary info > ============================ > FAILED tests/test_build.py::test_write - AssertionError: assert False > ========================= 1 failed, 21 passed in 1.40s > ========================= > E: pybuild pybuild:388: test: plugin pyproject failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_hatch-vcs/build; python3.10 -m pytest > tests > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.11 > 3.10" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2023/01/01/hatch-vcs_0.3.0-1_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230101;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230101&fusertaguser=lu...@debian.org&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.