pyproject-hooks icon indicating copy to clipboard operation
pyproject-hooks copied to clipboard

test_setup fails with setuptools >= 70.1.0

Open dirkmueller opened this issue 1 year ago • 1 comments
trafficstars

pytest -k "test_setup"

gives


    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"]
E       AssertionError: assert [] == ['wheel']
E         
E         Right contains one more item: 'wheel'
E         Use -v to get more diff

tests/test_call_hooks.py:213: AssertionError

it works when downgrading to setuptools 70.0.0

dirkmueller avatar Jun 30 '24 18:06 dirkmueller

bdist_wheel was merged into setuptools recently, so it no longer adds wheel as a dependency in get_requires_for_build_wheel.

pfmoore avatar Jun 30 '24 19:06 pfmoore

#204 should resolve this.

takluyver avatar Sep 29 '24 09:09 takluyver