-
Notifications
You must be signed in to change notification settings - Fork 305
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
Issue with Travis CI and twine upload #1113
Comments
Username and password are no longer supported by PyPI. Please configure a token for your project and set that appropriately by reading our documentation and updating your Travis CI configuration. |
Thanks for your answer. I was pretty sure I had already set the token way of enabling upload, nonetheless I went ahead and created a new token for that specific package. As per the documentation (https://twine.readthedocs.io/en/stable/index.html#twine-upload) I'm setting the environment variables (https://app.travis-ci.com/github/blockchain-certificates/cert-schema/builds/270618825#L180) TWINE_USERNAME to token and the TWINE_PASSWORD to the token value. However the issue remains (https://app.travis-ci.com/github/blockchain-certificates/cert-schema/builds/270618825#L830). My last automated release was in March this year so the only thing I thought had changed is that keyring is now on version 25.x. However fixing the version to 24.3.1 (https://app.travis-ci.com/github/blockchain-certificates/cert-schema/builds/270618825#L273) does not seem to solve the issue. I don't want to create unnecessary noise on this repo if it's not the culprit, so in your opinion is the problem with Twine, Travis or Keyring (or the three of them)? Thanks again PS: I've manually published to the newer version as I need to move forward on other front but I still would like to fix the automated release issue. |
I'm still facing this issue, this time with another package, still in Travis CI. I have followed the docs that is directly linked from Pypi: https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives I have looked again at the twine doc for
With the conjunction of the 2 docs, I have created a I've tried to disable keyring as indicated here: https://twine.readthedocs.io/en/latest/index.html#disabling-keyring, but now the build just stalls asking me to enter the token. I don't mind reading the docs, but in this case they don't help and I'm quite stuck... |
Is there an existing issue for this?
What keywords did you use to search existing issues?
twine travis keyring (backend)
What operating system(s) are you using?
Linux
If you selected 'Other', describe your Operating System here
No response
What version of Python are you running?
3.10.14
How did you install twine? Did you use your operating system's package manager or pip or something else?
What version of twine do you have installed (include the complete output)
Which package repository are you using?
https://upload.pypi.org/legacy/
Please describe the issue that you are experiencing
When getting to twine upload step, my CI build stalls because of the following error:
Until know my twine username and password were set as ENV variables, but I guess there has been a change in configuration but I don't know how to address the change. Could you point me to any sort of documentation or the right direction?
Thanks
Please list the steps required to reproduce this behaviour
This is what's being run: https://github.com/blockchain-certificates/cert-schema/blob/master/release_package.sh
Please include the PKG-INFO file contents from the artifact you're attempting to upload
https://pypi.org/project/cert-schema/
A redacted version of your
.pypirc
fileAnything else you'd like to mention?
I'm sorry my main strength is not Python world
The text was updated successfully, but these errors were encountered: