Imagine you call python -m delocate.cmd.delocate_listdeps --all dist/*.whl in the env where dist/*.whl is not expanded by the shell so it's effectively python -m delocate.cmd.delocate_listdeps --all 'dist/*.whl'. And the dists dir has:
-rw-r--r-- 1 runner staff 144K Apr 28 08:30 ansible_pylibssh-0.0.1.dev1-cp38-cp38-macosx_10_9_x86_64.whl
It'll use dist/ansible_pylibssh-0.0.1.dev1-cp38-cp38-macosx_10_9_x86_64.whl as a source and will emit a wheel with the name dist/*.whl:
-rw-r--r-- 1 runner staff 1.4M Apr 28 08:30 *.whl
-rw-r--r-- 1 runner staff 144K Apr 28 08:30 ansible_pylibssh-0.0.1.dev1-cp38-cp38-macosx_10_9_x86_64.whl
which then makes twine check dist/*.whl explode: pypa/twine#612.
It looks like delocate applies glob in one place but not another which is a bug.
Imagine you call
python -m delocate.cmd.delocate_listdeps --all dist/*.whlin the env wheredist/*.whlis not expanded by the shell so it's effectivelypython -m delocate.cmd.delocate_listdeps --all 'dist/*.whl'. And the dists dir has:-rw-r--r-- 1 runner staff 144K Apr 28 08:30 ansible_pylibssh-0.0.1.dev1-cp38-cp38-macosx_10_9_x86_64.whlIt'll use
dist/ansible_pylibssh-0.0.1.dev1-cp38-cp38-macosx_10_9_x86_64.whlas a source and will emit a wheel with the namedist/*.whl:which then makes
twine check dist/*.whlexplode: pypa/twine#612.It looks like delocate applies glob in one place but not another which is a bug.