Skip to content

Commit

Permalink
Merge pull request #204 from pypa/fix/setuptools-71
Browse files Browse the repository at this point in the history
Relax test for build requirements from setuptools
  • Loading branch information
takluyver authored Sep 29, 2024
2 parents 6b57973 + 9efaa97 commit 3df9175
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_call_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,9 @@ def test_path_pollution():
def test_setup_py():
hooks = get_hooks("setup-py")
with modified_env({"PYTHONPATH": BUILDSYS_PKGS}):
res = hooks.get_requires_for_build_wheel({})
# Some versions of setuptools list setuptools itself here
res = [x for x in res if x != "setuptools"]
assert res == ["wheel"]
res = set(hooks.get_requires_for_build_wheel({}))
# Depending on the version of setuptools, it may be both, just wheel, or neither
assert res.issubset({"setuptools", "wheel"})


@pytest.mark.parametrize(
Expand Down

0 comments on commit 3df9175

Please sign in to comment.