Pypi deploy fails on upload

I’m running into what seems like the same issue as the following but I am unable to get it to resolve.

Everything works great up until the deployment the I get this error:
HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/

I’ve generated new API keys and encrypted them with the Travis CLI and it still fails.

deploy:
  provider: pypi
  user: __token__
  password:
    secure: ABCD...

I’m looking at Pypi and it says that the token was never used.

Any thoughts on what to do?

Thanks


To add a followup. I created a new token, did not use the Travis CLI to encrypt and it worked. The goal obviously is to have it be encrypted since it’s repo is open sourced on GitHub.


One more update. It worked for Python 3.6 but failed with 3.7 & 3.8 builds.

Possibly

Can’t say any more without seeing the build.