Show pageOld revisionsBacklinksAdd to bookExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== PYPI ====== ===== pypiserver ===== https://hub.docker.com/r/pypiserver/pypiserver ===== authentication ===== create <code | download> htpasswd -sc htpasswd.txt galileo </code> update <code | download> htpasswd -s htpasswd.txt <user2> </code> ===== client ===== Client authentication use keyring and: - ~/.pip/pip.conf for install - ~/.pypirc for publish and eventually for clear password ===== pip ===== ~/.pip/pip.conf <code | download> [global] extra-index-url = http://localhost:8081 https://pypi.csgalileo.org trusted-host = localhost </code> now it is possible to use install command like "pip install blabla" ===== twine ===== ~/.pypirc <code | download> [distutils] index-servers = galileo localhost [localhost] repository = http://localhost:8081 username = galileo #password = <first-repository password> [galileo] repository = https://pypi.csgalileo.org username = galileo # not needed if keyring is used #password = <first-repository password> </code> now it is possibile publish package like <code | download> twine upload -r galileo dist/* </code> ===== user keyring ===== twine has keyring utility add galileo user to keyring <code> keyring set http://localhost:8081 galileo </code> tips/pypi.txt Last modified: 2023/04/13 15:10by sscipioni