====== PYPI ======
===== pypiserver =====
https://hub.docker.com/r/pypiserver/pypiserver
===== authentication =====
create
htpasswd -sc htpasswd.txt galileo
update
htpasswd -s htpasswd.txt
===== client =====
Client authentication use keyring and:
- ~/.pip/pip.conf for install
- ~/.pypirc for publish and eventually for clear password
===== pip =====
~/.pip/pip.conf
[global]
extra-index-url = http://localhost:8081
https://pypi.csgalileo.org
trusted-host = localhost
now it is possible to use install command like "pip install blabla"
===== twine =====
~/.pypirc
[distutils]
index-servers =
galileo
localhost
[localhost]
repository = http://localhost:8081
username = galileo
#password =
[galileo]
repository = https://pypi.csgalileo.org
username = galileo
# not needed if keyring is used
#password =
now it is possibile publish package like
twine upload -r galileo dist/*
===== user keyring =====
twine has keyring utility
add galileo user to keyring
keyring set http://localhost:8081 galileo