D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/pyproject-rpm-macros-1.14.0-3.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.sW2kWQ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + test -d /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.uWiGNY + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + rm -rf pyproject-rpm-macros-1.14.0 + /usr/bin/mkdir -p pyproject-rpm-macros-1.14.0 + cd pyproject-rpm-macros-1.14.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -p /home/pterjan/rpmbuild/SOURCES/macros.pyproject /home/pterjan/rpmbuild/SOURCES/macros.aaa-pyproject-srpm /home/pterjan/rpmbuild/SOURCES/pyproject_buildrequires.py /home/pterjan/rpmbuild/SOURCES/pyproject_save_files.py /home/pterjan/rpmbuild/SOURCES/pyproject_convert.py /home/pterjan/rpmbuild/SOURCES/pyproject_preprocess_record.py /home/pterjan/rpmbuild/SOURCES/pyproject_construct_toxenv.py /home/pterjan/rpmbuild/SOURCES/pyproject_requirements_txt.py /home/pterjan/rpmbuild/SOURCES/pyproject_wheel.py /home/pterjan/rpmbuild/SOURCES/test_pyproject_buildrequires.py /home/pterjan/rpmbuild/SOURCES/test_pyproject_save_files.py /home/pterjan/rpmbuild/SOURCES/test_pyproject_requirements_txt.py /home/pterjan/rpmbuild/SOURCES/compare_mandata.py /home/pterjan/rpmbuild/SOURCES/pyproject_buildrequires_testcases.yaml /home/pterjan/rpmbuild/SOURCES/pyproject_save_files_test_data.yaml /home/pterjan/rpmbuild/SOURCES/test_RECORD /home/pterjan/rpmbuild/SOURCES/README.md /home/pterjan/rpmbuild/SOURCES/LICENSE . + echo 'Patch #0 (no-boolean-deps.patch):' Patch #0 (no-boolean-deps.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file macros.pyproject Hunk #1 succeeded at 184 (offset 11 lines). + echo 'Patch #1 (loosen-build-deps.patch):' Patch #1 (loosen-build-deps.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file macros.pyproject Hunk #1 succeeded at 204 (offset 11 lines). + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.M1PqHg + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + cd pyproject-rpm-macros-1.14.0 + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.aKKYjL + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + cd pyproject-rpm-macros-1.14.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6HadOJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + mkdir /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT + cd pyproject-rpm-macros-1.14.0 + '[' 1 -eq 1 ']' + mkdir -p /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/macros.d + mkdir -p /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat + install -pm 644 macros.pyproject /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/macros.d/ + install -pm 644 macros.aaa-pyproject-srpm /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/macros.d/ + install -pm 644 pyproject_buildrequires.py /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat/ + install -pm 644 pyproject_convert.py /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat/ + install -pm 644 pyproject_save_files.py /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat/ + install -pm 644 pyproject_preprocess_record.py /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat/ + install -pm 644 pyproject_construct_toxenv.py /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat/ + install -pm 644 pyproject_requirements_txt.py /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat/ + install -pm 644 pyproject_wheel.py /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/rpm/redhat/ + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j48 + /usr/lib/rpm/redhat/brp-python-hardlink sh: line 4: [: -j8: integer expression expected Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.uB2UWf + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build + cd pyproject-rpm-macros-1.14.0 + '[' 1 -eq 1 ']' ++ grep '^%pyproject_buildrequires' macros.pyproject ++ cut '-d ' -f1 + signature1='%pyproject_buildrequires(rRxtNwe:C:)' ++ grep '^%pyproject_buildrequires' macros.aaa-pyproject-srpm ++ cut '-d ' -f1 + signature2='%pyproject_buildrequires(rRxtNwe:C:)' + test '%pyproject_buildrequires(rRxtNwe:C:)' == '%pyproject_buildrequires(rRxtNwe:C:)' + test '%pyproject_buildrequires(rRxtNwe:C:)' '!=' '' + export HOSTNAME=rpmbuild + HOSTNAME=rpmbuild + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + PATH=/home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin + PYTHONPATH=/home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib64/python3.12/site-packages:/home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/BUILDROOT/usr/lib/python3.12/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_XDIST_AUTO_NUM_WORKERS=48 + /usr/bin/pytest -vv --doctest-modules -n auto ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0 plugins: xdist-3.5.0 created: 48/48 workers 48 workers [125 items] scheduling tests via LoadScheduling test_pyproject_buildrequires.py::test_data[Local path as requirement] test_pyproject_requirements_txt.py::test_requirements_add_pkgname pyproject_preprocess_record.py::pyproject_preprocess_record.parse_record pyproject_save_files.py::pyproject_save_files.BuildrootPath.to_real test_pyproject_buildrequires.py::test_data[Run dependencies with extras and build wheel option] test_pyproject_buildrequires.py::test_data[Self-referencing extras (later)] pyproject_save_files.py::pyproject_save_files.BuildrootPath.from_real test_pyproject_save_files.py::test_generate_file_list[kerberos-ke?ber*-expected_files1-expected_modules1-True] [gw31] [ 0%] PASSED test_pyproject_save_files.py::test_generate_file_list[kerberos-ke?ber*-expected_files1-expected_modules1-True] test_pyproject_buildrequires.py::test_data[Run dependencies with extras (selected)] test_pyproject_buildrequires.py::test_data[Stdout from wrapped subprocess does not appear in output] pyproject_save_files.py::pyproject_save_files.pycache_dir [gw6] [ 1%] PASSED pyproject_save_files.py::pyproject_save_files.pycache_dir test_pyproject_save_files.py::test_module_names_from_path[foo-bar/baz.py-expected13] [gw46] [ 2%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo-bar/baz.py-expected13] test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.so-expected9] [gw45] [ 3%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.so-expected9] test_pyproject_buildrequires.py::test_data[Default build system, unmet deps in requirements file] test_pyproject_save_files.py::test_generate_file_list[tensorflow-tensorflow*-expected_files0-expected_modules0-True] [gw30] [ 4%] PASSED test_pyproject_save_files.py::test_generate_file_list[tensorflow-tensorflow*-expected_files0-expected_modules0-True] test_pyproject_buildrequires.py::test_data[Default build system, run dependencies in setup.py] test_pyproject_save_files.py::test_generate_file_list[requests-requests-expected_files2-expected_modules2-True] [gw32] [ 4%] PASSED test_pyproject_save_files.py::test_generate_file_list[requests-requests-expected_files2-expected_modules2-True] test_pyproject_buildrequires.py::test_data[Build system dependencies in pyproject.toml without extras] [gw28] [ 5%] PASSED test_pyproject_requirements_txt.py::test_requirements_add_pkgname test_pyproject_save_files.py::test_module_names_from_path[foo/bar.py-expected1] [gw41] [ 6%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/bar.py-expected1] test_pyproject_save_files.py::test_module_names_from_path[foo/bar.so.2-expected3] [gw42] [ 7%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/bar.so.2-expected3] test_pyproject_save_files.py::test_generate_file_list[ipykernel-ipykernel-expected_files5-expected_modules5-True] [gw35] [ 8%] PASSED test_pyproject_save_files.py::test_generate_file_list[ipykernel-ipykernel-expected_files5-expected_modules5-True] test_pyproject_buildrequires.py::test_data[With pyproject.toml, requirements file and with -N option] test_pyproject_save_files.py::test_generate_file_list[tldr-*-expected_files3-expected_modules3-True] [gw33] [ 8%] PASSED test_pyproject_save_files.py::test_generate_file_list[tldr-*-expected_files3-expected_modules3-True] pyproject_save_files.py::pyproject_save_files.escape_rpm_path_4_19 [gw3] [ 9%] PASSED pyproject_save_files.py::pyproject_save_files.escape_rpm_path_4_19 test_pyproject_save_files.py::test_parse_record_tldr [gw29] [ 10%] PASSED test_pyproject_save_files.py::test_parse_record_tldr test_pyproject_save_files.py::test_generate_file_list[comic2pdf-*-expected_files7-expected_modules7-True] [gw37] [ 11%] PASSED test_pyproject_save_files.py::test_generate_file_list[comic2pdf-*-expected_files7-expected_modules7-True] test_pyproject_save_files.py::test_generate_file_list[zope-zope-expected_files6-expected_modules6-True] [gw36] [ 12%] PASSED test_pyproject_save_files.py::test_generate_file_list[zope-zope-expected_files6-expected_modules6-True] [gw12] [ 12%] PASSED test_pyproject_buildrequires.py::test_data[Local path as requirement] test_pyproject_buildrequires.py::test_data[URL without egg fragment as requirement] [gw1] [ 13%] PASSED pyproject_save_files.py::pyproject_save_files.BuildrootPath.to_real [gw2] [ 14%] PASSED pyproject_save_files.py::pyproject_save_files.BuildrootPath.from_real test_pyproject_buildrequires.py::test_data[Erroring setup.py] [gw11] [ 15%] PASSED test_pyproject_buildrequires.py::test_data[Erroring setup.py] pyproject_save_files.py::pyproject_save_files.pycached [gw6] [ 16%] PASSED pyproject_save_files.py::pyproject_save_files.pycached test_pyproject_buildrequires.py::test_data[tox provision satisfied] test_pyproject_save_files.py::test_generate_file_list[mistune-mistune-expected_files4-expected_modules4-True] [gw34] [ 16%] PASSED test_pyproject_save_files.py::test_generate_file_list[mistune-mistune-expected_files4-expected_modules4-True] test_pyproject_buildrequires.py::test_data[Insufficient version of setuptools] [gw8] [ 17%] PASSED test_pyproject_buildrequires.py::test_data[Insufficient version of setuptools] test_pyproject_buildrequires.py::test_data[Single value version with unsupported compatible operator] [gw10] [ 18%] PASSED test_pyproject_buildrequires.py::test_data[Single value version with unsupported compatible operator] test_pyproject_save_files.py::test_generate_file_list_unused_glob [gw40] [ 19%] PASSED test_pyproject_save_files.py::test_generate_file_list_unused_glob test_pyproject_save_files.py::test_module_names_from_path[foo/_priv.py-expected7] [gw44] [ 20%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/_priv.py-expected7] test_pyproject_buildrequires.py::test_data[config_settings_control] test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies and partially selected extras] test_pyproject_buildrequires.py::test_data[No pyproject.toml, nothing installed] [gw7] [ 20%] PASSED test_pyproject_buildrequires.py::test_data[No pyproject.toml, nothing installed] test_pyproject_save_files.py::test_generate_file_list[printrun-printrun-expected_files9-expected_modules9-True] [gw39] [ 21%] PASSED test_pyproject_save_files.py::test_generate_file_list[printrun-printrun-expected_files9-expected_modules9-True] test_pyproject_buildrequires.py::test_data[Default build system, empty setup.py] test_pyproject_save_files.py::test_generate_file_list[kerberos-ke?ber*-expected_files1-expected_modules1-False] [gw31] [ 22%] PASSED test_pyproject_save_files.py::test_generate_file_list[kerberos-ke?ber*-expected_files1-expected_modules1-False] [gw0] [ 23%] PASSED pyproject_preprocess_record.py::pyproject_preprocess_record.parse_record test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.pyc-expected11] [gw47] [ 24%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.pyc-expected11] test_pyproject_buildrequires.py::test_data[Weird and complex requirements file] [gw23] [ 24%] PASSED test_pyproject_buildrequires.py::test_data[Weird and complex requirements file] [gw21] [ 25%] PASSED test_pyproject_buildrequires.py::test_data[With pyproject.toml, requirements file and with -N option] test_pyproject_buildrequires.py::test_data[tox extras] [gw13] [ 26%] PASSED test_pyproject_buildrequires.py::test_data[URL without egg fragment as requirement] test_pyproject_save_files.py::test_module_names_from_path[foo/_api/v2/__init__.py-expected5] [gw43] [ 27%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/_api/v2/__init__.py-expected5] [gw14] [ 28%] PASSED test_pyproject_buildrequires.py::test_data[Build system dependencies in pyproject.toml without extras] pyproject_save_files.py::pyproject_save_files.normalize_manpage_filename [gw5] [ 28%] PASSED pyproject_save_files.py::pyproject_save_files.normalize_manpage_filename pyproject_save_files.py::pyproject_save_files.is_license_file [gw4] [ 29%] PASSED pyproject_save_files.py::pyproject_save_files.is_license_file test_pyproject_save_files.py::test_generate_file_list[django-django-expected_files8-expected_modules8-True] [gw38] [ 30%] PASSED test_pyproject_save_files.py::test_generate_file_list[django-django-expected_files8-expected_modules8-True] test_pyproject_save_files.py::test_generate_file_list[ipykernel-ipykernel-expected_files5-expected_modules5-False] pyproject_save_files.py::pyproject_save_files.escape_rpm_path_4_18 test_pyproject_save_files.py::test_module_names_from_path[foobar/12baz.py-expected14] [gw46] [ 31%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foobar/12baz.py-expected14] test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.pth-expected10] [gw45] [ 32%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.pth-expected10] test_pyproject_buildrequires.py::test_data[Value error if -N and -r arguments are present] [gw22] [ 32%] PASSED test_pyproject_buildrequires.py::test_data[Value error if -N and -r arguments are present] test_pyproject_buildrequires.py::test_data[Bad character in version] [gw20] [ 33%] PASSED test_pyproject_buildrequires.py::test_data[Default build system, unmet deps in requirements file] pyproject_save_files.py::pyproject_save_files.generate_module_list [gw3] [ 34%] PASSED pyproject_save_files.py::pyproject_save_files.generate_module_list pyproject_save_files.py::pyproject_save_files.BuildrootPath.normpath [gw2] [ 35%] PASSED pyproject_save_files.py::pyproject_save_files.BuildrootPath.normpath test_pyproject_save_files.py::test_generate_file_list[zope-zope-expected_files6-expected_modules6-False] [gw36] [ 36%] PASSED test_pyproject_save_files.py::test_generate_file_list[zope-zope-expected_files6-expected_modules6-False] test_pyproject_save_files.py::test_generate_file_list[tensorflow-tensorflow*-expected_files0-expected_modules0-False] [gw30] [ 36%] PASSED test_pyproject_save_files.py::test_generate_file_list[tensorflow-tensorflow*-expected_files0-expected_modules0-False] test_pyproject_save_files.py::test_generate_file_list[requests-requests-expected_files2-expected_modules2-False] [gw32] [ 37%] PASSED test_pyproject_save_files.py::test_generate_file_list[requests-requests-expected_files2-expected_modules2-False] test_pyproject_save_files.py::test_generate_file_list[tldr-*-expected_files3-expected_modules3-False] [gw33] [ 38%] PASSED test_pyproject_save_files.py::test_generate_file_list[tldr-*-expected_files3-expected_modules3-False] test_pyproject_save_files.py::test_generate_file_list[mistune-mistune-expected_files4-expected_modules4-False] [gw34] [ 39%] PASSED test_pyproject_save_files.py::test_generate_file_list[mistune-mistune-expected_files4-expected_modules4-False] [gw35] [ 40%] PASSED test_pyproject_save_files.py::test_generate_file_list[ipykernel-ipykernel-expected_files5-expected_modules5-False] test_pyproject_save_files.py::test_module_names_from_path[foo.cpython-37m-x86_64-linux-gnu.so-expected4] [gw42] [ 40%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo.cpython-37m-x86_64-linux-gnu.so-expected4] test_pyproject_save_files.py::test_generate_file_list[comic2pdf-*-expected_files7-expected_modules7-False] [gw37] [ 41%] PASSED test_pyproject_save_files.py::test_generate_file_list[comic2pdf-*-expected_files7-expected_modules7-False] test_pyproject_save_files.py::test_module_names_from_path[foo.py-expected2] [gw41] [ 42%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo.py-expected2] test_pyproject_save_files.py::test_module_names_from_path[foo/_bar/lib.so-expected8] [gw44] [ 43%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/_bar/lib.so-expected8] test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.py-expected0] [gw40] [ 44%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/bar/baz.py-expected0] [gw1] [ 44%] PASSED pyproject_save_files.py::pyproject_save_files.escape_rpm_path_4_18 [gw11] [ 45%] PASSED test_pyproject_buildrequires.py::test_data[Bad character in version] test_pyproject_save_files.py::test_generate_file_list[printrun-printrun-expected_files9-expected_modules9-False] [gw39] [ 46%] PASSED test_pyproject_save_files.py::test_generate_file_list[printrun-printrun-expected_files9-expected_modules9-False] test_pyproject_requirements_txt.py::test_requirements_preprocess test_pyproject_buildrequires.py::test_data[Nothing installed yet] test_pyproject_buildrequires.py::test_data[Asterisk in version with unsupported compatible operator] test_pyproject_save_files.py::test_parse_record_tensorflow [gw29] [ 47%] PASSED test_pyproject_save_files.py::test_parse_record_tensorflow test_pyproject_save_files.py::test_module_names_from_path[foo/+bar/baz.py-expected16] [gw6] [ 48%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/+bar/baz.py-expected16] pyproject_preprocess_record.py::pyproject_preprocess_record.read_record test_pyproject_save_files.py::test_module_names_from_path[foo/\nbar/baz.py-expected15] [gw31] [ 48%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/\nbar/baz.py-expected15] [gw10] [ 49%] PASSED test_pyproject_buildrequires.py::test_data[Asterisk in version with unsupported compatible operator] test_pyproject_save_files.py::test_module_names_from_path[def.py-expected12] [gw0] [ 50%] PASSED pyproject_preprocess_record.py::pyproject_preprocess_record.read_record test_pyproject_buildrequires.py::test_data[Pre-releases are accepted] test_pyproject_buildrequires.py::test_data[With pyproject.toml, requirements file and without -N option] [gw47] [ 51%] PASSED test_pyproject_save_files.py::test_module_names_from_path[def.py-expected12] test_pyproject_buildrequires.py::test_data[Pip's egg=pkgName requirement not in requirements file] pyproject_save_files.py::pyproject_save_files.parse_varargs test_pyproject_buildrequires.py::test_data[Build system dependencies in pyproject.toml with extras] pyproject_save_files.py::pyproject_save_files.is_valid_module_name [gw4] [ 52%] PASSED pyproject_save_files.py::pyproject_save_files.is_valid_module_name test_pyproject_save_files.py::test_module_names_from_path[foo/__init__.py-expected6] [gw43] [ 52%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/__init__.py-expected6] [gw7] [ 53%] PASSED test_pyproject_buildrequires.py::test_data[Nothing installed yet] test_pyproject_buildrequires.py::test_data[Default build system, build dependencies in setup.py] test_pyproject_buildrequires.py::test_data[No pyproject.toml, empty setup.py] test_pyproject_save_files.py::test_module_names_from_path[foo/bar/__pycache__/abc.cpython-37.pyc-expected18] test_pyproject_save_files.py::test_cli[ipykernel-ipykernel-expected_files5-expected_modules5-True] [gw21] [ 54%] PASSED test_pyproject_buildrequires.py::test_data[With pyproject.toml, requirements file and without -N option] test_pyproject_save_files.py::test_module_names_from_path[foo/__init__.cpython-39-x86_64-linux-gnu.so-expected17] [gw46] [ 55%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/__init__.cpython-39-x86_64-linux-gnu.so-expected17] [gw45] [ 56%] PASSED test_pyproject_save_files.py::test_module_names_from_path[foo/bar/__pycache__/abc.cpython-37.pyc-expected18] test_pyproject_buildrequires.py::test_data[Default build system, met deps in requirements file] test_pyproject_buildrequires.py::test_data[Value error if -N and -e arguments are present] [gw22] [ 56%] PASSED test_pyproject_buildrequires.py::test_data[Value error if -N and -e arguments are present] test_pyproject_save_files.py::test_cli[zope-zope-expected_files6-expected_modules6-True] test_pyproject_save_files.py::test_cli[tldr-*-expected_files3-expected_modules3-False] test_pyproject_save_files.py::test_generate_file_list[django-django-expected_files8-expected_modules8-False] [gw12] [ 57%] PASSED test_pyproject_buildrequires.py::test_data[Pip's egg=pkgName requirement not in requirements file] test_pyproject_save_files.py::test_cli[tensorflow-tensorflow*-expected_files0-expected_modules0-True] test_pyproject_save_files.py::test_cli[tldr-*-expected_files3-expected_modules3-True] test_pyproject_save_files.py::test_cli[comic2pdf-*-expected_files7-expected_modules7-False] [gw13] [ 58%] PASSED test_pyproject_buildrequires.py::test_data[Build system dependencies in pyproject.toml with extras] test_pyproject_save_files.py::test_cli[requests-requests-expected_files2-expected_modules2-True] test_pyproject_save_files.py::test_cli[requests-requests-expected_files2-expected_modules2-False] test_pyproject_save_files.py::test_cli[tensorflow-tensorflow*-expected_files0-expected_modules0-False] [gw3] [ 59%] PASSED test_pyproject_save_files.py::test_cli[tldr-*-expected_files3-expected_modules3-False] [gw38] [ 60%] PASSED test_pyproject_save_files.py::test_generate_file_list[django-django-expected_files8-expected_modules8-False] [gw9] [ 60%] FAILED test_pyproject_buildrequires.py::test_data[Default build system, empty setup.py] [gw5] [ 61%] PASSED pyproject_save_files.py::pyproject_save_files.parse_varargs test_pyproject_save_files.py::test_cli[mistune-mistune-expected_files4-expected_modules4-False] test_pyproject_save_files.py::test_cli[kerberos-ke?ber*-expected_files1-expected_modules1-False] test_pyproject_save_files.py::test_cli[printrun-printrun-expected_files9-expected_modules9-False] test_pyproject_save_files.py::test_cli[printrun-printrun-expected_files9-expected_modules9-True] test_pyproject_save_files.py::test_cli[django-django-expected_files8-expected_modules8-False] test_pyproject_save_files.py::test_cli[comic2pdf-*-expected_files7-expected_modules7-True] test_pyproject_save_files.py::test_cli[ipykernel-ipykernel-expected_files5-expected_modules5-False] test_pyproject_save_files.py::test_cli_too_many_RECORDS test_pyproject_save_files.py::test_cli_bad_argument [gw30] [ 62%] PASSED test_pyproject_save_files.py::test_cli[tensorflow-tensorflow*-expected_files0-expected_modules0-True] [gw37] [ 63%] PASSED test_pyproject_save_files.py::test_cli[mistune-mistune-expected_files4-expected_modules4-False] [gw27] [ 64%] PASSED test_pyproject_buildrequires.py::test_data[config_settings_control] [gw39] [ 64%] PASSED test_pyproject_save_files.py::test_cli_too_many_RECORDS [gw31] [ 65%] PASSED test_pyproject_save_files.py::test_cli_bad_argument [gw34] [ 66%] PASSED test_pyproject_save_files.py::test_cli[comic2pdf-*-expected_files7-expected_modules7-False] [gw33] [ 67%] PASSED test_pyproject_save_files.py::test_cli[tldr-*-expected_files3-expected_modules3-True] test_pyproject_save_files.py::test_cli[mistune-mistune-expected_files4-expected_modules4-True] [gw29] [ 68%] PASSED test_pyproject_save_files.py::test_cli[mistune-mistune-expected_files4-expected_modules4-True] [gw35] [ 68%] PASSED test_pyproject_save_files.py::test_cli[requests-requests-expected_files2-expected_modules2-False] [gw6] [ 69%] PASSED test_pyproject_save_files.py::test_cli[comic2pdf-*-expected_files7-expected_modules7-True] [gw41] [ 70%] PASSED test_pyproject_save_files.py::test_cli[kerberos-ke?ber*-expected_files1-expected_modules1-False] [gw8] [ 71%] FAILED test_pyproject_buildrequires.py::test_data[No pyproject.toml, empty setup.py] test_pyproject_save_files.py::test_cli[zope-zope-expected_files6-expected_modules6-False] [gw11] [ 72%] PASSED test_pyproject_save_files.py::test_cli[zope-zope-expected_files6-expected_modules6-False] [gw42] [ 72%] PASSED test_pyproject_save_files.py::test_cli[requests-requests-expected_files2-expected_modules2-True] test_pyproject_save_files.py::test_cli_bad_namespace [gw2] [ 73%] PASSED test_pyproject_save_files.py::test_cli[zope-zope-expected_files6-expected_modules6-True] [gw44] [ 74%] PASSED test_pyproject_save_files.py::test_cli[printrun-printrun-expected_files9-expected_modules9-False] [gw32] [ 75%] PASSED test_pyproject_save_files.py::test_cli[tensorflow-tensorflow*-expected_files0-expected_modules0-False] test_pyproject_save_files.py::test_cli_bad_option [gw47] [ 76%] PASSED test_pyproject_save_files.py::test_cli_bad_namespace [gw0] [ 76%] PASSED test_pyproject_save_files.py::test_cli_bad_option test_pyproject_save_files.py::test_cli_no_pyproject_record test_pyproject_buildrequires.py::test_data[config_settings] [gw7] [ 77%] PASSED test_pyproject_save_files.py::test_cli_no_pyproject_record [gw27] [ 78%] PASSED test_pyproject_buildrequires.py::test_data[config_settings] [gw16] [ 79%] FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with extras (selected)] test_pyproject_buildrequires.py::test_data[pyproject.toml with build-backend and setup.py] test_pyproject_buildrequires.py::test_data[Run dependencies with multiple extras] [gw9] [ 80%] PASSED test_pyproject_buildrequires.py::test_data[pyproject.toml with build-backend and setup.py] [gw14] [ 80%] FAILED test_pyproject_buildrequires.py::test_data[Default build system, build dependencies in setup.py] [gw40] [ 81%] PASSED test_pyproject_save_files.py::test_cli[printrun-printrun-expected_files9-expected_modules9-True] test_pyproject_save_files.py::test_cli[django-django-expected_files8-expected_modules8-True] [gw36] [ 82%] PASSED test_pyproject_save_files.py::test_cli[ipykernel-ipykernel-expected_files5-expected_modules5-True] [gw1] [ 83%] PASSED test_pyproject_save_files.py::test_cli[ipykernel-ipykernel-expected_files5-expected_modules5-False] [gw24] [ 84%] FAILED test_pyproject_buildrequires.py::test_data[Stdout from wrapped subprocess does not appear in output] test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies] [gw15] [ 84%] FAILED test_pyproject_buildrequires.py::test_data[Default build system, run dependencies in setup.py] test_pyproject_buildrequires.py::test_data[Run dependencies with extras (not selected)] [gw26] [ 85%] FAILED test_pyproject_buildrequires.py::test_data[Self-referencing extras (later)] test_pyproject_buildrequires.py::test_data[Self-referencing extras (maze)] [gw20] [ 86%] FAILED test_pyproject_buildrequires.py::test_data[Default build system, met deps in requirements file] [gw28] [ 87%] PASSED test_pyproject_requirements_txt.py::test_requirements_preprocess [gw23] [ 88%] FAILED test_pyproject_buildrequires.py::test_data[Pre-releases are accepted] [gw16] [ 88%] FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with multiple extras] test_pyproject_save_files.py::test_cli[kerberos-ke?ber*-expected_files1-expected_modules1-True] [gw28] [ 89%] PASSED test_pyproject_save_files.py::test_cli[kerberos-ke?ber*-expected_files1-expected_modules1-True] [gw15] [ 90%] FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with extras (not selected)] [gw24] [ 91%] FAILED test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies] [gw26] [ 92%] FAILED test_pyproject_buildrequires.py::test_data[Self-referencing extras (maze)] [gw25] [ 92%] FAILED test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies and partially selected extras] test_pyproject_buildrequires.py::test_data[Self-referencing extras (sooner)] [gw25] [ 93%] FAILED test_pyproject_buildrequires.py::test_data[Self-referencing extras (sooner)] [gw19] [ 94%] FAILED test_pyproject_buildrequires.py::test_data[tox extras] test_pyproject_buildrequires.py::test_data[tox provision unsatisfied] [gw18] [ 95%] FAILED test_pyproject_buildrequires.py::test_data[tox provision satisfied] test_pyproject_buildrequires.py::test_data[tox provision no minversion] [gw18] [ 96%] FAILED test_pyproject_buildrequires.py::test_data[tox provision no minversion] [gw19] [ 96%] FAILED test_pyproject_buildrequires.py::test_data[tox provision unsatisfied] [gw17] [ 97%] FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with extras and build wheel option] test_pyproject_buildrequires.py::test_data[tox dependencies] [gw17] [ 98%] FAILED test_pyproject_buildrequires.py::test_data[tox dependencies] [gw8] [ 99%] PASSED test_pyproject_save_files.py::test_cli[django-django-expected_files8-expected_modules8-True] [gw10] [100%] PASSED test_pyproject_save_files.py::test_cli[django-django-expected_files8-expected_modules8-False] =================================== FAILURES =================================== _______________ test_data[Default build system, empty setup.py] ________________ [gw9] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Default build system, empty setup.py' capfd = <_pytest.capture.CaptureFixture object at 0x7fe9a4c51340> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw9/test_data_Default_build_system0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe9a4c51820> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' E E python3dist(setuptools) >= 40.8 E python3dist(wheel) E - python3dist(wheel) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError _________________ test_data[No pyproject.toml, empty setup.py] _________________ [gw8] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'No pyproject.toml, empty setup.py' capfd = <_pytest.capture.CaptureFixture object at 0x7f7433be9790> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw8/test_data_No_pyproject_toml__e0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7433be9dc0> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' E E python3dist(setuptools) >= 40.8 E python3dist(wheel) E - python3dist(wheel) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ______________ test_data[Run dependencies with extras (selected)] ______________ [gw16] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Run dependencies with extras (selected)' capfd = <_pytest.capture.CaptureFixture object at 0x7fdb65bfc9b0> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw16/test_data_Run_dependencies_wit0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fdb65bfdf10> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(more-itertools) >= 4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(more-itertools) >= 4\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' E E python3dist(setuptools) >= 40.8 E - python3dist(wheel) E python3dist(wheel) E python3dist(setuptools) >= 40 E python3dist(py) >= 1.5 E python3dist(six) >= 1.10 E python3dist(setuptools) E python3dist(attrs) >= 17.4 E + python3dist(more-itertools) >= 4 E python3dist(atomicwrites) >= 1 E python3dist(pluggy) >= 0.11 E - python3dist(more-itertools) >= 4 E python3dist(argcomplete) E python3dist(hypothesis) >= 3.56 E python3dist(nose) E python3dist(requests) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running dist_info INFO root:dir_util.py:58 creating pytest.egg-info INFO root:egg_info.py:652 writing pytest.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to pytest.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to pytest.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to pytest.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'pytest.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'pytest.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'pytest.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw16/test_data_Run_dependencies_wit0/cwd/pytest-6.6.6.dist-info' _______ test_data[Default build system, build dependencies in setup.py] ________ [gw14] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Default build system, build dependencies in setup.py' capfd = <_pytest.capture.CaptureFixture object at 0x7fa01a8a8650> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw14/test_data_Default_build_system0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa01a8b95b0> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(foo)\n(python3dist(bar) < 2 or python3dist(bar) > 2)\n(python3dist(baz) >= 1.1.1 with python3dist(baz) < 1.2)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(foo)\n(python3dist(bar) < 2 or python3dist(bar) > 2)\n(python3dist(baz) >= 1.1.1 with python3dist(baz) < 1.2)\n' E E python3dist(setuptools) >= 40.8 E - python3dist(wheel) E python3dist(wheel) E python3dist(foo) E (python3dist(bar) < 2 or python3dist(bar) > 2) E (python3dist(baz) >= 1.1.1 with python3dist(baz) < 1.2) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError _____ test_data[Stdout from wrapped subprocess does not appear in output] ______ [gw24] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Stdout from wrapped subprocess does not appear in output' capfd = <_pytest.capture.CaptureFixture object at 0x7f4542a58b90> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw24/test_data_Stdout_from_wrapped_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4542a59760> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' E E python3dist(setuptools) >= 40.8 E python3dist(wheel) E - python3dist(wheel) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' ________ test_data[Default build system, run dependencies in setup.py] _________ [gw15] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Default build system, run dependencies in setup.py' capfd = <_pytest.capture.CaptureFixture object at 0x7fcca5a3f410> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw15/test_data_Default_build_system0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcca599d7c0> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(pyyaml)\npython3dist(inst) > 1.0\npython3dist(inst2) < 3~~\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(pyyaml)\npython3dist(inst) > 1.0\npython3dist(inst2) < 3~~\n' E E python3dist(setuptools) >= 40.8 E - python3dist(wheel) E python3dist(wheel) E python3dist(pyyaml) E python3dist(inst) > 1.0 E python3dist(inst2) < 3~~ /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running dist_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw15/test_data_Default_build_system0/cwd/test-0.1.dist-info' __________________ test_data[Self-referencing extras (later)] __________________ [gw26] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Self-referencing extras (later)' capfd = <_pytest.capture.CaptureFixture object at 0x7fea041fd550> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw26/test_data_Self_referencing_ext0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fea041fd760> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\npython3dist(sphinx)\npython3dist(python-docs-theme)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\npython3dist(sphinx)\npython3dist(python-docs-theme)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' E E python3dist(setuptools) E - python3dist(wheel) E python3dist(foo) E + python3dist(pytest) >= 5 E + python3dist(pytest-mock) E python3dist(sphinx) E python3dist(python-docs-theme) E - python3dist(pytest) >= 5 E - python3dist(pytest-mock) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating my_package.egg-info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw26/test_data_Self_referencing_ext0/cwd/my_package-0.1.dist-info' ________ test_data[Default build system, met deps in requirements file] ________ [gw20] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Default build system, met deps in requirements file' capfd = <_pytest.capture.CaptureFixture object at 0x7f24bb86c5f0> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw20/test_data_Default_build_system1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f24bb86d880> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert '((python3dist(lxml) < 3.7 or python3dist(lxml) > 3.7) with python3dist(lxml) >= 2.3)\npython3dist(ncclient)\n(python3dist(cryptography) < 1.5.2 or python3dist(cryptography) > 1.5.2)\npython3dist(paramiko)\n(python3dist(sqlalchemy) < 1.1~~ with python3dist(sqlalchemy) >= 1.0.10)\npython3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == '((python3dist(lxml) < 3.7 or python3dist(lxml) > 3.7) with python3dist(lxml) >= 2.3)\npython3dist(ncclient)\n(python3dist(cryptography) < 1.5.2 or python3dist(cryptography) > 1.5.2)\npython3dist(paramiko)\n(python3dist(sqlalchemy) < 1.1~~ with python3dist(sqlalchemy) >= 1.0.10)\npython3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' E E ((python3dist(lxml) < 3.7 or python3dist(lxml) > 3.7) with python3dist(lxml) >= 2.3) E python3dist(ncclient) E (python3dist(cryptography) < 1.5.2 or python3dist(cryptography) > 1.5.2) E python3dist(paramiko) E (python3dist(sqlalchemy) < 1.1~~ with python3dist(sqlalchemy) >= 1.0.10) E python3dist(setuptools) >= 40.8 E python3dist(wheel) E - python3dist(wheel) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw20/test_data_Default_build_system1/cwd/test-0.1.dist-info' _____________________ test_data[Pre-releases are accepted] _____________________ [gw23] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Pre-releases are accepted' capfd = <_pytest.capture.CaptureFixture object at 0x7f7b0c291820> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw23/test_data_Pre_releases_are_acc0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b0c291940> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(cffi)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(cffi)\npython3dist(wheel)\n' E E python3dist(setuptools) E python3dist(wheel) E python3dist(cffi) E - python3dist(wheel) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating wheeldir.egg-info INFO root:egg_info.py:652 writing wheeldir.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to wheeldir.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing top-level names to wheeldir.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing wheeldir.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to wheeldir.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing top-level names to wheeldir.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw23/test_data_Pre_releases_are_acc0/cwd/wheeldir-0.0.0.dist-info' _______________ test_data[Run dependencies with multiple extras] _______________ [gw16] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Run dependencies with multiple extras' capfd = <_pytest.capture.CaptureFixture object at 0x7fdb65c07c20> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw16/test_data_Run_dependencies_wit1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fdb65a23770> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(dep1)\npython3dist(dep2)\npython3dist(dep3)\npython3dist(dep4)\npython3dist(dep4[bar])\npython3dist(dep4[foo])\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(dep4)\npython3dist(dep4[bar])\npython3dist(dep4[foo])\npython3dist(dep3)\npython3dist(dep2)\npython3dist(dep1)\n' E E python3dist(setuptools) >= 40.8 E python3dist(wheel) E - python3dist(wheel) E ? ^^ ^^ E + python3dist(dep1) E ? ^ ^^ E + python3dist(dep2) E + python3dist(dep3) E python3dist(dep4) E python3dist(dep4[bar]) E python3dist(dep4[foo]) E - python3dist(dep3) E - python3dist(dep2) E - python3dist(dep1) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating wheeldir.egg-info INFO root:egg_info.py:652 writing wheeldir.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to wheeldir.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to wheeldir.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to wheeldir.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing wheeldir.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to wheeldir.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to wheeldir.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to wheeldir.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'wheeldir.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw16/test_data_Run_dependencies_wit1/cwd/wheeldir-0.0.0.dist-info' ____________ test_data[Run dependencies with extras (not selected)] ____________ [gw15] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Run dependencies with extras (not selected)' capfd = <_pytest.capture.CaptureFixture object at 0x7fcca5ce8d40> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw15/test_data_Run_dependencies_wit0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcca57c1dc0> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(more-itertools) >= 4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(more-itertools) >= 4\n' E E python3dist(setuptools) >= 40.8 E - python3dist(wheel) E python3dist(wheel) E python3dist(setuptools) >= 40 E python3dist(py) >= 1.5 E python3dist(six) >= 1.10 E python3dist(setuptools) E python3dist(attrs) >= 17.4 E + python3dist(more-itertools) >= 4 E python3dist(atomicwrites) >= 1 E python3dist(pluggy) >= 0.11 E - python3dist(more-itertools) >= 4 /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running dist_info INFO root:dir_util.py:58 creating pytest.egg-info INFO root:egg_info.py:652 writing pytest.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to pytest.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to pytest.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to pytest.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'pytest.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'pytest.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'pytest.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw15/test_data_Run_dependencies_wit0/cwd/pytest-6.6.6.dist-info' _____________ test_data[pyproject.toml with runtime dependencies] ______________ [gw24] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'pyproject.toml with runtime dependencies' capfd = <_pytest.capture.CaptureFixture object at 0x7f4542a5a6f0> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw24/test_data_pyproject_toml_with_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4542881370> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\n' E E python3dist(setuptools) E - python3dist(wheel) E python3dist(foo) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating my_package.egg-info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw24/test_data_pyproject_toml_with_0/cwd/my_package-0.1.dist-info' __________________ test_data[Self-referencing extras (maze)] ___________________ [gw26] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Self-referencing extras (maze)' capfd = <_pytest.capture.CaptureFixture object at 0x7fea041fd8b0> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw26/test_data_Self_referencing_ext1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fea042170b0> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools)\npython3dist(startdep)\npython3dist(leftdep)\npython3dist(rightdep)\npython3dist(forwarddep)\npython3dist(backwarddep)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(backwarddep)\npython3dist(forwarddep)\npython3dist(leftdep)\npython3dist(rightdep)\npython3dist(startdep)\n' E E python3dist(setuptools) E - python3dist(wheel) E - python3dist(backwarddep) E - python3dist(forwarddep) E ? ^^^^ ^ E + python3dist(startdep) E ? ^^ ^ E python3dist(leftdep) E python3dist(rightdep) E - python3dist(startdep) E ? ^^ ^ E + python3dist(forwarddep) E ? ^^^^ ^ E + python3dist(backwarddep) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating my_package.egg-info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw26/test_data_Self_referencing_ext1/cwd/my_package-0.1.dist-info' _ test_data[pyproject.toml with runtime dependencies and partially selected extras] _ [gw25] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'pyproject.toml with runtime dependencies and partially selected extras' capfd = <_pytest.capture.CaptureFixture object at 0x7f017e130e60> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw25/test_data_pyproject_toml_with_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f017e131610> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' E E python3dist(setuptools) E - python3dist(wheel) E python3dist(foo) E python3dist(pytest) >= 5 E python3dist(pytest-mock) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating my_package.egg-info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw25/test_data_pyproject_toml_with_0/cwd/my_package-0.1.dist-info' _________________ test_data[Self-referencing extras (sooner)] __________________ [gw25] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Self-referencing extras (sooner)' capfd = <_pytest.capture.CaptureFixture object at 0x7f017df560c0> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw25/test_data_Self_referencing_ext0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f017d95af30> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\npython3dist(sphinx)\npython3dist(python-docs-theme)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\npython3dist(sphinx)\npython3dist(python-docs-theme)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' E E python3dist(setuptools) E - python3dist(wheel) E python3dist(foo) E + python3dist(pytest) >= 5 E + python3dist(pytest-mock) E python3dist(sphinx) E python3dist(python-docs-theme) E - python3dist(pytest) >= 5 E - python3dist(pytest-mock) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating my_package.egg-info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing my_package.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to my_package.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to my_package.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to my_package.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'my_package.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'my_package.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw25/test_data_Self_referencing_ext0/cwd/my_package-0.1.dist-info' ____________________________ test_data[tox extras] _____________________________ [gw19] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'tox extras' capfd = <_pytest.capture.CaptureFixture object at 0x7f0ab63212e0> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw19/test_data_tox_extras_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0ab6321970> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match > assert dependencies in expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep)\npython3dist(inst)\npython3dist(dep11) > 11.0\npython3dist(dep12)\npython3dist(dep21)\npython3dist(dep22)\npython3dist(dep23)\npython3dist(extra-dep)\npython3dist(extra-dep[extra_dep])\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(toxdep)\npython3dist(inst)\npython3dist(dep11) > 11.0\npython3dist(dep12)\npython3dist(dep21)\npython3dist(dep22)\npython3dist(dep23)\npython3dist(extra-dep)\npython3dist(extra-dep[extra_dep])\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep)\npython3dist(inst)\npython3dist(dep11) > 11.0\npython3dist(dep12)\npython3dist(dep21)\npython3dist(dep22)\npython3dist(dep23)\npython3dist(extra-dep)\npython3dist(extra-dep[extra_dep])\n'] /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:88: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw19/test_data_tox_extras_0/cwd/test-0.1.dist-info' ______________________ test_data[tox provision satisfied] ______________________ [gw18] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'tox provision satisfied' capfd = <_pytest.capture.CaptureFixture object at 0x7f90ea5b8da0> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw18/test_data_tox_provision_satisf0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f90ea5b96d0> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match > assert dependencies in expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(tox) >= 3.5\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.5\npython3dist(setuptools) > 40.0\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(tox) >= 3.5\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n'] /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:88: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw18/test_data_tox_provision_satisf0/cwd/test-0.1.dist-info' ____________________ test_data[tox provision no minversion] ____________________ [gw18] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'tox provision no minversion' capfd = <_pytest.capture.CaptureFixture object at 0x7f90ea5ee900> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw18/test_data_tox_provision_no_min0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f90ea5edb20> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match > assert dependencies in expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox)\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox)\n'] /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:88: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' _____________________ test_data[tox provision unsatisfied] _____________________ [gw19] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'tox provision unsatisfied' capfd = <_pytest.capture.CaptureFixture object at 0x7f0ab6323620> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw19/test_data_tox_provision_unsati0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0ab633a090> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match > assert dependencies in expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.999\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox) >= 3.999\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.999\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.999\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox) >= 3.999\n'] /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:88: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' ________ test_data[Run dependencies with extras and build wheel option] ________ [gw17] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'Run dependencies with extras and build wheel option' capfd = <_pytest.capture.CaptureFixture object at 0x7f8e663fd310> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw17/test_data_Run_dependencies_wit0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e663fca10> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match assert dependencies in expected else: > assert dependencies == expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(pip) >= 19\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(more-itertools) >= 4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(pip) >= 19\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(more-itertools) >= 4\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' E E python3dist(setuptools) >= 40.8 E - python3dist(wheel) E python3dist(wheel) E python3dist(setuptools) >= 40 E python3dist(pip) >= 19 E python3dist(py) >= 1.5 E python3dist(six) >= 1.10 E python3dist(setuptools) E python3dist(attrs) >= 17.4 E + python3dist(more-itertools) >= 4 E python3dist(atomicwrites) >= 1 E python3dist(pluggy) >= 0.11 E - python3dist(more-itertools) >= 4 E python3dist(argcomplete) E python3dist(hypothesis) >= 3.56 E python3dist(nose) E python3dist(requests) /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:90: AssertionError _________________________ test_data[tox dependencies] __________________________ [gw17] linux -- Python 3.12.8 /usr/bin/python3 case_name = 'tox dependencies' capfd = <_pytest.capture.CaptureFixture object at 0x7f8e663ff890> tmp_path = PosixPath('/tmp/pytest-of-pterjan/pytest-0/popen-gw17/test_data_tox_dependencies_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e66412390> @pytest.mark.parametrize('case_name', testcases) def test_data(case_name, capfd, tmp_path, monkeypatch): case = testcases[case_name] cwd = tmp_path.joinpath('cwd') cwd.mkdir() monkeypatch.chdir(cwd) wheeldir = cwd.joinpath('wheeldir') wheeldir.mkdir() output = tmp_path.joinpath('output.txt') if case.get('xfail'): pytest.xfail(case.get('xfail')) if case.get('skipif') and eval(case.get('skipif')): pytest.skip(case.get('skipif')) for filename in case: file_types = ('.toml', '.py', '.in', '.ini', '.txt', '.cfg') if filename.endswith(file_types): cwd.joinpath(filename).write_text(case[filename]) for name, value in case.get('environ', {}).items(): monkeypatch.setenv(name, value) def get_installed_version(dist_name): try: return str(case['installed'][dist_name]) except (KeyError, TypeError): raise importlib.metadata.PackageNotFoundError( f'info not found for {dist_name}' ) requirement_files = case.get('requirement_files', []) requirement_files = [open(f) for f in requirement_files] use_build_system = case.get('use_build_system', True) try: generate_requires( get_installed_version=get_installed_version, include_runtime=case.get('include_runtime', use_build_system), build_wheel=case.get('build_wheel', False), wheeldir=str(wheeldir), extras=case.get('extras', []), toxenv=case.get('toxenv', None), generate_extras=case.get('generate_extras', False), requirement_files=requirement_files, use_build_system=use_build_system, output=output, config_settings=case.get('config_settings'), ) except SystemExit as e: assert e.code == case['result'] except Exception as e: if 'except' not in case: raise assert type(e).__name__ == case['except'] else: assert 0 == case['result'] # this prevents us from accidentally writing "empty" tests # if we ever need to do that, we can remove the check or change it: assert 'expected' in case or 'stderr_contains' in case out, err = capfd.readouterr() dependencies = output.read_text() if 'expected' in case: expected = case['expected'] if isinstance(expected, list): # at least one of them needs to match > assert dependencies in expected E AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n'] /home/pterjan/rpmbuild/BUILD/pyproject-rpm-macros-1.14.0-build/pyproject-rpm-macros-1.14.0/test_pyproject_buildrequires.py:88: AssertionError ------------------------------ Captured log call ------------------------------- INFO root:dist.py:970 running egg_info INFO root:dir_util.py:58 creating test.egg-info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist.py:970 running dist_info INFO root:egg_info.py:652 writing test.egg-info/PKG-INFO INFO root:egg_info.py:280 writing dependency_links to test.egg-info/dependency_links.txt INFO root:egg_info.py:280 writing requirements to test.egg-info/requires.txt INFO root:egg_info.py:280 writing top-level names to test.egg-info/top_level.txt INFO root:sdist.py:203 reading manifest file 'test.egg-info/SOURCES.txt' INFO root:util.py:324 writing manifest file 'test.egg-info/SOURCES.txt' INFO root:dist_info.py:98 creating '/tmp/pytest-of-pterjan/pytest-0/popen-gw17/test_data_tox_dependencies_0/cwd/test-0.1.dist-info' =============================== warnings summary =============================== test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies] test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies and partially selected extras] /usr/lib/python3.12/site-packages/setuptools/command/easy_install.py:41: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test_pyproject_buildrequires.py::test_data[Default build system, empty setup.py] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' python3dist(setuptools) >= 40.8 python3dist(wheel) - python3dist(wheel) FAILED test_pyproject_buildrequires.py::test_data[No pyproject.toml, empty setup.py] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' python3dist(setuptools) >= 40.8 python3dist(wheel) - python3dist(wheel) FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with extras (selected)] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(more-itertools) >= 4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(more-itertools) >= 4\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' python3dist(setuptools) >= 40.8 - python3dist(wheel) python3dist(wheel) python3dist(setuptools) >= 40 python3dist(py) >= 1.5 python3dist(six) >= 1.10 python3dist(setuptools) python3dist(attrs) >= 17.4 + python3dist(more-itertools) >= 4 python3dist(atomicwrites) >= 1 python3dist(pluggy) >= 0.11 - python3dist(more-itertools) >= 4 python3dist(argcomplete) python3dist(hypothesis) >= 3.56 python3dist(nose) python3dist(requests) FAILED test_pyproject_buildrequires.py::test_data[Default build system, build dependencies in setup.py] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(foo)\n(python3dist(bar) < 2 or python3dist(bar) > 2)\n(python3dist(baz) >= 1.1.1 with python3dist(baz) < 1.2)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(foo)\n(python3dist(bar) < 2 or python3dist(bar) > 2)\n(python3dist(baz) >= 1.1.1 with python3dist(baz) < 1.2)\n' python3dist(setuptools) >= 40.8 - python3dist(wheel) python3dist(wheel) python3dist(foo) (python3dist(bar) < 2 or python3dist(bar) > 2) (python3dist(baz) >= 1.1.1 with python3dist(baz) < 1.2) FAILED test_pyproject_buildrequires.py::test_data[Stdout from wrapped subprocess does not appear in output] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' python3dist(setuptools) >= 40.8 python3dist(wheel) - python3dist(wheel) FAILED test_pyproject_buildrequires.py::test_data[Default build system, run dependencies in setup.py] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(pyyaml)\npython3dist(inst) > 1.0\npython3dist(inst2) < 3~~\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(pyyaml)\npython3dist(inst) > 1.0\npython3dist(inst2) < 3~~\n' python3dist(setuptools) >= 40.8 - python3dist(wheel) python3dist(wheel) python3dist(pyyaml) python3dist(inst) > 1.0 python3dist(inst2) < 3~~ FAILED test_pyproject_buildrequires.py::test_data[Self-referencing extras (later)] - AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\npython3dist(sphinx)\npython3dist(python-docs-theme)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\npython3dist(sphinx)\npython3dist(python-docs-theme)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' python3dist(setuptools) - python3dist(wheel) python3dist(foo) + python3dist(pytest) >= 5 + python3dist(pytest-mock) python3dist(sphinx) python3dist(python-docs-theme) - python3dist(pytest) >= 5 - python3dist(pytest-mock) FAILED test_pyproject_buildrequires.py::test_data[Default build system, met deps in requirements file] - AssertionError: assert '((python3dist(lxml) < 3.7 or python3dist(lxml) > 3.7) with python3dist(lxml) >= 2.3)\npython3dist(ncclient)\n(python3dist(cryptography) < 1.5.2 or python3dist(cryptography) > 1.5.2)\npython3dist(paramiko)\n(python3dist(sqlalchemy) < 1.1~~ with python3dist(sqlalchemy) >= 1.0.10)\npython3dist(setuptools) >= 40.8\npython3dist(wheel)\n' == '((python3dist(lxml) < 3.7 or python3dist(lxml) > 3.7) with python3dist(lxml) >= 2.3)\npython3dist(ncclient)\n(python3dist(cryptography) < 1.5.2 or python3dist(cryptography) > 1.5.2)\npython3dist(paramiko)\n(python3dist(sqlalchemy) < 1.1~~ with python3dist(sqlalchemy) >= 1.0.10)\npython3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\n' ((python3dist(lxml) < 3.7 or python3dist(lxml) > 3.7) with python3dist(lxml) >= 2.3) python3dist(ncclient) (python3dist(cryptography) < 1.5.2 or python3dist(cryptography) > 1.5.2) python3dist(paramiko) (python3dist(sqlalchemy) < 1.1~~ with python3dist(sqlalchemy) >= 1.0.10) python3dist(setuptools) >= 40.8 python3dist(wheel) - python3dist(wheel) FAILED test_pyproject_buildrequires.py::test_data[Pre-releases are accepted] - AssertionError: assert 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(cffi)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(cffi)\npython3dist(wheel)\n' python3dist(setuptools) python3dist(wheel) python3dist(cffi) - python3dist(wheel) FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with multiple extras] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(dep1)\npython3dist(dep2)\npython3dist(dep3)\npython3dist(dep4)\npython3dist(dep4[bar])\npython3dist(dep4[foo])\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(dep4)\npython3dist(dep4[bar])\npython3dist(dep4[foo])\npython3dist(dep3)\npython3dist(dep2)\npython3dist(dep1)\n' python3dist(setuptools) >= 40.8 python3dist(wheel) - python3dist(wheel) ? ^^ ^^ + python3dist(dep1) ? ^ ^^ + python3dist(dep2) + python3dist(dep3) python3dist(dep4) python3dist(dep4[bar]) python3dist(dep4[foo]) - python3dist(dep3) - python3dist(dep2) - python3dist(dep1) FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with extras (not selected)] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(more-itertools) >= 4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(more-itertools) >= 4\n' python3dist(setuptools) >= 40.8 - python3dist(wheel) python3dist(wheel) python3dist(setuptools) >= 40 python3dist(py) >= 1.5 python3dist(six) >= 1.10 python3dist(setuptools) python3dist(attrs) >= 17.4 + python3dist(more-itertools) >= 4 python3dist(atomicwrites) >= 1 python3dist(pluggy) >= 0.11 - python3dist(more-itertools) >= 4 FAILED test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies] - AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\n' python3dist(setuptools) - python3dist(wheel) python3dist(foo) FAILED test_pyproject_buildrequires.py::test_data[Self-referencing extras (maze)] - AssertionError: assert 'python3dist(setuptools)\npython3dist(startdep)\npython3dist(leftdep)\npython3dist(rightdep)\npython3dist(forwarddep)\npython3dist(backwarddep)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(backwarddep)\npython3dist(forwarddep)\npython3dist(leftdep)\npython3dist(rightdep)\npython3dist(startdep)\n' python3dist(setuptools) - python3dist(wheel) - python3dist(backwarddep) - python3dist(forwarddep) ? ^^^^ ^ + python3dist(startdep) ? ^^ ^ python3dist(leftdep) python3dist(rightdep) - python3dist(startdep) ? ^^ ^ + python3dist(forwarddep) ? ^^^^ ^ + python3dist(backwarddep) FAILED test_pyproject_buildrequires.py::test_data[pyproject.toml with runtime dependencies and partially selected extras] - AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' python3dist(setuptools) - python3dist(wheel) python3dist(foo) python3dist(pytest) >= 5 python3dist(pytest-mock) FAILED test_pyproject_buildrequires.py::test_data[Self-referencing extras (sooner)] - AssertionError: assert 'python3dist(setuptools)\npython3dist(foo)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\npython3dist(sphinx)\npython3dist(python-docs-theme)\n' == 'python3dist(setuptools)\npython3dist(wheel)\npython3dist(foo)\npython3dist(sphinx)\npython3dist(python-docs-theme)\npython3dist(pytest) >= 5\npython3dist(pytest-mock)\n' python3dist(setuptools) - python3dist(wheel) python3dist(foo) + python3dist(pytest) >= 5 + python3dist(pytest-mock) python3dist(sphinx) python3dist(python-docs-theme) - python3dist(pytest) >= 5 - python3dist(pytest-mock) FAILED test_pyproject_buildrequires.py::test_data[tox extras] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep)\npython3dist(inst)\npython3dist(dep11) > 11.0\npython3dist(dep12)\npython3dist(dep21)\npython3dist(dep22)\npython3dist(dep23)\npython3dist(extra-dep)\npython3dist(extra-dep[extra_dep])\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(toxdep)\npython3dist(inst)\npython3dist(dep11) > 11.0\npython3dist(dep12)\npython3dist(dep21)\npython3dist(dep22)\npython3dist(dep23)\npython3dist(extra-dep)\npython3dist(extra-dep[extra_dep])\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep)\npython3dist(inst)\npython3dist(dep11) > 11.0\npython3dist(dep12)\npython3dist(dep21)\npython3dist(dep22)\npython3dist(dep23)\npython3dist(extra-dep)\npython3dist(extra-dep[extra_dep])\n'] FAILED test_pyproject_buildrequires.py::test_data[tox provision satisfied] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(tox) >= 3.5\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.5\npython3dist(setuptools) > 40.0\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(tox) >= 3.5\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n'] FAILED test_pyproject_buildrequires.py::test_data[tox provision no minversion] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox)\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox)\n'] FAILED test_pyproject_buildrequires.py::test_data[tox provision unsatisfied] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.999\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox) >= 3.999\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.999\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox) >= 3.999\npython3dist(setuptools) > 40.0\npython3dist(wheel) > 2.0\npython3dist(tox) >= 3.999\n'] FAILED test_pyproject_buildrequires.py::test_data[Run dependencies with extras and build wheel option] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(pip) >= 19\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(more-itertools) >= 4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' == 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(setuptools) >= 40\npython3dist(pip) >= 19\npython3dist(py) >= 1.5\npython3dist(six) >= 1.10\npython3dist(setuptools)\npython3dist(attrs) >= 17.4\npython3dist(atomicwrites) >= 1\npython3dist(pluggy) >= 0.11\npython3dist(more-itertools) >= 4\npython3dist(argcomplete)\npython3dist(hypothesis) >= 3.56\npython3dist(nose)\npython3dist(requests)\n' python3dist(setuptools) >= 40.8 - python3dist(wheel) python3dist(wheel) python3dist(setuptools) >= 40 python3dist(pip) >= 19 python3dist(py) >= 1.5 python3dist(six) >= 1.10 python3dist(setuptools) python3dist(attrs) >= 17.4 + python3dist(more-itertools) >= 4 python3dist(atomicwrites) >= 1 python3dist(pluggy) >= 0.11 - python3dist(more-itertools) >= 4 python3dist(argcomplete) python3dist(hypothesis) >= 3.56 python3dist(nose) python3dist(requests) FAILED test_pyproject_buildrequires.py::test_data[tox dependencies] - AssertionError: assert 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n' in ['python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n', 'python3dist(setuptools) >= 40.8\npython3dist(wheel)\npython3dist(wheel)\npython3dist(tox-current-env) >= 0.0.6\npython3dist(tox)\npython3dist(toxdep1)\npython3dist(toxdep2)\npython3dist(inst)\n'] ================= 21 failed, 104 passed, 2 warnings in 14.08s ================== error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.uB2UWf (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.uB2UWf (%check) I: [iurt_root_command] ERROR: chroot