warehouse: API Tokens for old repositories too long for Travis CI encrypt

Just FYI, the current form of tokens seems to be too long for travis encrypt

(base) ❯ travis encrypt PYPI_TOKEN=pypi:<token>
Detected repository as bokeh/bokeh, is this correct? |yes|
data too large - consider using travis encrypt-file or travis env set

Obviously this is not exactly “your” problem, but I contend that it will seriously hamper the utility of these tokens in a primary use-case scenario. At almost 200 characters, the PyPI tokens are considerably longer than any token I have ever personally encountered on other services. Is it possible to make them shorter?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (15 by maintainers)

Most upvoted comments

Ok, in that case I’m going to close this as a Travis issue and recommend that people use Actions instead.

Thanks for doing that @hugovk! ISTM that we’re waiting on a response from the Travis CI folks now. 😃

Also ran into this, it definitely looks like a per-project Travis CI problem.

I can travis encrypt for projects where .travis.yml was created after 2017-05-01, but get “data too large” for those created before 2017-04-04: