python - Twine 在不提示输入密码的情况下挂起

标签 python pypi twine

我正在尝试使用最近在 conda 环境 (Miniconda3) 下安装的 twine 将新包的 tarball 和 wheel 上传到 PyPI。输入用户名后,我希望系统提示我输入密码,但这种情况从未发生,一切都挂起。

$ 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

可能导致这种意外行为的原因是什么?

最佳答案

我可以通过使用 DOS 控制台(即 cmd.exe)解决这个问题。

如果有人可以评论为什么这个身份验证步骤在 Windows 的 git/bash 控制台中没有按预期工作那么请插话,因为我想修复它(希望是配置设置?)所以我不我的工作流程中的这一步必须转移到 DOS。

关于python - Twine 在不提示输入密码的情况下挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52229497/

相关文章:

Python:替换字符串列表中的非ascii字符

python - 如何对 Enum 的 __init__ 方法进行单元测试?

python - 如何为 PYPI 包持久存储

python - devpi 和 pypi 服务器的区别

python - 将自定义 python 库上传到 azure 工件

python - 我的 RST 自述文件在 PyPi 上的格式不正确

python - Pandas :通过遍历它们来计算每列中的唯一值?

python - 在文件夹中安装所有 .msi 文件

python - Pip 包未在 Ubuntu 上安装

python - 400 错误 : Invalid URI when uploading new PyPI package (twine)