-
Notifications
You must be signed in to change notification settings - Fork 62
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
Need a option to sign when uploading (pass --sign
to twine upload
)
#238
Comments
Weird. If I look at the 1.9.1 twine code, the part of the code that prints out "unkown distribution format" loops over a list where So I assume it still ought to work. I've checked the current master (https://github.com/pypa/twine/blob/master/twine/commands/upload.py#L87) and it still looks fine, there. It should automatically pick up a Can you debug a bit further? I've looked at passing in |
I tried the latest release and it did not work. I have no time for debugging this, sorry. |
Instead of spending time on debugging this, the time could be used to add the requested option and we could even drop our plugin :-) |
It goes wrong because zest.releaser is calling We could filter out those |
I started implementing this and while analyzing how to implement it, I (presumably) found the root-cause of this issue: As @mauritsvanrees write, twine contains code for filtering What about switching to use the high-level functions? As far as I understood releaser's code, we could even get rid of quite some code, e.g. for handling repositories, and maybe even more for reading the |
Note: we use the |
Getting rid of code is always good, in principle. Twine: we'll have to make sure the higher-level functions are actually intended to be used as an API. If I remember correctly, twine once changed its internal API, breaking zest.releaser. At that time, it wasn't intended to be used as an API yet (or we probably picked the wrong abstraction level and used functions that were too low-level). Summary: if we're going to use twine on a different level, we'll have to talk to the twine people first :-) |
It should be reasonable save to "run" the commands, e.g. Anyway talking to the twine people would be a good choice. Are you going to do this? |
Nope. We were using the |
I'm not suggesting to use |
Our mileage already did vary :-) But it might be OK to call It sounds a bit the same as pip, that one also has no API. "The only API is the command line". So tools like buildout cannot use it except through the command line (if buildout wanted). |
Easiest still seems what I suggested earlier:
That seems doable without much extra code and without a complete restructuring of how we call twine. |
I tried this and found myself re-implementing quite some parts of I asked for another high-level api (see pypa/twine#194 (comment)), one of which
|
I think we have this fixed now in 6.18.0, right? |
I can't see how 6.18.0 solved this. Did I miss something? |
You said this in one of the comments:
So I guessed that, now that we call I thought that "just let twine do the right thing" was one of the goals of the recent change :-) |
We still need to pass |
PyPI no longer accepts GPG signature files: they are simply discarded — and the developer gets an e-mail about this. So this can be closed. |
For PyInstaller, we are using a
releaser.before_upload
hook to sign releases.Now twine no longer allows uploading the additional file but fail (see below) with
Proposed solution
twine upload
has an optionsign
, so all we need is a way to pass this option totwine upload
.Traceback
The text was updated successfully, but these errors were encountered: