-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step #2 in the usage section raises ValueError #65
Comments
This is a duplicate of #64 (opened yesterday). In the future, please check for existing issues before filing a new one. |
Are you sure this is a duplicate? The error message in the other bug says that wininst/exe is not a supported format, but here it looks like the issue is that neither the shell nor twine expand the * pattern, and don’t match any file. If it is the same bug, the error message is misleading, and that’s what this bug should be about. |
The bug report was primarily against the usage section in the readme (https://github.com/pypa/twine#usage), which simply doesn't work as presented on Windows. This doesn't seem to be related to exe installers, since I get the same error after I remove them:
It looks like @merwok's analysis is correct, and that there is missing a
The usage steps in the readme is still non-functioning on Windows however, and you'll need to be a pretty dedicated Windows user if you want to figure it out -- I know I would never expect that file globbing wouldn't work as expected... still, |
The instructions in the README depend on the shell expanding the globbing. I guess windows shell doesn't do that? |
For expanding * (called globbing for some reason), use the |
So I think @thebjorn is right. This affects more than just windows. If you, for example, use tox and create an environment like so: [testenv:release]
deps =
twine
commands =
python setup.py sdist
pip wheel --wheel-dir dist
twine upload {posags} dist/* You're going to get the same error because tox also doesn't provide shell expansion. I would think simply checking for something ending in |
You probably don't want to check for something ending in |
True. That's probably a better idea. |
This is actually a duplicate of #40. (For future reference.) |
I'm just following the steps in the README.rst file.
Step 1 "Create some distributions in the normal way:"
Step 2 "Upload with twine:"
It's fine if you don't support windows, but when Windows is listed in setup's classifiers it would be nice if there was an asterisk in the docs saying that the steps as listed are not going to work...
The text was updated successfully, but these errors were encountered: