アップロードするときパスワード入力を自動化する設定ファイル。
情報源
- https://docs.python.org/ja/3.6/distutils/packageindex.html#the-pypirc-file
- https://www.codementor.io/@arpitbhayani/host-your-python-package-using-github-on-pypi-du107t7ku
手順
vim ~/.pypirc
~/.pypirc
[distutils] index-servers = pypi pypitest [pypi] repository: https://pypi.python.org/pypi username: YOUR_USERNAME password: YOUR_PASSWORD [pypitest] repository: https://testpypi.python.org/pypi username: YOUR_USERNAME password: YOUR_PASSWORD
ユーザ名とパスワードはアカウント取得したときの値を使う。
対象環境
- Raspbierry pi 4 Model B
- Raspbian buster 10.0 2019-09-26 ※
- bash 5.0.3(1)-release
$ uname -a Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux