Skip to content
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

After installing tokens, still get HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/ UsernamePassword... #762

Open
fralau opened this issue May 13, 2024 · 0 comments

Comments

@fralau
Copy link

fralau commented May 13, 2024

Problem description

It did the following steps (on MacOS):

Activating 2FA on Pypi and created a token.

Checking the .pypirc file in the home directory.

[pypi]
username = __token__
password = ...

Checking that pypi finds the file.

Deletign the pypi entry from my keyring.

Clearing the Python cache.

When doing:

twine upload dist/* --verbose

I still get the error:

HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
Username/Password authentication is no longer supported. Migrate to API Tokens or Trusted Publishers instead. See https://pypi.org/help/#apitoken and https://pypi.org/help/#trusted-publishers

What should I do?


Additional information:

Python 3.10.11
twine version 3.6.0 (importlib_metadata: 4.8.2, pkginfo: 1.8.1, requests: 2.28.2, requests-toolbelt: 0.9.1, tqdm: 4.51.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@fralau and others