<86>Apr 30 00:53:22 userdel[1373794]: delete user 'rooter' <86>Apr 30 00:53:22 userdel[1373794]: removed group 'rooter' owned by 'rooter' <86>Apr 30 00:53:22 userdel[1373794]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 30 00:53:22 groupadd[1373849]: group added to /etc/group: name=rooter, GID=1859 <86>Apr 30 00:53:22 groupadd[1373849]: group added to /etc/gshadow: name=rooter <86>Apr 30 00:53:22 groupadd[1373849]: new group: name=rooter, GID=1859 <86>Apr 30 00:53:22 useradd[1373898]: new user: name=rooter, UID=1859, GID=1859, home=/root, shell=/bin/bash, from=none <86>Apr 30 00:53:22 userdel[1373968]: delete user 'builder' <86>Apr 30 00:53:22 userdel[1373968]: removed group 'builder' owned by 'builder' <86>Apr 30 00:53:22 userdel[1373968]: removed shadow group 'builder' owned by 'builder' <86>Apr 30 00:53:22 groupadd[1374031]: group added to /etc/group: name=builder, GID=1860 <86>Apr 30 00:53:22 groupadd[1374031]: group added to /etc/gshadow: name=builder <86>Apr 30 00:53:22 groupadd[1374031]: new group: name=builder, GID=1860 <86>Apr 30 00:53:22 useradd[1374079]: new user: name=builder, UID=1860, GID=1860, home=/usr/src, shell=/bin/bash, from=none <13>Apr 30 00:53:25 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Apr 30 00:53:25 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Apr 30 00:53:25 rpmi: libexpat-2.5.0-alt1 sisyphus+309227.100.1.1 1667075764 installed <13>Apr 30 00:53:25 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Apr 30 00:53:25 rpmi: libp11-kit-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645560 installed <13>Apr 30 00:53:25 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Apr 30 00:53:25 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Apr 30 00:53:25 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Apr 30 00:53:25 rpmi: ca-certificates-2024.02.24-alt1 sisyphus+341362.100.1.1 1708791001 installed <13>Apr 30 00:53:25 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Apr 30 00:53:25 rpmi: p11-kit-trust-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645560 installed <13>Apr 30 00:53:25 rpmi: libcrypto3-3.1.5-alt2 sisyphus+343320.140.3.1 1711982212 installed <13>Apr 30 00:53:25 rpmi: libssl3-3.1.5-alt2 sisyphus+343320.140.3.1 1711982212 installed <13>Apr 30 00:53:25 rpmi: python3-3.12.2-alt1 sisyphus+341702.200.1.1 1709232871 installed <13>Apr 30 00:53:26 rpmi: python3-base-3.12.2-alt1 sisyphus+341702.200.1.1 1709232871 installed <13>Apr 30 00:53:26 rpmi: python3-module-py3dephell-0.1.0-alt2 sisyphus+328191.600.5.1 1693609196 installed <13>Apr 30 00:53:26 rpmi: python3-module-pyproject-installer-0.5.3-alt1 sisyphus+344989.100.3.1 1713974805 installed <13>Apr 30 00:53:26 rpmi: rpm-macros-pyproject-0.0.5-alt1 sisyphus+344989.500.3.1 1713974843 installed <13>Apr 30 00:53:26 rpmi: tests-for-installed-python3-pkgs-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Apr 30 00:53:26 rpmi: rpm-build-python3-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Apr 30 00:53:26 rpmi: rpm-build-pyproject-0.0.5-alt1 sisyphus+344989.500.3.1 1713974843 installed <13>Apr 30 00:53:28 rpmi: python3-module-packaging-24.0-alt1 sisyphus+342487.100.2.1 1710407438 installed <13>Apr 30 00:53:28 rpmi: python3-module-typing_extensions-4.11.0-alt2 sisyphus+345650.100.1.1 1713793625 installed <13>Apr 30 00:53:28 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Apr 30 00:53:28 rpmi: python3-module-zipp-3.18.1-alt1 sisyphus+342979.100.2.1 1710837966 installed <13>Apr 30 00:53:28 rpmi: python3-module-trove-classifiers-2024.4.10-alt1 sisyphus+344939.100.1.1 1712846260 installed <13>Apr 30 00:53:28 rpmi: python3-module-pathspec-0.12.1-alt1 sisyphus+341971.100.1.1 1709553025 installed <13>Apr 30 00:53:28 rpmi: python3-module-natsort-8.4.0-alt2 sisyphus+339213.100.1.1 1706453992 installed <13>Apr 30 00:53:28 rpmi: python3-module-domdf-python-tools-3.8.0.post2-alt1 sisyphus+337326.100.1.1 1703662255 installed <13>Apr 30 00:53:28 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Apr 30 00:53:28 rpmi: python3-module-pytest-8.0.2-alt1 sisyphus+341429.100.2.1 1709025013 installed <13>Apr 30 00:53:28 rpmi: python3-module-pytest-datadir-1.5.0-alt1 sisyphus+330926.100.1.1 1696404893 installed <13>Apr 30 00:53:28 rpmi: libyaml2-0.2.5-alt1 sisyphus+278391.100.1.1 1626094928 installed <13>Apr 30 00:53:28 rpmi: python3-module-yaml-6.0.1-alt1.1 sisyphus+333513.45640.73.1 1704640833 installed <13>Apr 30 00:53:28 rpmi: python3-module-pytest-regressions-2.5.0-alt3 sisyphus+337017.100.1.1 1703225022 installed <13>Apr 30 00:53:28 rpmi: python3-module-coincidence-0.6.6-alt1 sisyphus+342029.100.1.1 1709628632 installed <13>Apr 30 00:53:28 rpmi: python3-module-handy-archives-0.2.0-alt1.1 sisyphus+339276.100.1.1 1706530801 installed <13>Apr 30 00:53:28 rpmi: python3-module-dist-meta-0.8.0-alt1 sisyphus+320174.454.4.1 1689945022 installed <13>Apr 30 00:53:28 rpmi: python3-module-pytest-randomly-3.15.0-alt1 sisyphus+327307.200.1.1 1692263387 installed <13>Apr 30 00:53:28 rpmi: python3-module-pytest-timeout-2.3.1-alt1 sisyphus+342480.100.2.1 1710234858 installed <13>Apr 30 00:53:28 rpmi: python3-module-hatchling-1.24.2-alt1 sisyphus+345612.100.1.1 1713777095 installed <13>Apr 30 00:53:28 rpmi: python3-module-importlib-metadata-7.1.0-alt1 sisyphus+343253.100.1.1 1711017097 installed <13>Apr 30 00:53:28 rpmi: python3-module-pkginfo-1.9.6-alt2 sisyphus+338825.100.1.1 1706082480 installed warning: File /usr/src/in/source/python3-module-hatch-requirements-txt-0.4.1-alt.patch is smaller than 8 bytes Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-hatch-requirements-txt-0.4.1-alt1.nosrc.rpm (w1.gzdio) warning: File /usr/src/RPM/SOURCES/python3-module-hatch-requirements-txt-0.4.1-alt.patch is smaller than 8 bytes Installing python3-module-hatch-requirements-txt-0.4.1-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.89701 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-hatch-requirements-txt-0.4.1 + echo 'Source #0 (python3-module-hatch-requirements-txt-0.4.1.tar):' Source #0 (python3-module-hatch-requirements-txt-0.4.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-hatch-requirements-txt-0.4.1.tar + cd python3-module-hatch-requirements-txt-0.4.1 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (python3-module-hatch-requirements-txt-0.4.1-alt.patch):' Patch #0 (python3-module-hatch-requirements-txt-0.4.1-alt.patch): + /usr/bin/patch -p1 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show pep518 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify pep518 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show pep517 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify pep517 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show metadata + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify metadata INFO : Building metadata INFO : Building metadata with prepare_metadata_for_build_wheel INFO : Source tree: /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1 INFO : Output dir: /usr/src/tmp/tmpcqhescq1 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show check + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify check + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.47571 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-hatch-requirements-txt-0.4.1 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: hatchling.build INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : pyproject_installer.build_cmd._build : Built wheel: hatch_requirements_txt-0.4.1-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.47571 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd python3-module-hatch-requirements-txt-0.4.1 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-hatch-requirements-txt-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: hatch_requirements_txt-0.4.1-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: hatch_requirements_txt-0.4.1.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: hatch_requirements_txt-0.4.1.dist-info/licenses/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: hatch_requirements_txt-0.4.1.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Generating entrypoints scripts INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot/usr/lib/python3/site-packages/hatch_requirements_txt/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot/usr/lib/python3/site-packages/hatch_requirements_txt/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-hatch-requirements-txt-buildroot/usr/lib/python3/site-packages/hatch_requirements_txt/__init__.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/hatch_requirements_txt/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/hatch_requirements_txt/__pycache__/__init__.cpython-312.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.47571 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-hatch-requirements-txt-0.4.1 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -vra INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/dist/hatch_requirements_txt-0.4.1-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/dist/hatch_requirements_txt-0.4.1-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-vra'] ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.5.0 -- /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1/.run_venv/bin/python3 cachedir: .pytest_cache Using --randomly-seed=3433936449 Test session started at 00:53:33 rootdir: /usr/src/RPM/BUILD/python3-module-hatch-requirements-txt-0.4.1 configfile: tox.ini plugins: timeout-2.3.1, randomly-3.15.0, regressions-2.5.0, datadir-1.5.0 timeout: 300.0s timeout method: signal timeout func_only: False collecting ... collected 58 items tests/test_metadata.py::test_not_dynamic_project_dependencies[build_wheel] FAILED [ 1%] tests/test_metadata.py::test_using_project_dependencies[build_sdist] FAILED [ 3%] tests/test_metadata.py::test_parse_requirements[set(b)] PASSED [ 5%] tests/test_metadata.py::test_build_with_files[build_wheel] FAILED [ 6%] tests/test_metadata.py::test_build_pip_compile_style[build_sdist] FAILED [ 8%] tests/test_metadata.py::test_build_with_filename[build_wheel] FAILED [ 10%] tests/test_metadata.py::test_parse_requirements[tuple(b)] PASSED [ 12%] tests/test_metadata.py::test_build_pip_compile_style[build_wheel] FAILED [ 13%] tests/test_metadata.py::test_using_project_dependencies[build_wheel] FAILED [ 15%] tests/test_metadata.py::test_build_comments[build_sdist] FAILED [ 17%] tests/test_metadata.py::test_parse_requirements[set(c)] PASSED [ 18%] tests/test_metadata.py::test_build_files_in_subdirectory[build_sdist] FAILED [ 20%] tests/test_metadata.py::test_parse_requirements[b] PASSED [ 22%] tests/test_metadata.py::test_not_dynamic_no_explicit_files[build_wheel] PASSED [ 24%] tests/test_metadata.py::test_build_unspecified[build_sdist] FAILED [ 25%] tests/test_metadata.py::test_optional_dependencies[build_sdist] FAILED [ 27%] tests/test_metadata.py::test_parse_requirements[a] PASSED [ 29%] tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_wheel] FAILED [ 31%] tests/test_metadata.py::test_build_with_files[build_sdist] FAILED [ 32%] tests/test_metadata.py::test_parse_requirements[iter(c)] PASSED [ 34%] tests/test_metadata.py::test_parse_requirements[tuple(c)] PASSED [ 36%] tests/test_metadata.py::test_parse_requirements[set(a)] PASSED [ 37%] tests/test_metadata.py::test_parse_requirements[iter(a)] PASSED [ 39%] tests/test_metadata.py::test_parse_requirements[c] PASSED [ 41%] tests/test_metadata.py::test_build_with_filename[build_sdist] FAILED [ 43%] tests/test_metadata.py::test_not_dynamic_no_explicit_files[build_sdist] PASSED [ 44%] tests/test_metadata.py::test_build_unspecified[build_wheel] FAILED [ 46%] tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_sdist] FAILED [ 48%] tests/test_metadata.py::test_parse_requirements[iter(b)] PASSED [ 50%] tests/test_metadata.py::test_build_files_in_subdirectory[build_wheel] FAILED [ 51%] tests/test_metadata.py::test_build_comments[build_wheel] FAILED [ 53%] tests/test_metadata.py::test_optional_dependencies[build_wheel] FAILED [ 55%] tests/test_metadata.py::test_not_dynamic_project_dependencies[build_sdist] FAILED [ 56%] tests/test_metadata.py::test_parse_requirements[tuple(a)] PASSED [ 58%] tests/test_errors.py::test_already_given[build_wheel] PASSED [ 60%] tests/test_errors.py::test_no_files_or_filename_deprecation[build_sdist] PASSED [ 62%] tests/test_errors.py::test_filename_and_files[build_sdist] PASSED [ 63%] tests/test_errors.py::test_optional_already_given[build_wheel] PASSED [ 65%] tests/test_errors.py::test_not_dynamic_but_filename_defined[build_sdist] FAILED [ 67%] tests/test_errors.py::test_not_dynamic_but_files_defined[build_sdist] FAILED [ 68%] tests/test_errors.py::test_not_dynamic_but_files_defined[build_wheel] FAILED [ 70%] tests/test_errors.py::test_files_parameter_not_list[build_sdist] PASSED [ 72%] tests/test_errors.py::test_missing_requirements_txt[build_wheel] PASSED [ 74%] tests/test_errors.py::test_filename_and_files[build_wheel] PASSED [ 75%] tests/test_errors.py::test_missing_invalid_requirements[build_sdist] PASSED [ 77%] tests/test_errors.py::test_missing_requirements_txt[build_sdist] PASSED [ 79%] tests/test_errors.py::test_files_parameter_not_list[build_wheel] PASSED [ 81%] tests/test_errors.py::test_already_given[build_sdist] PASSED [ 82%] tests/test_errors.py::test_filename_parameter_not_str[build_sdist] PASSED [ 84%] tests/test_errors.py::test_filename_parameter_not_str[build_wheel] PASSED [ 86%] tests/test_errors.py::test_optional_already_given[build_sdist] PASSED [ 87%] tests/test_errors.py::test_filename_deprecation[build_sdist] PASSED [ 89%] tests/test_errors.py::test_not_dynamic_but_filename_defined[build_wheel] FAILED [ 91%] tests/test_errors.py::test_optional_not_dynamic[build_wheel] PASSED [ 93%] tests/test_errors.py::test_optional_not_dynamic[build_sdist] PASSED [ 94%] tests/test_errors.py::test_missing_invalid_requirements[build_wheel] PASSED [ 96%] tests/test_errors.py::test_filename_deprecation[build_wheel] PASSED [ 98%] tests/test_errors.py::test_no_files_or_filename_deprecation[build_wheel] PASSED [100%] =================================== FAILURES =================================== ______________ test_not_dynamic_project_dependencies[build_wheel] ______________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_not_dynamic_project_depen0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_not_dynamic_project_dependencies(tmp_pathplus: PathPlus, build_func: Callable): dist_dir = tmp_pathplus / "dist" dist_dir.maybe_make() pyproject_toml = pyproject_toml_header.replace( 'dynamic = ["dependencies"]', 'dependencies = ["foo", "bar", "baz>1"]' ) (tmp_pathplus / "README.md").touch() (tmp_pathplus / "LICENSE").touch() (tmp_pathplus / "demo").maybe_make() (tmp_pathplus / "demo" / "__init__.py").touch() info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "foo"] E AssertionError: assert () == ['bar', 'baz>1', 'foo'] E  E Right contains 3 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:228: AssertionError _________________ test_using_project_dependencies[build_sdist] _________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_using_project_dependencie0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_using_project_dependencies(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header.replace( 'dynamic = ["dependencies"]', """ dynamic = [] dependencies = ["foo", "bar"] """ ) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "foo"] E AssertionError: assert () == ['bar', 'foo'] E  E Right contains 2 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar', E - 'foo', E - ] tests/test_metadata.py:356: AssertionError ______________________ test_build_with_files[build_wheel] ______________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_with_files_build_wh0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_with_files(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements1.txt", "requirements2.txt"] """ (tmp_pathplus / "requirements1.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "requirements2.txt").write_lines(["beep", "bop", "boop"]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "beep", "boop", "bop", "foo"] E AssertionError: assert () == ['bar', 'baz>... 'bop', 'foo'] E  E Right contains 6 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (6 lines hidden), use '-vv' to show tests/test_metadata.py:158: AssertionError __________________ test_build_pip_compile_style[build_sdist] ___________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_pip_compile_style_b0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_pip_compile_style(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] """ (tmp_pathplus / "requirements.txt").write_lines([ "--index http://localhost:3141", "alembic==1.9.1 \\", " --hash=sha256:a9781ed0979a20341c2cbb56bd22bd8db4fc1913f955e705444bd3a97c59fa32 \\", " --hash=sha256:f9f76e41061f5ebe27d4fe92600df9dd612521a7683f904dab328ba02cffa5a2", "hatch-requirements-txt", ]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == [ "alembic==1.9.1", "hatch-requirements-txt", ] E AssertionError: assert () == ['alembic==1....irements-txt'] E  E Right contains 2 more items, first extra item: 'alembic==1.9.1' E  E Full diff: E + () E - [ E - 'alembic==1.9.1', E - 'hatch-requirements-txt', E - ] tests/test_metadata.py:126: AssertionError ____________________ test_build_with_filename[build_wheel] _____________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_with_filename_build0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_with_filename(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] filename = "requirements.txt" """ (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) deprecation_warning_msg = r"The 'filename' option in \[tool.hatch.metadata.hooks.requirements_txt] is deprecated. Please instead use the list 'files'" with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "foo"] E AssertionError: assert () == ['bar', 'baz>1', 'foo'] E  E Right contains 3 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:80: AssertionError __________________ test_build_pip_compile_style[build_wheel] ___________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_pip_compile_style_b1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_pip_compile_style(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] """ (tmp_pathplus / "requirements.txt").write_lines([ "--index http://localhost:3141", "alembic==1.9.1 \\", " --hash=sha256:a9781ed0979a20341c2cbb56bd22bd8db4fc1913f955e705444bd3a97c59fa32 \\", " --hash=sha256:f9f76e41061f5ebe27d4fe92600df9dd612521a7683f904dab328ba02cffa5a2", "hatch-requirements-txt", ]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == [ "alembic==1.9.1", "hatch-requirements-txt", ] E AssertionError: assert () == ['alembic==1....irements-txt'] E  E Right contains 2 more items, first extra item: 'alembic==1.9.1' E  E Full diff: E + () E - [ E - 'alembic==1.9.1', E - 'hatch-requirements-txt', E - ] tests/test_metadata.py:126: AssertionError _________________ test_using_project_dependencies[build_wheel] _________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_using_project_dependencie1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_using_project_dependencies(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header.replace( 'dynamic = ["dependencies"]', """ dynamic = [] dependencies = ["foo", "bar"] """ ) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "foo"] E AssertionError: assert () == ['bar', 'foo'] E  E Right contains 2 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar', E - 'foo', E - ] tests/test_metadata.py:356: AssertionError _______________________ test_build_comments[build_sdist] _______________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_comments_build_sdis0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_comments(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] [tool.hatch.metadata] allow-direct-references = true """ (tmp_pathplus / "requirements.txt").write_lines([ "Foo", "bar", "# fizz", "baz>1 # this is a comment", "pip@ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" ]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == [ "bar", "baz>1", "foo", "pip@ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" ] E AssertionError: assert () == ['bar', 'baz>...940a148ea686'] E  E Right contains 4 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (5 lines hidden), use '-vv' to show tests/test_metadata.py:102: AssertionError ________________ test_build_files_in_subdirectory[build_sdist] _________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_files_in_subdirecto0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_files_in_subdirectory(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements/dev.txt", "requirements/docs.txt", "requirements/tests.txt"] """ reqs_subdir = tmp_pathplus / "requirements" reqs_subdir.maybe_make() (reqs_subdir / "dev.txt").write_lines(["pre-commit"]) (reqs_subdir / "docs.txt").write_lines(["mkdocs"]) (reqs_subdir / "tests.txt").write_lines(["pytest"]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["mkdocs", "pre-commit", "pytest"] E AssertionError: assert () == ['mkdocs', 'p...it', 'pytest'] E  E Right contains 3 more items, first extra item: 'mkdocs' E  E Full diff: E + () E - [ E - 'mkdocs',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:174: AssertionError _____________________ test_build_unspecified[build_sdist] ______________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_unspecified_build_s0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_unspecified(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] # files = ["requirements.txt"] """ (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) deprecation_warning_msg = r"Please explicitly specify 'files' in \[tool.hatch.metadata.hooks.requirements_txt]. Defaulting to \['requirements.txt'] is deprecated" with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "foo"] E AssertionError: assert () == ['bar', 'baz>1', 'foo'] E  E Right contains 3 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:145: AssertionError ___________________ test_optional_dependencies[build_sdist] ____________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_optional_dependencies_bui0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_optional_dependencies(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] crypto = ["requirements-crypto.txt"] fastjson = ["requirements-fastjson.txt"] cli = ["requirements-cli.txt"] """ pyproject_toml = pyproject_toml.replace( 'dynamic = ["dependencies"]', 'dynamic = ["dependencies", "optional-dependencies"]' ) (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", "cryptography"]) (tmp_pathplus / "requirements-fastjson.txt").write_lines(["orjson"]) (tmp_pathplus / "requirements-cli.txt").write_lines([ "prompt-toolkit", "colorama; platform_system == 'Windows'" ]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.provides_extras == ["cli", "crypto", "fastjson"] E AssertionError: assert () == ['cli', 'crypto', 'fastjson'] E  E Right contains 3 more items, first extra item: 'cli' E  E Full diff: E + () E - [ E - 'cli',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:253: AssertionError ____________ test_using_project_deps_and_optional_deps[build_wheel] ____________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_using_project_deps_and_op0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_using_project_deps_and_optional_deps(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header.replace( 'dynamic = ["dependencies"]', """ dynamic = ["optional-dependencies"] dependencies = ["foo", "bar"] """ ) + """ [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] crypto = ["requirements-crypto.txt"] """ (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", "cryptography"]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.provides_extras == ["crypto"] E AssertionError: assert () == ['crypto'] E  E Right contains one more item: 'crypto' E  E Full diff: E + () E - [ E - 'crypto', E - ] tests/test_metadata.py:374: AssertionError ______________________ test_build_with_files[build_sdist] ______________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_with_files_build_sd0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_with_files(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements1.txt", "requirements2.txt"] """ (tmp_pathplus / "requirements1.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "requirements2.txt").write_lines(["beep", "bop", "boop"]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "beep", "boop", "bop", "foo"] E AssertionError: assert () == ['bar', 'baz>... 'bop', 'foo'] E  E Right contains 6 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (6 lines hidden), use '-vv' to show tests/test_metadata.py:158: AssertionError ____________________ test_build_with_filename[build_sdist] _____________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_with_filename_build1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_with_filename(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] filename = "requirements.txt" """ (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) deprecation_warning_msg = r"The 'filename' option in \[tool.hatch.metadata.hooks.requirements_txt] is deprecated. Please instead use the list 'files'" with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "foo"] E AssertionError: assert () == ['bar', 'baz>1', 'foo'] E  E Right contains 3 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:80: AssertionError _____________________ test_build_unspecified[build_wheel] ______________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_unspecified_build_w0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_unspecified(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] # files = ["requirements.txt"] """ (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) deprecation_warning_msg = r"Please explicitly specify 'files' in \[tool.hatch.metadata.hooks.requirements_txt]. Defaulting to \['requirements.txt'] is deprecated" with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "foo"] E AssertionError: assert () == ['bar', 'baz>1', 'foo'] E  E Right contains 3 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:145: AssertionError ____________ test_using_project_deps_and_optional_deps[build_sdist] ____________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_using_project_deps_and_op1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_using_project_deps_and_optional_deps(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header.replace( 'dynamic = ["dependencies"]', """ dynamic = ["optional-dependencies"] dependencies = ["foo", "bar"] """ ) + """ [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] crypto = ["requirements-crypto.txt"] """ (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", "cryptography"]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.provides_extras == ["crypto"] E AssertionError: assert () == ['crypto'] E  E Right contains one more item: 'crypto' E  E Full diff: E + () E - [ E - 'crypto', E - ] tests/test_metadata.py:374: AssertionError ________________ test_build_files_in_subdirectory[build_wheel] _________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_files_in_subdirecto1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_files_in_subdirectory(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements/dev.txt", "requirements/docs.txt", "requirements/tests.txt"] """ reqs_subdir = tmp_pathplus / "requirements" reqs_subdir.maybe_make() (reqs_subdir / "dev.txt").write_lines(["pre-commit"]) (reqs_subdir / "docs.txt").write_lines(["mkdocs"]) (reqs_subdir / "tests.txt").write_lines(["pytest"]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["mkdocs", "pre-commit", "pytest"] E AssertionError: assert () == ['mkdocs', 'p...it', 'pytest'] E  E Right contains 3 more items, first extra item: 'mkdocs' E  E Full diff: E + () E - [ E - 'mkdocs',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:174: AssertionError _______________________ test_build_comments[build_wheel] _______________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_build_comments_build_whee0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_build_comments(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] [tool.hatch.metadata] allow-direct-references = true """ (tmp_pathplus / "requirements.txt").write_lines([ "Foo", "bar", "# fizz", "baz>1 # this is a comment", "pip@ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" ]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == [ "bar", "baz>1", "foo", "pip@ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" ] E AssertionError: assert () == ['bar', 'baz>...940a148ea686'] E  E Right contains 4 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (5 lines hidden), use '-vv' to show tests/test_metadata.py:102: AssertionError ___________________ test_optional_dependencies[build_wheel] ____________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_optional_dependencies_bui1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_optional_dependencies(tmp_pathplus: PathPlus, build_func: Callable): pyproject_toml = pyproject_toml_header + """ [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] crypto = ["requirements-crypto.txt"] fastjson = ["requirements-fastjson.txt"] cli = ["requirements-cli.txt"] """ pyproject_toml = pyproject_toml.replace( 'dynamic = ["dependencies"]', 'dynamic = ["dependencies", "optional-dependencies"]' ) (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", "cryptography"]) (tmp_pathplus / "requirements-fastjson.txt").write_lines(["orjson"]) (tmp_pathplus / "requirements-cli.txt").write_lines([ "prompt-toolkit", "colorama; platform_system == 'Windows'" ]) info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.provides_extras == ["cli", "crypto", "fastjson"] E AssertionError: assert () == ['cli', 'crypto', 'fastjson'] E  E Right contains 3 more items, first extra item: 'cli' E  E Full diff: E + () E - [ E - 'cli',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:253: AssertionError ______________ test_not_dynamic_project_dependencies[build_sdist] ______________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_not_dynamic_project_depen1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_not_dynamic_project_dependencies(tmp_pathplus: PathPlus, build_func: Callable): dist_dir = tmp_pathplus / "dist" dist_dir.maybe_make() pyproject_toml = pyproject_toml_header.replace( 'dynamic = ["dependencies"]', 'dependencies = ["foo", "bar", "baz>1"]' ) (tmp_pathplus / "README.md").touch() (tmp_pathplus / "LICENSE").touch() (tmp_pathplus / "demo").maybe_make() (tmp_pathplus / "demo" / "__init__.py").touch() info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > assert info.requires_dist == ["bar", "baz>1", "foo"] E AssertionError: assert () == ['bar', 'baz>1', 'foo'] E  E Right contains 3 more items, first extra item: 'bar' E  E Full diff: E + () E - [ E - 'bar',... E  E ...Full output truncated (3 lines hidden), use '-vv' to show tests/test_metadata.py:228: AssertionError ______________ test_not_dynamic_but_filename_defined[build_sdist] ______________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_not_dynamic_but_filename_0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_not_dynamic_but_filename_defined(tmp_pathplus: PathPlus, build_func: Callable): dist_dir = tmp_pathplus / "dist" dist_dir.maybe_make() new_pyproject_toml = pyproject_toml.replace('dynamic = ["dependencies"]', '').replace( 'files = ["requirements.txt"]', 'filename = "requirements.txt"' ) (tmp_pathplus / "pyproject.toml").write_clean(new_pyproject_toml) (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "README.md").touch() (tmp_pathplus / "LICENSE").touch() (tmp_pathplus / "demo").maybe_make() (tmp_pathplus / "demo" / "__init__.py").touch() > with in_directory(tmp_pathplus), pytest.raises(ValueError, match=( r"^Cannot specify 'filename' in \[tool.hatch.metadata.hooks.requirements_txt\] " r"when 'dependencies' is not listed in 'project.dynamic'.$" )): E Failed: DID NOT RAISE  tests/test_errors.py:105: Failed _______________ test_not_dynamic_but_files_defined[build_sdist] ________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_not_dynamic_but_files_def0') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_not_dynamic_but_files_defined(tmp_pathplus: PathPlus, build_func: Callable): dist_dir = tmp_pathplus / "dist" dist_dir.maybe_make() (tmp_pathplus / "pyproject.toml").write_clean(pyproject_toml.replace('dynamic = ["dependencies"]', '')) (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "README.md").touch() (tmp_pathplus / "LICENSE").touch() (tmp_pathplus / "demo").maybe_make() (tmp_pathplus / "demo" / "__init__.py").touch() > with in_directory(tmp_pathplus), pytest.raises(ValueError, match=( r"^Cannot specify 'files' in \[tool.hatch.metadata.hooks.requirements_txt\] " r"when 'dependencies' is not listed in 'project.dynamic'.$" )): E Failed: DID NOT RAISE  tests/test_errors.py:82: Failed _______________ test_not_dynamic_but_files_defined[build_wheel] ________________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_not_dynamic_but_files_def1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_not_dynamic_but_files_defined(tmp_pathplus: PathPlus, build_func: Callable): dist_dir = tmp_pathplus / "dist" dist_dir.maybe_make() (tmp_pathplus / "pyproject.toml").write_clean(pyproject_toml.replace('dynamic = ["dependencies"]', '')) (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "README.md").touch() (tmp_pathplus / "LICENSE").touch() (tmp_pathplus / "demo").maybe_make() (tmp_pathplus / "demo" / "__init__.py").touch() > with in_directory(tmp_pathplus), pytest.raises(ValueError, match=( r"^Cannot specify 'files' in \[tool.hatch.metadata.hooks.requirements_txt\] " r"when 'dependencies' is not listed in 'project.dynamic'.$" )): E Failed: DID NOT RAISE  tests/test_errors.py:82: Failed ______________ test_not_dynamic_but_filename_defined[build_wheel] ______________ tmp_pathplus = PosixPathPlus('/usr/src/tmp/pytest-of-builder/pytest-0/test_not_dynamic_but_filename_1') build_func = @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) def test_not_dynamic_but_filename_defined(tmp_pathplus: PathPlus, build_func: Callable): dist_dir = tmp_pathplus / "dist" dist_dir.maybe_make() new_pyproject_toml = pyproject_toml.replace('dynamic = ["dependencies"]', '').replace( 'files = ["requirements.txt"]', 'filename = "requirements.txt"' ) (tmp_pathplus / "pyproject.toml").write_clean(new_pyproject_toml) (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# fizz", "baz>1"]) (tmp_pathplus / "README.md").touch() (tmp_pathplus / "LICENSE").touch() (tmp_pathplus / "demo").maybe_make() (tmp_pathplus / "demo" / "__init__.py").touch() > with in_directory(tmp_pathplus), pytest.raises(ValueError, match=( r"^Cannot specify 'filename' in \[tool.hatch.metadata.hooks.requirements_txt\] " r"when 'dependencies' is not listed in 'project.dynamic'.$" )): E Failed: DID NOT RAISE  tests/test_errors.py:105: Failed ============================= slowest 25 durations ============================= 0.02s call tests/test_metadata.py::test_not_dynamic_project_dependencies[build_wheel] 0.01s call tests/test_metadata.py::test_build_with_files[build_wheel] 0.01s call tests/test_metadata.py::test_optional_dependencies[build_wheel] 0.01s call tests/test_metadata.py::test_build_with_filename[build_wheel] 0.01s call tests/test_metadata.py::test_build_comments[build_wheel] 0.01s call tests/test_metadata.py::test_build_files_in_subdirectory[build_wheel] 0.01s call tests/test_metadata.py::test_build_pip_compile_style[build_wheel] 0.01s call tests/test_metadata.py::test_build_unspecified[build_wheel] 0.01s call tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_wheel] 0.01s call tests/test_metadata.py::test_optional_dependencies[build_sdist] 0.01s call tests/test_errors.py::test_no_files_or_filename_deprecation[build_wheel] 0.01s call tests/test_errors.py::test_filename_deprecation[build_wheel] 0.01s call tests/test_metadata.py::test_build_files_in_subdirectory[build_sdist] 0.01s call tests/test_errors.py::test_not_dynamic_but_files_defined[build_wheel] 0.01s call tests/test_metadata.py::test_build_with_files[build_sdist] 0.01s call tests/test_errors.py::test_not_dynamic_but_filename_defined[build_wheel] 0.01s call tests/test_metadata.py::test_build_unspecified[build_sdist] 0.01s call tests/test_metadata.py::test_build_comments[build_sdist] (7 durations < 0.005s hidden. Use -vv to show these durations.) =========================== short test summary info ============================ FAILED tests/test_metadata.py::test_not_dynamic_project_dependencies[build_wheel] - AssertionError: assert () == ['bar', 'baz>1', 'foo'] FAILED tests/test_metadata.py::test_using_project_dependencies[build_sdist] - AssertionError: assert () == ['bar', 'foo'] FAILED tests/test_metadata.py::test_build_with_files[build_wheel] - AssertionError: assert () == ['bar', 'baz>... 'bop', 'foo'] FAILED tests/test_metadata.py::test_build_pip_compile_style[build_sdist] - AssertionError: assert () == ['alembic==1....irements-txt'] FAILED tests/test_metadata.py::test_build_with_filename[build_wheel] - AssertionError: assert () == ['bar', 'baz>1', 'foo'] FAILED tests/test_metadata.py::test_build_pip_compile_style[build_wheel] - AssertionError: assert () == ['alembic==1....irements-txt'] FAILED tests/test_metadata.py::test_using_project_dependencies[build_wheel] - AssertionError: assert () == ['bar', 'foo'] FAILED tests/test_metadata.py::test_build_comments[build_sdist] - AssertionError: assert () == ['bar', 'baz>...940a148ea686'] FAILED tests/test_metadata.py::test_build_files_in_subdirectory[build_sdist] - AssertionError: assert () == ['mkdocs', 'p...it', 'pytest'] FAILED tests/test_metadata.py::test_build_unspecified[build_sdist] - AssertionError: assert () == ['bar', 'baz>1', 'foo'] FAILED tests/test_metadata.py::test_optional_dependencies[build_sdist] - AssertionError: assert () == ['cli', 'crypto', 'fastjson'] FAILED tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_wheel] - AssertionError: assert () == ['crypto'] FAILED tests/test_metadata.py::test_build_with_files[build_sdist] - AssertionError: assert () == ['bar', 'baz>... 'bop', 'foo'] FAILED tests/test_metadata.py::test_build_with_filename[build_sdist] - AssertionError: assert () == ['bar', 'baz>1', 'foo'] FAILED tests/test_metadata.py::test_build_unspecified[build_wheel] - AssertionError: assert () == ['bar', 'baz>1', 'foo'] FAILED tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_sdist] - AssertionError: assert () == ['crypto'] FAILED tests/test_metadata.py::test_build_files_in_subdirectory[build_wheel] - AssertionError: assert () == ['mkdocs', 'p...it', 'pytest'] FAILED tests/test_metadata.py::test_build_comments[build_wheel] - AssertionError: assert () == ['bar', 'baz>...940a148ea686'] FAILED tests/test_metadata.py::test_optional_dependencies[build_wheel] - AssertionError: assert () == ['cli', 'crypto', 'fastjson'] FAILED tests/test_metadata.py::test_not_dynamic_project_dependencies[build_sdist] - AssertionError: assert () == ['bar', 'baz>1', 'foo'] FAILED tests/test_errors.py::test_not_dynamic_but_filename_defined[build_sdist] - Failed: DID NOT RAISE FAILED tests/test_errors.py::test_not_dynamic_but_files_defined[build_sdist] - Failed: DID NOT RAISE FAILED tests/test_errors.py::test_not_dynamic_but_files_defined[build_wheel] - Failed: DID NOT RAISE FAILED tests/test_errors.py::test_not_dynamic_but_filename_defined[build_wheel] - Failed: DID NOT RAISE ======================== 24 failed, 34 passed in 0.44s ========================= INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest', '-vra']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpm-tmp.47571 (%check) RPM build errors: File /usr/src/RPM/SOURCES/python3-module-hatch-requirements-txt-0.4.1-alt.patch is smaller than 8 bytes Bad exit status from /usr/src/tmp/rpm-tmp.47571 (%check) Command exited with non-zero status 1 2.32user 0.77system 0:03.04elapsed 101%CPU (0avgtext+0avgdata 38000maxresident)k 0inputs+0outputs (0major+146732minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-hatch-requirements-txt-0.4.1-alt1.src.rpm' failed. Command exited with non-zero status 1 4.30user 3.02system 0:15.05elapsed 48%CPU (0avgtext+0avgdata 131488maxresident)k 1536inputs+0outputs (0major+270204minor)pagefaults 0swaps