Skip to content

twine 6 seems to break twine check "globs" #1187

Closed
@Julian

Description

@Julian

Is there an existing issue for this?

  • I have searched the existing issues (open and closed), and could not find an existing issue

What keywords did you use to search existing issues?

glob
dist*

What operating system are you using?

macOS

If you selected 'Other', describe your Operating System here

What version of Python are you running?

3.12.7

How did you install twine? Did you use your operating system's package manager or pip or something else?

`pip install twine`, but also `uv run` (see below)

What version of twine do you have installed (include the complete output)

twine version 6.0.0 (keyring: 25.5.0, pkginfo: 1.11.2, requests: 2.32.3, requests-toolbelt: 1.0.0, urllib3: 2.2.3)

Which package repository are you using?

pypi production

Please describe the issue that you are experiencing

twine check "dist/*" used to check all distributions in dist.
It's documented as the "way" to use twine check in its --help:

⊙  twine check --help                                                                                                                                                                                                                                                                                                                                             julian@Mac
usage: twine check [-h] [--strict] dist [dist ...]

positional arguments:
  dist        The distribution files to check, usually dist/*

But twine 6 seems to no longer support this. (Here I've cloned the twine repository itself as a test package, and run pyproject-build . on it to produce a dist directory).

⊙  uv run --with 'twine>=6' twine check 'dist/*'                                                                                                                                                                                                                                                                                                                  julian@Mac
Checking dist/*: ERROR    InvalidDistribution: Unknown distribution format: '*' 

Please list the steps required to reproduce this behaviour

Previous versions still work fine of course:

⊙  uv run --with 'twine<6' twine check 'dist/*'                                                                                                                                                                                                                                                                                                                   julian@Mac
Installed 23 packages in 21ms
Checking dist/twine-6.0.1.dev5+g067412e-py3-none-any.whl: PASSED
Checking dist/twine-6.0.1.dev5+g067412e.tar.gz: PASSED

Anything else you'd like to mention?

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions