我已经pip
安装了pypirc
,并用必需的密码设置了一个~/.pypirc
文件。为什么每次调用twine
都要求输入密码?在
$twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Enter your username:
这是.pypirc
的形式
更新不包括--repository-url
给出:
UploadToDeprecatedPyPIDetected: You're trying to upload to the legacy PyPI site 'https://pypi.python.org/pypi'. Uploading to those sites is deprecated.
The new sites are pypi.org and test.pypi.org. Try using https://upload.pypi.org/legacy/ (or https://test.pypi.org/legacy/) to upload your packages instead. These are the default URLs for Twine now.
More at https://packaging.python.org/guides/migrating-to-pypi-org/ .
或者
^{pr2}$或者
据我所知,
twine repository-url <url>
甚至不咨询~/.pypirc
。使用-r <name>
它可以在~/.pypirc
中查找URL、用户名和密码。如果省略-r <name>
,twine将使用来自~/.pypirc
的第一个repo。在相关问题 更多 >
编程相关推荐