question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use an API token for uploading to PyPI from Travis CI instead of account creds

See original GitHub issue

It is now possible to create an API token at https://pypi.org/manage/account/token/. Travis CI autoreleases should switch to that.

I’m submitting a …

  • 🐣 infra improvement

Do you want to request a feature or report a bug?

N/A

What is the current behavior?

Account creds used.

💡 If the current behavior is a bug, please provide the steps to reproduce and if possible a screenshots and logs of the problem. If you can, show us your code.

N/A

💡 What is the expected behavior?

Token auth used for uploading to PyPI.

What is the motivation / use case for changing the behavior?

Security

📋 Please tell us about your environment:

N/A

📋 Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, e.g. stackoverflow, gitter, etc.)

Ref: https://discuss.python.org/t/pypi-security-work-multifactor-auth-progress-help-needed/1042/31

Use @token for a username and the token itself for a password when using Twine: https://github.com/pypa/warehouse/issues/994#issuecomment-512634222

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
jaracocommented, Oct 11, 2019

By the way, this issue was addressed in #226. Feel free to track/tackle migration to Travis-CI.com in a separate thread. Feel free to use jaraco/skeleton as a project in which to file the ticket and document the effort (if there’s not a better forum).

0reactions
jaracocommented, Oct 11, 2019

If you’re okay with this, I’ll email them and will handle the migration myself. Now that I have access to PyPI, I can do this.

I’d like to do it in one coordinated steps across all (most) of the projects I maintain. Basically:

  • pypa/setuptools
  • pypa/twine
  • jaraco/*
  • yougov/*

That would hit 90% of them. If you could coordinate that, that would be awesome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyPI deployment - Travis CI Docs
Travis CI can automatically release your Python package to PyPI after a successful build. For a minimal configuration, generate PyPI API token and...
Read more >
Add support for API keys · Issue #994 · pypi/warehouse - GitHub
Or an API key could be limited to a specific package. ... Use an API token for uploading to PyPI from Travis CI...
Read more >
PyPi Upload with API token not working - Travis CI Community
I recently switched to API token based authentication for uploading packages to PyPi. As the tokens are too long to be encrypted using...
Read more >
Distributing PyPI Packages using API Tokens in TravisCI
API tokens provide an alternative way (instead of username and password) to authenticate when uploading packages to PyPI. These API tokens can ...
Read more >
Help - PyPI
API tokens provide an alternative way (instead of username and password) to authenticate when uploading packages to PyPI. You can create a token...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found