18

必要なパスワードを含むファイルをインストールpippypircてセットアップしました。が呼び出されるたびにパスワードを要求するの~/.pypircはなぜですか?twinepython setup.py

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

の形はこちら.pypirc

[distutils] # this tells distutils what package indexes you can push to
index-servers =
  pypi
  pypitest

[pypi]
repository: https://pypi.python.org/pypi
username: myuser 
password: mypwd 

[pypitest]
repository: https://testpypi.python.org/pypi
username: myuser 
password: mypwd 

更新を含まない--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/ .
4

4 に答える 4