Search code examples
pythonpypitwine

Twine hangs without prompting for password


I'm attempting to upload a tarball and wheel for a new package to PyPI using twine which was recently installed under a conda environment (Miniconda3). After I enter my username I expect to be prompted for my password, but this never happens and everything just hangs.

$ twine --version
twine version 1.11.0 (pkginfo: 1.4.2, requests: 2.19.1, setuptools: 40.2.0,
requests-toolbelt: 0.8.0, tqdm: 4.25.0)

$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Uploading distributions to https://test.pypi.org/legacy/
Enter your username: my_user_name

What might be causing this unexpected behavior?


Solution

  • I was able to move past this issue by using the DOS console (i.e. cmd.exe) for this instead.

    If anyone can comment as to why this authentication step doesn't work as expected in the git/bash console for Windows then please chime in, as I'd like to fix that (hopefully a config setting?) so I don't have to move over to DOS for this step in my workflow.