You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using 'installer` module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyproject-api-1.5.4-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyproject-api-1.5.4-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra -m 'not network'==================================================================================== test session starts ====================================================================================platform linux -- Python 3.8.17, pytest-7.4.0, pluggy-1.2.0rootdir: /home/tkloczko/rpmbuild/BUILD/pyproject-api-1.5.4plugins: mock-3.11.1collected 56 itemstests/test_backend.py ........ [ 14%]tests/test_frontend.py .......................... [ 60%]tests/test_frontend_setuptools.py ..F....... [ 78%]tests/test_main.py ....... [ 91%]tests/test_util.py .... [ 98%]tests/test_version.py . [100%]========================================================================================= FAILURES ==========================================================================================_____________________________________________________________________ test_setuptools_prepare_metadata_for_build_wheel ______________________________________________________________________frontend_setuptools = <pyproject_api._via_fresh_subprocess.SubprocessFrontend object at 0x7fbf79f4f2b0>tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-4/test_setuptools_prepare_metada0') def test_setuptools_prepare_metadata_for_build_wheel(frontend_setuptools: SubprocessFrontend, tmp_path: Path) -> None: meta = tmp_path / "meta" result = frontend_setuptools.prepare_metadata_for_build_wheel(metadata_directory=meta) dist = Distribution.at(str(result.metadata)) assert list(dist.entry_points) == [EntryPoint(name="demo_exe", value="demo:a", group="console_scripts")] assert dist.version == "1.0" assert dist.metadata["Name"] == "demo" values = [v for k, v in dist.metadata.items() if k == "Requires-Dist"] # type: ignore[attr-defined] # ignore because "PackageMetadata" has no attribute "items"
> assert sorted(values) == ["magic >3", "requests >2"]E AssertionError: assert ['magic (>3)'...equests (>2)'] == ['magic >3', 'requests >2']E At index 0 diff: 'magic (>3)' != 'magic >3'E Use -v to get more difftests/test_frontend_setuptools.py:78: AssertionError================================================================================== short test summary info ==================================================================================FAILED tests/test_frontend_setuptools.py::test_setuptools_prepare_metadata_for_build_wheel - AssertionError: assert ['magic (>3)'...equests (>2)'] == ['magic >3', 'requests >2']=============================================================================== 1 failed, 55 passed in 5.01s ================================================================================
Sorry, the latest version of that project is required. It's the only version we test with within the CI and as such anything else is the best effort at best.
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: