Copy/paste may not work as expected in the VSCode integrated terminal when running flit publish
and pasting a password/token. You should create a one-time token on PyPi, with entire account scope, then in an external terminal window, run flit publish
. There you can paste your token, you may have to do "Ctrl+Shift+V", or "Win+V" and click the token in your clipboard. If this step fails, you have to go to "Credential Manager" and delete the http://upload.pypi.org/legacy
credential and try again. When done, be sure to delete the local credential, AND remove the credential from PyPi. You don't need to keep an account-scope credential around forever, just make one when needed and revoke it right after.