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
_______________ test_setuptools_prepare_metadata_for_build_wheel _______________
frontend_setuptools = <pyproject_api._via_fresh_subprocess.SubprocessFrontend object at 0x7fffad561a30>
tmp_path = PosixPath('/tmp/pytest-of-marcel/pytest-21/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)
assert result is not None
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', 'requests>2'] == ['magic >3', 'requests >2']
E
E At index 0 diff: 'magic>3' != 'magic >3'
E
E Full diff:
E [
E - 'magic >3',
E ? -
E + 'magic>3',
E - 'requests >2',
E ? -
E + 'requests>2',
E ]
tests/test_frontend_setuptools.py:76: AssertionError
To reproduce:
download 1.7.2 sdist
unpack it
run tox -e py39
The text was updated successfully, but these errors were encountered:
To reproduce:
tox -e py39
The text was updated successfully, but these errors were encountered: