Enforcement of 2FA for upload.pypi.org began June 1st, 2023
PyPI now requires all uploads from accounts with 2FA enabled to use an API token or Trusted Publisher configuration.
PyPI now requires all uploads from accounts with 2FA enabled to use an API token or Trusted Publisher configuration.