Skip to content

When delocate is called with a non-expanded wildcard path it produces wrong result #71

@webknjaz

Description

@webknjaz

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions