Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-build.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-296731-28839/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-build.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-build-1.2.2-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-build.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-296731-28839/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-build.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KytoTk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf build-1.2.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/build-1.2.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd build-1.2.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hAMpLO + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd build-1.2.2 + mkdir -p /builddir/build/BUILD/build-1.2.2/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + TMPDIR=/builddir/build/BUILD/build-1.2.2/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/build-1.2.2/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/build-1.2.2 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: build Building wheel for build (pyproject.toml): started Running command Building wheel for build (pyproject.toml) Building wheel for build (pyproject.toml): finished with status 'done' Created wheel for build: filename=build-1.2.2-py3-none-any.whl size=22823 sha256=2f4976e5633aa8d7e6ddbd6371a21746abb2e719c840e133b737435e4e5ae32d Stored in directory: /builddir/.cache/pip/wheels/67/14/ca/02fd53af544527841d413920f0a84a7ef418309035dc5e265e Successfully built build + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.nb8ifx + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch + cd build-1.2.2 ++ ls /builddir/build/BUILD/build-1.2.2/pyproject-wheeldir/build-1.2.2-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=build==1.2.2 + TMPDIR=/builddir/build/BUILD/build-1.2.2/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/build-1.2.2/pyproject-wheeldir build==1.2.2 Using pip 23.3.1 from /usr/lib/python3.11/site-packages/pip (python 3.11) Looking in links: /builddir/build/BUILD/build-1.2.2/pyproject-wheeldir Processing ./pyproject-wheeldir/build-1.2.2-py3-none-any.whl Installing collected packages: build Creating /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/bin/pyproject-build to 755 Successfully installed build-1.2.2 + '[' -d /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/bin ']' + '[' -f /usr/bin/pathfix3.11.py ']' + pathfix=/usr/bin/pathfix3.11.py + '[' -z s ']' + shebang_flags=-kas + /usr/bin/pathfix3.11.py -pni /usr/bin/python3 -kas /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/bin/pyproject-build /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/bin/pyproject-build: updating + rm -rfv /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/bin/__pycache__ + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages ']' + site_dirs+=("/usr/lib/python3.11/site-packages") + '[' /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib64/python3.11/site-packages '!=' /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib64/python3.11/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.11/site-packages/build-1.2.2.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages/build-1.2.2.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/OpenCloudOS + /usr/bin/python3 -B /usr/lib/rpm/OpenCloudOS/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch --record /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages/build-1.2.2.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record + rm -fv /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages/build-1.2.2.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages/build-1.2.2.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages/build-1.2.2.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11/site-packages/build-1.2.2.dist-info/REQUESTED' + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 1.2.2-1.ocs23 --unique-debug-suffix -1.2.2-1.ocs23.noarch --unique-debug-src-base python-build-1.2.2-1.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/build-1.2.2 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.tFSRI9 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd build-1.2.2 ++ find . -name '*.whl' + SETUPTOOLS_WHEEL=./pyproject-wheeldir/build-1.2.2-py3-none-any.whl + PRE_BUILT_SETUPTOOLS_WHEEL=./pyproject-wheeldir/build-1.2.2-py3-none-any.whl + PYTHONPATH=./src + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + PATH=/builddir/build/BUILDROOT/python-build-1.2.2-1.ocs23.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=./src + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/build-1.2.2/.pyproject-builddir' + /usr/bin/pytest -k 'not (test_build_package or test_build_package_via_sdist or test_output[via-sdist-no-isolation] or test_output[via-sdist-isolation] or test_output[sdist-direct-no-isolation] or test_output[wheel-direct-isolation] or test_output[wheel-direct-no-isolation] or test_output[sdist-and-wheel-direct-no-isolation] or test_wheel_metadata[True] or test_wheel_metadata_isolation or test_with_get_requires or test_build_sdist or test_projectbuilder or test_build_wheel[from_sdist] or test_build_wheel[direct])' ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.3.0 installed packages of interest: filelock==3.12.4 packaging==23.1 pip==23.3.1 pyproject_hooks==1.0.0 setuptools==68.0.0 wheel==0.41.2 rootdir: /builddir/build/BUILD/build-1.2.2 configfile: pyproject.toml testpaths: tests plugins: mock-3.11.1, flaky-3.7.0 collected 196 items / 65 deselected / 131 selected tests/test_ctx_logger.py ...... [ 4%] tests/test_env.py .ss..................ssss.FFsFss. [ 29%] tests/test_main.py .....................EEEEEE..........FF [ 59%] tests/test_main_helpers.py . [ 60%] tests/test_module.py .. [ 61%] tests/test_self_packaging.py FF [ 63%] tests/test_util.py .F [ 64%] tests/test_integration.py ssssssssssssssssssssssssssssssssssssssssssssss [100%] ==================================== ERRORS ==================================== ___________ ERROR at setup of test_output[False-via-sdist-isolation] ___________ self = item = def pytest_runtest_setup(self, item): """ Pytest hook to modify the test before it's run. :param item: The test item. """ if not self._has_flaky_attributes(item): if hasattr(item, 'iter_markers'): for marker in item.iter_markers(name='flaky'): > self._make_test_flaky(item, *marker.args, **marker.kwargs) E TypeError: _FlakyPlugin._make_test_flaky() got an unexpected keyword argument 'reruns' /usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError _________ ERROR at setup of test_output[False-via-sdist-no-isolation] __________ self = item = def pytest_runtest_setup(self, item): """ Pytest hook to modify the test before it's run. :param item: The test item. """ if not self._has_flaky_attributes(item): if hasattr(item, 'iter_markers'): for marker in item.iter_markers(name='flaky'): > self._make_test_flaky(item, *marker.args, **marker.kwargs) E TypeError: _FlakyPlugin._make_test_flaky() got an unexpected keyword argument 'reruns' /usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError _________ ERROR at setup of test_output[False-wheel-direct-isolation] __________ self = item = def pytest_runtest_setup(self, item): """ Pytest hook to modify the test before it's run. :param item: The test item. """ if not self._has_flaky_attributes(item): if hasattr(item, 'iter_markers'): for marker in item.iter_markers(name='flaky'): > self._make_test_flaky(item, *marker.args, **marker.kwargs) E TypeError: _FlakyPlugin._make_test_flaky() got an unexpected keyword argument 'reruns' /usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError ________ ERROR at setup of test_output[False-wheel-direct-no-isolation] ________ self = item = def pytest_runtest_setup(self, item): """ Pytest hook to modify the test before it's run. :param item: The test item. """ if not self._has_flaky_attributes(item): if hasattr(item, 'iter_markers'): for marker in item.iter_markers(name='flaky'): > self._make_test_flaky(item, *marker.args, **marker.kwargs) E TypeError: _FlakyPlugin._make_test_flaky() got an unexpected keyword argument 'reruns' /usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError ________ ERROR at setup of test_output[False-sdist-direct-no-isolation] ________ self = item = def pytest_runtest_setup(self, item): """ Pytest hook to modify the test before it's run. :param item: The test item. """ if not self._has_flaky_attributes(item): if hasattr(item, 'iter_markers'): for marker in item.iter_markers(name='flaky'): > self._make_test_flaky(item, *marker.args, **marker.kwargs) E TypeError: _FlakyPlugin._make_test_flaky() got an unexpected keyword argument 'reruns' /usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError ___ ERROR at setup of test_output[False-sdist-and-wheel-direct-no-isolation] ___ self = item = def pytest_runtest_setup(self, item): """ Pytest hook to modify the test before it's run. :param item: The test item. """ if not self._has_flaky_attributes(item): if hasattr(item, 'iter_markers'): for marker in item.iter_markers(name='flaky'): > self._make_test_flaky(item, *marker.args, **marker.kwargs) E TypeError: _FlakyPlugin._make_test_flaky() got an unexpected keyword argument 'reruns' /usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError =================================== FAILURES =================================== _________________ test_venv_creation[pip-virtualenv+pip-True] __________________ installer = 'pip', env_backend_display_name = 'virtualenv+pip' @pytest.mark.usefixtures('local_pip') @pytest.mark.parametrize( ('installer', 'env_backend_display_name', 'has_virtualenv'), [ ('pip', 'venv+pip', False), ('pip', 'virtualenv+pip', True), ('pip', 'virtualenv+pip', None), # Fall-through pytest.param( 'uv', 'venv+uv', None, marks=pytest.mark.skipif(MISSING_UV, reason='uv executable not found'), ), ], indirect=('has_virtualenv',), ) def test_venv_creation( installer: build.env.Installer, env_backend_display_name: str, ): > with build.env.DefaultIsolatedEnv(installer=installer) as env: tests/test_env.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/build/env.py:93: in __enter__ self._env_backend.create(self._path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = path = '/tmp/build-env-jcsbyfr_' def create(self, path: str) -> None: if self._create_with_virtualenv: > import virtualenv E ModuleNotFoundError: No module named 'virtualenv' src/build/env.py:195: ModuleNotFoundError ------------------------------ Captured log call ------------------------------- INFO build:env.py:92 Creating isolated environment: virtualenv+pip... _________________ test_venv_creation[pip-virtualenv+pip-None] __________________ installer = 'pip', env_backend_display_name = 'virtualenv+pip' @pytest.mark.usefixtures('local_pip') @pytest.mark.parametrize( ('installer', 'env_backend_display_name', 'has_virtualenv'), [ ('pip', 'venv+pip', False), ('pip', 'virtualenv+pip', True), ('pip', 'virtualenv+pip', None), # Fall-through pytest.param( 'uv', 'venv+uv', None, marks=pytest.mark.skipif(MISSING_UV, reason='uv executable not found'), ), ], indirect=('has_virtualenv',), ) def test_venv_creation( installer: build.env.Installer, env_backend_display_name: str, ): with build.env.DefaultIsolatedEnv(installer=installer) as env: > assert env._env_backend.display_name == env_backend_display_name E AssertionError: assert 'venv+pip' == 'virtualenv+pip' E - virtualenv+pip E + venv+pip tests/test_env.py:258: AssertionError ------------------------------ Captured log call ------------------------------- INFO build:env.py:92 Creating isolated environment: venv+pip... ___________________ test_requirement_installation[False-pip] ___________________ package_test_flit = '/builddir/build/BUILD/build-1.2.2/tests/packages/test-flit' installer = 'pip' @pytest.mark.network @pytest.mark.usefixtures('local_pip') @pytest.mark.parametrize( 'installer', [ 'pip', pytest.param( 'uv', marks=[ pytest.mark.xfail( IS_PYPY and IS_WINDOWS and sys.version_info < (3, 9), reason='uv cannot find PyPy 3.8 executable on Windows', ), pytest.mark.skipif(MISSING_UV, reason='uv executable not found'), ], ), ], ) def test_requirement_installation( package_test_flit: str, installer: build.env.Installer, ): with build.env.DefaultIsolatedEnv(installer=installer) as env: > env.install([f'test-flit @ {Path(package_test_flit).as_uri()}']) tests/test_env.py:284: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/build/env.py:136: in install self._env_backend.install_requirements(requirements) src/build/env.py:265: in install_requirements run_subprocess(cmd) src/build/_ctx.py:71: in run_subprocess subprocess.run(cmd, capture_output=True, check=True, env=env) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = None, check = True popenargs = (['/tmp/build-env-r_0qyqvz/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', ...],) kwargs = {'env': None, 'stderr': -1, 'stdout': -1} process = stdout = b"Processing ./tests/packages/test-flit (from -r /tmp/build-reqs-2iqsccqx.txt (line 1))\n Installing build dependencies: started\n Installing build dependencies: finished with status 'error'\n" stderr = b" error: subprocess-exited-with-error\n \n \xc3\x97 pip subprocess to install build dependencies did not run succe...4\x80> See above for output.\n\nnote: This error originates from a subprocess, and is likely not a problem with pip.\n" retcode = 1 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them, or pass capture_output=True to capture both. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['/tmp/build-env-r_0qyqvz/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-2iqsccqx.txt']' returned non-zero exit status 1. /usr/lib64/python3.11/subprocess.py:571: CalledProcessError ------------------------------ Captured log call ------------------------------- INFO build:env.py:92 Creating isolated environment: venv+pip... INFO build:env.py:135 Installing packages in isolated environment: - test-flit @ file:///builddir/build/BUILD/build-1.2.2/tests/packages/test-flit _________________________ test_verbose_output[False-0] _________________________ @contextlib.contextmanager def _handle_build_error() -> Iterator[None]: try: > yield src/build/__main__.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/build/__main__.py:429: in main built = build_call( src/build/__main__.py:238: in build_package out = _build(isolation, srcdir, outdir, distribution, config_settings, skip_dependency_check, installer) src/build/__main__.py:170: in _build return _build_in_isolated_env(srcdir, outdir, distribution, config_settings, installer) src/build/__main__.py:135: in _build_in_isolated_env env.install(builder.build_system_requires) src/build/env.py:136: in install self._env_backend.install_requirements(requirements) src/build/env.py:265: in install_requirements run_subprocess(cmd) src/build/_ctx.py:71: in run_subprocess subprocess.run(cmd, capture_output=True, check=True, env=env) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = None, check = True popenargs = (['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-xyl_dxm6/bin/python', 'install', ...],) kwargs = {'env': None, 'stderr': -1, 'stdout': -1} process = stdout = b'' stderr = b"WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by '...ies the requirement flit_core<3,>=2 (from versions: none)\nERROR: No matching distribution found for flit_core<3,>=2\n" retcode = 1 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them, or pass capture_output=True to capture both. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-xyl_dxm6/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-wadybbpr.txt']' returned non-zero exit status 1. /usr/lib64/python3.11/subprocess.py:571: CalledProcessError During handling of the above exception, another exception occurred: capsys = <_pytest.capture.CaptureFixture object at 0xffffb6b3f5d0> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0xffffb6b9ad50> tmp_dir = '/tmp/python-build-test-2lk8bdak' package_test_flit = '/builddir/build/BUILD/build-1.2.2/tests/packages/test-flit' verbosity = 0 @pytest.mark.network @pytest.mark.parametrize('verbosity', [0, 1]) def test_verbose_output( capsys: pytest.CaptureFixture, monkeypatch, tmp_dir, package_test_flit, verbosity: int, ): monkeypatch.setenv('NO_COLOR', '') cmd = [package_test_flit, '-w', '-o', tmp_dir] if verbosity: cmd.insert(0, f'-{"v" * verbosity}') > build.__main__.main(cmd) tests/test_main.py:457: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/build/__main__.py:428: in main with _handle_build_error(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) src/build/__main__.py:201: in _handle_build_error _error(str(e)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ msg = "Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-xyl_dxm6/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-wadybbpr.txt']' returned non-zero exit status 1." code = 1 def _error(msg: str, code: int = 1) -> NoReturn: # pragma: no cover """ Print an error message and exit. Will color the output when writing to a TTY. :param msg: Error message :param code: Error code """ _cprint('{red}ERROR{reset} {}', msg) > raise SystemExit(code) E SystemExit: 1 src/build/__main__.py:118: SystemExit ----------------------------- Captured stdout call ----------------------------- * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - flit_core >=2,<3 > /usr/bin/python3 -m pip --python /tmp/build-env-xyl_dxm6/bin/python install --use-pep517 --no-warn-script-location --no-compile -r /tmp/build-reqs- wadybbpr.txt Traceback (most recent call last): File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 178, in _handle_build_error yield File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 429, in main built = build_call( ^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 238, in build_package out = _build(isolation, srcdir, outdir, distribution, config_settings, skip_dependency_check, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 170, in _build return _build_in_isolated_env(srcdir, outdir, distribution, config_settings, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 135, in _build_in_isolated_env env.install(builder.build_system_requires) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 136, in install self._env_backend.install_requirements(requirements) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 265, in install_requirements run_subprocess(cmd) File "/builddir/build/BUILD/build-1.2.2/src/build/_ctx.py", line 71, in run_subprocess subprocess.run(cmd, capture_output=True, check=True, env=env) File "/usr/lib64/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-xyl_dxm6/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-wadybbpr.txt']' returned non-zero exit status 1. ERROR Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-xyl_dxm6/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-wadybbpr.txt']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- < WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < ERROR: Could not find a version that satisfies the requirement flit_core<3,>=2 (from versions: none) < ERROR: No matching distribution found for flit_core<3,>=2 _________________________ test_verbose_output[False-1] _________________________ @contextlib.contextmanager def _handle_build_error() -> Iterator[None]: try: > yield src/build/__main__.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/build/__main__.py:429: in main built = build_call( src/build/__main__.py:238: in build_package out = _build(isolation, srcdir, outdir, distribution, config_settings, skip_dependency_check, installer) src/build/__main__.py:170: in _build return _build_in_isolated_env(srcdir, outdir, distribution, config_settings, installer) src/build/__main__.py:135: in _build_in_isolated_env env.install(builder.build_system_requires) src/build/env.py:136: in install self._env_backend.install_requirements(requirements) src/build/env.py:265: in install_requirements run_subprocess(cmd) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-dz30a7ag/bin/python', 'install', ...] env = None def run_subprocess(cmd: Sequence[StrPath], env: Mapping[str, str] | None = None) -> None: verbosity = VERBOSITY.get() if verbosity: import concurrent.futures log = LOGGER.get() def log_stream(stream_name: str, stream: typing.IO[str]) -> None: for line in stream: log(line, origin=('subprocess', stream_name)) with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor, subprocess.Popen( cmd, encoding='utf-8', env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE ) as process: log(subprocess.list2cmdline(cmd), origin=('subprocess', 'cmd')) # Logging in sub-thread to more-or-less ensure order of stdout and stderr whilst also # being able to distinguish between the two. concurrent.futures.wait( [executor.submit(partial(log_stream, n, getattr(process, n))) for n in ('stdout', 'stderr')] ) code = process.wait() if code: > raise subprocess.CalledProcessError(code, process.args) E subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-dz30a7ag/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-1ib_h4su.txt']' returned non-zero exit status 1. src/build/_ctx.py:67: CalledProcessError During handling of the above exception, another exception occurred: capsys = <_pytest.capture.CaptureFixture object at 0xffffb6833990> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0xffffb6833cd0> tmp_dir = '/tmp/python-build-test-sgre3p4c' package_test_flit = '/builddir/build/BUILD/build-1.2.2/tests/packages/test-flit' verbosity = 1 @pytest.mark.network @pytest.mark.parametrize('verbosity', [0, 1]) def test_verbose_output( capsys: pytest.CaptureFixture, monkeypatch, tmp_dir, package_test_flit, verbosity: int, ): monkeypatch.setenv('NO_COLOR', '') cmd = [package_test_flit, '-w', '-o', tmp_dir] if verbosity: cmd.insert(0, f'-{"v" * verbosity}') > build.__main__.main(cmd) tests/test_main.py:457: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/build/__main__.py:428: in main with _handle_build_error(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) src/build/__main__.py:201: in _handle_build_error _error(str(e)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ msg = "Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-dz30a7ag/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-1ib_h4su.txt']' returned non-zero exit status 1." code = 1 def _error(msg: str, code: int = 1) -> NoReturn: # pragma: no cover """ Print an error message and exit. Will color the output when writing to a TTY. :param msg: Error message :param code: Error code """ _cprint('{red}ERROR{reset} {}', msg) > raise SystemExit(code) E SystemExit: 1 src/build/__main__.py:118: SystemExit ----------------------------- Captured stdout call ----------------------------- * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - flit_core >=2,<3 > /usr/bin/python3 -m pip --python /tmp/build-env-dz30a7ag/bin/python install --use-pep517 --no-warn-script-location --no-compile -r /tmp/build- reqs-1ib_h4su.txt Traceback (most recent call last): File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 178, in _handle_build_error yield File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 429, in main built = build_call( ^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 238, in build_package out = _build(isolation, srcdir, outdir, distribution, config_settings, skip_dependency_check, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 170, in _build return _build_in_isolated_env(srcdir, outdir, distribution, config_settings, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 135, in _build_in_isolated_env env.install(builder.build_system_requires) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 136, in install self._env_backend.install_requirements(requirements) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 265, in install_requirements run_subprocess(cmd) File "/builddir/build/BUILD/build-1.2.2/src/build/_ctx.py", line 67, in run_subprocess raise subprocess.CalledProcessError(code, process.args) subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-dz30a7ag/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-1ib_h4su.txt']' returned non-zero exit status 1. ERROR Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-dz30a7ag/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-1ib_h4su.txt']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- < WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < ERROR: Could not find a version that satisfies the requirement flit_core<3,>=2 (from versions: none) < ERROR: No matching distribution found for flit_core<3,>=2 ______________________ test_build_wheel[False-from_sdist] ______________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0xffffb54cb050> tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_build_wheel_False_from_sd0') args = () @pytest.mark.network @pytest.mark.parametrize('args', ((), ('--wheel',)), ids=('from_sdist', 'direct')) def test_build_wheel(monkeypatch, tmpdir, args): monkeypatch.chdir(MAIN_DIR) > subprocess.run( [ sys.executable, '-m', 'build', *args, '--outdir', str(tmpdir), ], check=True, ) tests/test_self_packaging.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['/usr/bin/python3', '-m', 'build', '--outdir', '/tmp/pytest-of-mockbuild/pytest-0/test_build_wheel_False_from_sd0'],) kwargs = {} process = stdout = None, stderr = None, retcode = 1 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them, or pass capture_output=True to capture both. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'build', '--outdir', '/tmp/pytest-of-mockbuild/pytest-0/test_build_wheel_False_from_sd0']' returned non-zero exit status 1. /usr/lib64/python3.11/subprocess.py:571: CalledProcessError ----------------------------- Captured stdout call ----------------------------- * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - flit-core >= 3.8 > /usr/bin/python3 -m pip --python /tmp/build-env-rdnpvbx0/bin/python install --use-pep517 --no-warn-script-location --no-compile -r /tmp/build- reqs-4hqmqzq0.txt Traceback (most recent call last): File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 178, in _handle_build_error yield File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 429, in main built = build_call( ^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 268, in build_package_via_sdist sdist = _build(isolation, srcdir, outdir, 'sdist', config_settings, skip_dependency_check, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 170, in _build return _build_in_isolated_env(srcdir, outdir, distribution, config_settings, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 135, in _build_in_isolated_env env.install(builder.build_system_requires) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 136, in install self._env_backend.install_requirements(requirements) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 265, in install_requirements run_subprocess(cmd) File "/builddir/build/BUILD/build-1.2.2/src/build/_ctx.py", line 71, in run_subprocess subprocess.run(cmd, capture_output=True, check=True, env=env) File "/usr/lib64/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-rdnpvbx0/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-4hqmqzq0.txt']' returned non-zero exit status 1. ERROR Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-rdnpvbx0/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-4hqmqzq0.txt']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- < WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < ERROR: Could not find a version that satisfies the requirement flit- core>=3.8 (from versions: none) < ERROR: No matching distribution found for flit-core>=3.8 ________________________ test_build_wheel[False-direct] ________________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0xffffb55961d0> tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_build_wheel_False_direct_0') args = ('--wheel',) @pytest.mark.network @pytest.mark.parametrize('args', ((), ('--wheel',)), ids=('from_sdist', 'direct')) def test_build_wheel(monkeypatch, tmpdir, args): monkeypatch.chdir(MAIN_DIR) > subprocess.run( [ sys.executable, '-m', 'build', *args, '--outdir', str(tmpdir), ], check=True, ) tests/test_self_packaging.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['/usr/bin/python3', '-m', 'build', '--wheel', '--outdir', '/tmp/pytest-of-mockbuild/pytest-0/test_build_wheel_False_direct_0'],) kwargs = {} process = stdout = None, stderr = None, retcode = 1 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them, or pass capture_output=True to capture both. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'build', '--wheel', '--outdir', '/tmp/pytest-of-mockbuild/pytest-0/test_build_wheel_False_direct_0']' returned non-zero exit status 1. /usr/lib64/python3.11/subprocess.py:571: CalledProcessError ----------------------------- Captured stdout call ----------------------------- * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - flit-core >= 3.8 > /usr/bin/python3 -m pip --python /tmp/build-env-q4imdvvh/bin/python install --use-pep517 --no-warn-script-location --no-compile -r /tmp/build- reqs-u17nipy3.txt Traceback (most recent call last): File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 178, in _handle_build_error yield File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 429, in main built = build_call( ^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 238, in build_package out = _build(isolation, srcdir, outdir, distribution, config_settings, skip_dependency_check, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 170, in _build return _build_in_isolated_env(srcdir, outdir, distribution, config_settings, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/build-1.2.2/src/build/__main__.py", line 135, in _build_in_isolated_env env.install(builder.build_system_requires) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 136, in install self._env_backend.install_requirements(requirements) File "/builddir/build/BUILD/build-1.2.2/src/build/env.py", line 265, in install_requirements run_subprocess(cmd) File "/builddir/build/BUILD/build-1.2.2/src/build/_ctx.py", line 71, in run_subprocess subprocess.run(cmd, capture_output=True, check=True, env=env) File "/usr/lib64/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-q4imdvvh/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-u17nipy3.txt']' returned non-zero exit status 1. ERROR Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-q4imdvvh/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-u17nipy3.txt']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- < WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flit-core/ < ERROR: Could not find a version that satisfies the requirement flit- core>=3.8 (from versions: none) < ERROR: No matching distribution found for flit-core>=3.8 _______________________ test_wheel_metadata[False-True] ________________________ package_test_setuptools = '/builddir/build/BUILD/build-1.2.2/tests/packages/test-setuptools' isolated = True @pytest.mark.pypy3323bug @pytest.mark.parametrize('isolated', [False, pytest.param(True, marks=[pytest.mark.network, pytest.mark.isolated])]) def test_wheel_metadata(package_test_setuptools, isolated): > metadata = build.util.project_wheel_metadata(package_test_setuptools, isolated) tests/test_util.py:13: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/build/util.py:48: in project_wheel_metadata env.install(builder.build_system_requires) src/build/env.py:136: in install self._env_backend.install_requirements(requirements) src/build/env.py:265: in install_requirements run_subprocess(cmd) src/build/_ctx.py:71: in run_subprocess subprocess.run(cmd, capture_output=True, check=True, env=env) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = None, check = True popenargs = (['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-zilwvo1a/bin/python', 'install', ...],) kwargs = {'env': None, 'stderr': -1, 'stdout': -1} process = stdout = b'' stderr = b"WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by '...e requirement setuptools>=42.0.0 (from versions: none)\nERROR: No matching distribution found for setuptools>=42.0.0\n" retcode = 1 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them, or pass capture_output=True to capture both. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--python', '/tmp/build-env-zilwvo1a/bin/python', 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', '-r', '/tmp/build-reqs-4u6iw78t.txt']' returned non-zero exit status 1. /usr/lib64/python3.11/subprocess.py:571: CalledProcessError ------------------------------ Captured log call ------------------------------- INFO build:env.py:92 Creating isolated environment: venv+pip... INFO build:env.py:135 Installing packages in isolated environment: - setuptools >= 42.0.0 =========================== short test summary info ============================ FAILED tests/test_env.py::test_venv_creation[pip-virtualenv+pip-True] - Modul... FAILED tests/test_env.py::test_venv_creation[pip-virtualenv+pip-None] - Asser... FAILED tests/test_env.py::test_requirement_installation[False-pip] - subproce... FAILED tests/test_main.py::test_verbose_output[False-0] - SystemExit: 1 FAILED tests/test_main.py::test_verbose_output[False-1] - SystemExit: 1 FAILED tests/test_self_packaging.py::test_build_wheel[False-from_sdist] - sub... FAILED tests/test_self_packaging.py::test_build_wheel[False-direct] - subproc... FAILED tests/test_util.py::test_wheel_metadata[False-True] - subprocess.Calle... ERROR tests/test_main.py::test_output[False-via-sdist-isolation] - TypeError:... ERROR tests/test_main.py::test_output[False-via-sdist-no-isolation] - TypeErr... ERROR tests/test_main.py::test_output[False-wheel-direct-isolation] - TypeErr... ERROR tests/test_main.py::test_output[False-wheel-direct-no-isolation] - Type... ERROR tests/test_main.py::test_output[False-sdist-direct-no-isolation] - Type... ERROR tests/test_main.py::test_output[False-sdist-and-wheel-direct-no-isolation] = 8 failed, 62 passed, 55 skipped, 65 deselected, 6 errors in 112.31s (0:01:52) = RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.tFSRI9 (%check) Bad exit status from /var/tmp/rpm-tmp.tFSRI9 (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-build.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-build.spec