>>> py3-build: Building community/py3-build 1.1.1-r0 (using abuild 3.12.0-r5) started Fri, 12 Apr 2024 18:40:14 +0000 >>> py3-build: Checking sanity of /home/buildozer/aports/community/py3-build/APKBUILD... >>> py3-build: Analyzing dependencies... >>> py3-build: Installing for build: build-base python3 py3-packaging py3-pyproject-hooks py3-wheel py3-flit-core py3-gpep517 py3-installer py3-filelock py3-pytest-forked py3-pytest-mock py3-pytest-rerunfailures py3-pytest-xdist py3-setuptools (1/53) Installing libbz2 (1.0.8-r6) (2/53) Installing libffi (3.4.6-r0) (3/53) Installing gdbm (1.23-r1) (4/53) Installing xz-libs (5.6.1-r3) (5/53) Installing mpdecimal (4.0.0-r0) (6/53) Installing libpanelw (6.4_p20240330-r0) (7/53) Installing readline (8.2.10-r0) (8/53) Installing sqlite-libs (3.45.2-r0) (9/53) Installing python3 (3.12.2-r1) (10/53) Installing python3-pycache-pyc0 (3.12.2-r1) (11/53) Installing pyc (3.12.2-r1) (12/53) Installing python3-pyc (3.12.2-r1) (13/53) Installing py3-parsing (3.1.2-r1) (14/53) Installing py3-parsing-pyc (3.1.2-r1) (15/53) Installing py3-packaging (24.0-r1) (16/53) Installing py3-packaging-pyc (24.0-r1) (17/53) Installing py3-pyproject-hooks (1.0.0-r2) (18/53) Installing py3-pyproject-hooks-pyc (1.0.0-r2) (19/53) Installing py3-wheel (0.42.0-r1) (20/53) Installing py3-wheel-pyc (0.42.0-r1) (21/53) Installing py3-flit-core (3.9.0-r1) (22/53) Installing py3-flit-core-pyc (3.9.0-r1) (23/53) Installing py3-installer (0.7.0-r2) (24/53) Installing py3-installer-pyc (0.7.0-r2) (25/53) Installing py3-gpep517 (15-r2) (26/53) Installing py3-gpep517-pyc (15-r2) (27/53) Installing py3-filelock (3.13.1-r1) (28/53) Installing py3-filelock-pyc (3.13.1-r1) (29/53) Installing py3-iniconfig (2.0.0-r1) (30/53) Installing py3-iniconfig-pyc (2.0.0-r1) (31/53) Installing py3-pluggy (1.4.0-r1) (32/53) Installing py3-pluggy-pyc (1.4.0-r1) (33/53) Installing py3-py (1.11.0-r3) (34/53) Installing py3-py-pyc (1.11.0-r3) (35/53) Installing py3-pytest (8.1.1-r1) (36/53) Installing py3-pytest-pyc (8.1.1-r1) (37/53) Installing py3-pytest-forked (1.6.0-r2) (38/53) Installing py3-pytest-forked-pyc (1.6.0-r2) (39/53) Installing py3-mock (5.1.0-r2) (40/53) Installing py3-mock-pyc (5.1.0-r2) (41/53) Installing py3-pytest-mock (3.10.0-r3) (42/53) Installing py3-pytest-mock-pyc (3.10.0-r3) (43/53) Installing py3-pytest-rerunfailures (13.0-r1) (44/53) Installing py3-pytest-rerunfailures-pyc (13.0-r1) (45/53) Installing py3-apipkg (2.1.0-r3) (46/53) Installing py3-apipkg-pyc (2.1.0-r3) (47/53) Installing py3-execnet (1.9.0-r3) (48/53) Installing py3-execnet-pyc (1.9.0-r3) (49/53) Installing py3-pytest-xdist (3.5.0-r1) (50/53) Installing py3-pytest-xdist-pyc (3.5.0-r1) (51/53) Installing py3-setuptools (69.2.0-r1) (52/53) Installing py3-setuptools-pyc (69.2.0-r1) (53/53) Installing .makedepends-py3-build (20240412.184015) Executing busybox-1.36.1-r25.trigger OK: 368 MiB in 156 packages >>> py3-build: Cleaning up srcdir >>> py3-build: Cleaning up pkgdir >>> py3-build: Cleaning up tmpdir >>> py3-build: Fetching https://distfiles.alpinelinux.org/distfiles/edge/py3-build-1.1.1.tar.gz >>> py3-build: Fetching https://distfiles.alpinelinux.org/distfiles/edge/py3-build-1.1.1.tar.gz >>> py3-build: Checking sha512sums... py3-build-1.1.1.tar.gz: OK >>> py3-build: Unpacking /var/cache/distfiles/py3-build-1.1.1.tar.gz... 2024-04-12 18:40:16,410 gpep517 INFO Building wheel via backend flit_core.buildapi 2024-04-12 18:40:16,412 flit_core.wheel INFO Zip timestamps will be from SOURCE_DATE_EPOCH: 2024-04-12 09:59:40 2024-04-12 18:40:16,413 flit_core.wheel INFO Copying package file(s) from src/build 2024-04-12 18:40:16,414 flit_core.wheel INFO Writing metadata files 2024-04-12 18:40:16,415 flit_core.wheel INFO Writing the record of files 2024-04-12 18:40:16,415 flit_core.wheel INFO Built wheel: .dist/build-1.1.1-py3-none-any.whl 2024-04-12 18:40:16,416 gpep517 INFO The backend produced .dist/build-1.1.1-py3-none-any.whl build-1.1.1-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 installed packages of interest: build==1.1.1 filelock==3.13.1 packaging==24.0 pyproject_hooks==1.0.0 setuptools==69.2.0 wheel==0.42.0 rootdir: /home/buildozer/aports/community/py3-build/src/build-1.1.1 configfile: pyproject.toml testpaths: tests plugins: xdist-3.5.0, rerunfailures-13.0, mock-3.10.0, forked-1.6.0 created: 80/80 workers 80 workers [158 items] ..s..........................ss....s..ss....ssss....ss.........s..s..ss. [ 44%] ..s.s.s.ssssssss..s.s............s..Fs................................ss [ 91%] ..F.x....F.F.. [100%] =================================== FAILURES =================================== _______________ test_output[sdist-and-wheel-direct-no-isolation] _______________ [gw48] linux -- Python 3.12.2 /home/buildozer/aports/community/py3-build/src/build-1.1.1/.testenv/bin/python3 @contextlib.contextmanager def _handle_build_error() -> Iterator[None]: try: > yield .testenv/lib/python3.12/site-packages/build/__main__.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .testenv/lib/python3.12/site-packages/build/__main__.py:388: in main built = build_call( .testenv/lib/python3.12/site-packages/build/__main__.py:210: in build_package out = _build(isolation, srcdir, outdir, distribution, config_settings, skip_dependency_check) .testenv/lib/python3.12/site-packages/build/__main__.py:149: in _build return _build_in_current_env(srcdir, outdir, distribution, config_settings, skip_dependency_check) .testenv/lib/python3.12/site-packages/build/__main__.py:135: in _build_in_current_env return builder.build(distribution, outdir, config_settings or {}) .testenv/lib/python3.12/site-packages/build/__init__.py:293: in build return self._call_backend(f'build_{distribution}', output_directory, config_settings, **kwargs) .testenv/lib/python3.12/site-packages/build/__init__.py:339: in _call_backend with self._handle_backend(hook_name): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = hook = 'build_sdist' @contextlib.contextmanager def _handle_backend(self, hook: str) -> Iterator[None]: try: yield except pyproject_hooks.BackendUnavailable as exception: raise BuildBackendException( exception, f"Backend '{self._backend}' is not available.", sys.exc_info(), ) from None except subprocess.CalledProcessError as exception: > raise BuildBackendException(exception, f'Backend subprocess exited when trying to invoke {hook}') from None E build._exceptions.BuildBackendException: Backend subprocess exited when trying to invoke build_sdist .testenv/lib/python3.12/site-packages/build/__init__.py:355: BuildBackendException During handling of the above exception, another exception occurred: package_test_setuptools = '/home/buildozer/aports/community/py3-build/src/build-1.1.1/tests/packages/test-setuptools' tmp_dir = '/tmp/python-build-test-g24ywnxm' capsys = <_pytest.capture.CaptureFixture object at 0xf5c77630> args = ['--sdist', '--wheel', '--no-isolation'] output = ['* Getting build dependencies for sdist...', '* Building sdist...', '* Getting build dependencies for wheel...', '* Building wheel...', 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl'] @pytest.mark.pypy3323bug @pytest.mark.parametrize( ('args', 'output'), [ pytest.param( [], [ '* Creating venv isolated environment...', '* Installing packages in isolated environment... (setuptools >= 42.0.0)', '* Getting build dependencies for sdist...', '* Building sdist...', '* Building wheel from sdist', '* Creating venv isolated environment...', '* Installing packages in isolated environment... (setuptools >= 42.0.0)', '* Getting build dependencies for wheel...', '* Installing packages in isolated environment... (wheel)', '* Building wheel...', 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='via-sdist-isolation', marks=[pytest.mark.network, pytest.mark.isolated], ), pytest.param( ['--no-isolation'], [ '* Getting build dependencies for sdist...', '* Building sdist...', '* Building wheel from sdist', '* Getting build dependencies for wheel...', '* Building wheel...', 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='via-sdist-no-isolation', ), pytest.param( ['--wheel'], [ '* Creating venv isolated environment...', '* Installing packages in isolated environment... (setuptools >= 42.0.0)', '* Getting build dependencies for wheel...', '* Installing packages in isolated environment... (wheel)', '* Building wheel...', 'Successfully built test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='wheel-direct-isolation', marks=[pytest.mark.network, pytest.mark.isolated], ), pytest.param( ['--wheel', '--no-isolation'], [ '* Getting build dependencies for wheel...', '* Building wheel...', 'Successfully built test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='wheel-direct-no-isolation', ), pytest.param( ['--sdist', '--no-isolation'], [ '* Getting build dependencies for sdist...', '* Building sdist...', 'Successfully built test_setuptools-1.0.0.tar.gz', ], id='sdist-direct-no-isolation', ), pytest.param( ['--sdist', '--wheel', '--no-isolation'], [ '* Getting build dependencies for sdist...', '* Building sdist...', '* Getting build dependencies for wheel...', '* Building wheel...', 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='sdist-and-wheel-direct-no-isolation', ), ], ) @pytest.mark.flaky(reruns=5) def test_output(package_test_setuptools, tmp_dir, capsys, args, output): > build.__main__.main([package_test_setuptools, '-o', tmp_dir, *args]) tests/test_main.py:305: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .testenv/lib/python3.12/site-packages/build/__main__.py:387: in main with _handle_build_error(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) .testenv/lib/python3.12/site-packages/build/__main__.py:161: in _handle_build_error _error(str(e)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ msg = 'Backend subprocess exited when trying to invoke build_sdist', 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 .testenv/lib/python3.12/site-packages/build/__main__.py:88: SystemExit ----------------------------- Captured stdout call ----------------------------- running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' running sdist running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' running check copying files to test_setuptools-1.0.0... copying test_setuptools.egg-info/PKG-INFO -> test_setuptools-1.0.0/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1.0.0/test_setuptools.egg-info copying test_setuptools.egg-info/dependency_links.txt -> test_setuptools-1.0.0/test_setuptools.egg-info copying test_setuptools.egg-info/top_level.txt -> test_setuptools-1.0.0/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1.0.0/test_setuptools.egg-info Writing test_setuptools-1.0.0/setup.cfg Creating tar archive * Getting build dependencies for sdist... * Building sdist... ERROR Backend subprocess exited when trying to invoke build_sdist ----------------------------- Captured stderr call ----------------------------- warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md error: [Errno 2] No such file or directory: 'test_setuptools-1.0.0/test_setuptools.egg-info/dependency_links.txt' _________________________ test_build_package_via_sdist _________________________ [gw40] linux -- Python 3.12.2 /home/buildozer/aports/community/py3-build/src/build-1.1.1/.testenv/bin/python3 tmp_dir = '/tmp/python-build-test-l06qe8i3' package_test_setuptools = '/home/buildozer/aports/community/py3-build/src/build-1.1.1/tests/packages/test-setuptools' @pytest.mark.network @pytest.mark.pypy3323bug def test_build_package_via_sdist(tmp_dir, package_test_setuptools): > build.__main__.build_package_via_sdist(package_test_setuptools, tmp_dir, ['wheel']) tests/test_main.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .testenv/lib/python3.12/site-packages/build/__main__.py:239: in build_package_via_sdist sdist = _build(isolation, srcdir, outdir, 'sdist', config_settings, skip_dependency_check) .testenv/lib/python3.12/site-packages/build/__main__.py:147: in _build return _build_in_isolated_env(srcdir, outdir, distribution, config_settings) .testenv/lib/python3.12/site-packages/build/__main__.py:116: in _build_in_isolated_env return builder.build(distribution, outdir, config_settings or {}) .testenv/lib/python3.12/site-packages/build/__init__.py:293: in build return self._call_backend(f'build_{distribution}', output_directory, config_settings, **kwargs) .testenv/lib/python3.12/site-packages/build/__init__.py:339: in _call_backend with self._handle_backend(hook_name): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = hook = 'build_sdist' @contextlib.contextmanager def _handle_backend(self, hook: str) -> Iterator[None]: try: yield except pyproject_hooks.BackendUnavailable as exception: raise BuildBackendException( exception, f"Backend '{self._backend}' is not available.", sys.exc_info(), ) from None except subprocess.CalledProcessError as exception: > raise BuildBackendException(exception, f'Backend subprocess exited when trying to invoke {hook}') from None E build._exceptions.BuildBackendException: Backend subprocess exited when trying to invoke build_sdist .testenv/lib/python3.12/site-packages/build/__init__.py:355: BuildBackendException ----------------------------- Captured stdout call ----------------------------- * Creating venv isolated environment... * Installing packages in isolated environment... (setuptools >= 42.0.0) * Getting build dependencies for sdist... running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' * Building sdist... running sdist running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' running check copying files to test_setuptools-1... copying test_setuptools.egg-info/PKG-INFO -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/dependency_links.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/top_level.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1/test_setuptools.egg-info Writing test_setuptools-1/setup.cfg Creating tar archive ----------------------------- Captured stderr call ----------------------------- warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md error: [Errno 2] No such file or directory: 'test_setuptools-1' ______________________________ test_build_package ______________________________ [gw39] linux -- Python 3.12.2 /home/buildozer/aports/community/py3-build/src/build-1.1.1/.testenv/bin/python3 tmp_dir = '/tmp/python-build-test-9qtetfx0' package_test_setuptools = '/home/buildozer/aports/community/py3-build/src/build-1.1.1/tests/packages/test-setuptools' @pytest.mark.network @pytest.mark.pypy3323bug def test_build_package(tmp_dir, package_test_setuptools): build.__main__.build_package(package_test_setuptools, tmp_dir, ['sdist', 'wheel']) > assert sorted(os.listdir(tmp_dir)) == [ 'test_setuptools-1.0.0-py2.py3-none-any.whl', 'test_setuptools-1.0.0.tar.gz', ] E AssertionError: assert ['test_setupt...ols-1.tar.gz'] == ['test_setupt...1.0.0.tar.gz'] E E At index 1 diff: 'test_setuptools-1.tar.gz' != 'test_setuptools-1.0.0.tar.gz' E Use -v to get more diff tests/test_main.py:197: AssertionError ----------------------------- Captured stdout call ----------------------------- * Creating venv isolated environment... * Installing packages in isolated environment... (setuptools >= 42.0.0) * Getting build dependencies for sdist... running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' * Building sdist... running sdist running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' running check creating test_setuptools-1 creating test_setuptools-1/test_setuptools.egg-info copying files to test_setuptools-1... copying MANIFEST.in -> test_setuptools-1 copying pyproject.toml -> test_setuptools-1 copying setup.cfg -> test_setuptools-1 copying test_setuptools.egg-info/PKG-INFO -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/dependency_links.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/top_level.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1/test_setuptools.egg-info Writing test_setuptools-1/setup.cfg Creating tar archive removing 'test_setuptools-1' (and everything under it) * Creating venv isolated environment... * Installing packages in isolated environment... (setuptools >= 42.0.0) * Getting build dependencies for wheel... running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' * Installing packages in isolated environment... (wheel) * Building wheel... running bdist_wheel running build installing to build/bdist.linux-armv8l/wheel running install running install_egg_info running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' Copying test_setuptools.egg-info to build/bdist.linux-armv8l/wheel/test_setuptools-1.0.0-py3.12.egg-info running install_scripts creating build/bdist.linux-armv8l/wheel/test_setuptools-1.0.0.dist-info/WHEEL creating '/tmp/python-build-test-9qtetfx0/.tmp-ioyuyt8h/test_setuptools-1.0.0-py2.py3-none-any.whl' and adding 'build/bdist.linux-armv8l/wheel' to it adding 'test_setuptools-1.0.0.dist-info/METADATA' adding 'test_setuptools-1.0.0.dist-info/WHEEL' adding 'test_setuptools-1.0.0.dist-info/top_level.txt' adding 'test_setuptools-1.0.0.dist-info/RECORD' removing build/bdist.linux-armv8l/wheel ----------------------------- Captured stderr call ----------------------------- warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md _______________________ test_output[via-sdist-isolation] _______________________ [gw43] linux -- Python 3.12.2 /home/buildozer/aports/community/py3-build/src/build-1.1.1/.testenv/bin/python3 package_test_setuptools = '/home/buildozer/aports/community/py3-build/src/build-1.1.1/tests/packages/test-setuptools' tmp_dir = '/tmp/python-build-test-x35_p8y8' capsys = <_pytest.capture.CaptureFixture object at 0xf625bee8>, args = [] output = ['* Creating venv isolated environment...', '* Installing packages in isolated environment... (setuptools >= 42.0.0)',...es for sdist...', '* Building sdist...', '* Building wheel from sdist', '* Creating venv isolated environment...', ...] @pytest.mark.pypy3323bug @pytest.mark.parametrize( ('args', 'output'), [ pytest.param( [], [ '* Creating venv isolated environment...', '* Installing packages in isolated environment... (setuptools >= 42.0.0)', '* Getting build dependencies for sdist...', '* Building sdist...', '* Building wheel from sdist', '* Creating venv isolated environment...', '* Installing packages in isolated environment... (setuptools >= 42.0.0)', '* Getting build dependencies for wheel...', '* Installing packages in isolated environment... (wheel)', '* Building wheel...', 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='via-sdist-isolation', marks=[pytest.mark.network, pytest.mark.isolated], ), pytest.param( ['--no-isolation'], [ '* Getting build dependencies for sdist...', '* Building sdist...', '* Building wheel from sdist', '* Getting build dependencies for wheel...', '* Building wheel...', 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='via-sdist-no-isolation', ), pytest.param( ['--wheel'], [ '* Creating venv isolated environment...', '* Installing packages in isolated environment... (setuptools >= 42.0.0)', '* Getting build dependencies for wheel...', '* Installing packages in isolated environment... (wheel)', '* Building wheel...', 'Successfully built test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='wheel-direct-isolation', marks=[pytest.mark.network, pytest.mark.isolated], ), pytest.param( ['--wheel', '--no-isolation'], [ '* Getting build dependencies for wheel...', '* Building wheel...', 'Successfully built test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='wheel-direct-no-isolation', ), pytest.param( ['--sdist', '--no-isolation'], [ '* Getting build dependencies for sdist...', '* Building sdist...', 'Successfully built test_setuptools-1.0.0.tar.gz', ], id='sdist-direct-no-isolation', ), pytest.param( ['--sdist', '--wheel', '--no-isolation'], [ '* Getting build dependencies for sdist...', '* Building sdist...', '* Getting build dependencies for wheel...', '* Building wheel...', 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl', ], id='sdist-and-wheel-direct-no-isolation', ), ], ) @pytest.mark.flaky(reruns=5) def test_output(package_test_setuptools, tmp_dir, capsys, args, output): build.__main__.main([package_test_setuptools, '-o', tmp_dir, *args]) stdout, stderr = capsys.readouterr() > assert stdout.splitlines() == output E AssertionError: assert ['* Creating ...ment...', ...] == ['* Creating ...ment...', ...] E E At index 10 diff: 'Successfully built test_setuptools-1.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl' != 'Successfully built test_setuptools-1.0.0.tar.gz and test_setuptools-1.0.0-py2.py3-none-any.whl' E Use -v to get more diff tests/test_main.py:307: AssertionError ----------------------------- Captured stdout call ----------------------------- running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' running sdist running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' running check creating test_setuptools-1 creating test_setuptools-1/test_setuptools.egg-info copying files to test_setuptools-1... copying MANIFEST.in -> test_setuptools-1 copying pyproject.toml -> test_setuptools-1 copying setup.cfg -> test_setuptools-1 copying test_setuptools.egg-info/PKG-INFO -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/dependency_links.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/top_level.txt -> test_setuptools-1/test_setuptools.egg-info copying test_setuptools.egg-info/SOURCES.txt -> test_setuptools-1/test_setuptools.egg-info Writing test_setuptools-1/setup.cfg Creating tar archive removing 'test_setuptools-1' (and everything under it) running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' running bdist_wheel running build installing to build/bdist.linux-armv8l/wheel running install running install_egg_info running egg_info writing test_setuptools.egg-info/PKG-INFO writing dependency_links to test_setuptools.egg-info/dependency_links.txt writing top-level names to test_setuptools.egg-info/top_level.txt reading manifest file 'test_setuptools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'test_setuptools.egg-info/SOURCES.txt' Copying test_setuptools.egg-info to build/bdist.linux-armv8l/wheel/test_setuptools-1.0.0-py3.12.egg-info running install_scripts creating build/bdist.linux-armv8l/wheel/test_setuptools-1.0.0.dist-info/WHEEL creating '/tmp/python-build-test-x35_p8y8/.tmp-4kqs1lix/test_setuptools-1.0.0-py2.py3-none-any.whl' and adding 'build/bdist.linux-armv8l/wheel' to it adding 'test_setuptools-1.0.0.dist-info/METADATA' adding 'test_setuptools-1.0.0.dist-info/WHEEL' adding 'test_setuptools-1.0.0.dist-info/top_level.txt' adding 'test_setuptools-1.0.0.dist-info/RECORD' removing build/bdist.linux-armv8l/wheel ----------------------------- Captured stderr call ----------------------------- warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md =========================== short test summary info ============================ FAILED tests/test_main.py::test_output[sdist-and-wheel-direct-no-isolation] FAILED tests/test_main.py::test_build_package_via_sdist FAILED tests/test_main.py::test_build_package FAILED tests/test_main.py::test_output[via-sdist-isolation] ============ 4 failed, 120 passed, 33 skipped, 1 xfailed in 24.32s ============= >>> ERROR: py3-build: check failed >>> py3-build: Uninstalling dependencies... (1/53) Purging .makedepends-py3-build (20240412.184015) (2/53) Purging py3-pyproject-hooks-pyc (1.0.0-r2) (3/53) Purging py3-pyproject-hooks (1.0.0-r2) (4/53) Purging py3-wheel-pyc (0.42.0-r1) (5/53) Purging py3-wheel (0.42.0-r1) (6/53) Purging py3-flit-core-pyc (3.9.0-r1) (7/53) Purging py3-flit-core (3.9.0-r1) (8/53) Purging py3-gpep517-pyc (15-r2) (9/53) Purging py3-gpep517 (15-r2) (10/53) Purging py3-installer-pyc (0.7.0-r2) (11/53) Purging py3-installer (0.7.0-r2) (12/53) Purging py3-filelock-pyc (3.13.1-r1) (13/53) Purging py3-filelock (3.13.1-r1) (14/53) Purging py3-pytest-forked-pyc (1.6.0-r2) (15/53) Purging py3-pytest-forked (1.6.0-r2) (16/53) Purging py3-pytest-mock-pyc (3.10.0-r3) (17/53) Purging py3-pytest-mock (3.10.0-r3) (18/53) Purging py3-mock-pyc (5.1.0-r2) (19/53) Purging py3-mock (5.1.0-r2) (20/53) Purging py3-pytest-rerunfailures-pyc (13.0-r1) (21/53) Purging py3-pytest-rerunfailures (13.0-r1) (22/53) Purging py3-pytest-xdist-pyc (3.5.0-r1) (23/53) Purging py3-pytest-xdist (3.5.0-r1) (24/53) Purging py3-execnet-pyc (1.9.0-r3) (25/53) Purging py3-execnet (1.9.0-r3) (26/53) Purging py3-apipkg-pyc (2.1.0-r3) (27/53) Purging py3-apipkg (2.1.0-r3) (28/53) Purging py3-pytest-pyc (8.1.1-r1) (29/53) Purging py3-pytest (8.1.1-r1) (30/53) Purging py3-iniconfig-pyc (2.0.0-r1) (31/53) Purging py3-iniconfig (2.0.0-r1) (32/53) Purging py3-pluggy-pyc (1.4.0-r1) (33/53) Purging py3-pluggy (1.4.0-r1) (34/53) Purging py3-py-pyc (1.11.0-r3) (35/53) Purging py3-py (1.11.0-r3) (36/53) Purging py3-setuptools-pyc (69.2.0-r1) (37/53) Purging py3-setuptools (69.2.0-r1) (38/53) Purging py3-packaging-pyc (24.0-r1) (39/53) Purging py3-packaging (24.0-r1) (40/53) Purging py3-parsing-pyc (3.1.2-r1) (41/53) Purging py3-parsing (3.1.2-r1) (42/53) Purging python3-pyc (3.12.2-r1) (43/53) Purging python3-pycache-pyc0 (3.12.2-r1) (44/53) Purging pyc (3.12.2-r1) (45/53) Purging python3 (3.12.2-r1) (46/53) Purging gdbm (1.23-r1) (47/53) Purging libbz2 (1.0.8-r6) (48/53) Purging libffi (3.4.6-r0) (49/53) Purging libpanelw (6.4_p20240330-r0) (50/53) Purging mpdecimal (4.0.0-r0) (51/53) Purging readline (8.2.10-r0) (52/53) Purging sqlite-libs (3.45.2-r0) (53/53) Purging xz-libs (5.6.1-r3) Executing busybox-1.36.1-r25.trigger OK: 315 MiB in 103 packages