0

假设我有一个.pypirc文件,

[distutils]
index-servers =
    pypi
    test2
    test3
    test4

[pypi]
repository: https://test.pypi.org/legacy/
username: username_1
password: passme_1
[test2]
repository: url_1
username: username_1
password: passme_1
[test3]
repository: url_2
username: username_1
password: passme_1
[test4]
repository: url_3
username: username_1
password: passme_1

如何在test4不指定的情况下上传到个人资料--repository-url

4

1 回答 1

1

twine upload --help

…
-r REPOSITORY, --repository REPOSITORY
   The repository (package index) to upload the package
   to. Should be a section in the config file (default:
   pypi). (Can also be set via TWINE_REPOSITORY
   environment variable.)
…

所以你应该运行twine upload -r test4.

于 2018-08-11T23:05:05.340 回答