PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Friday the 8th of November, 2019

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[09:45:39] <altin> Hi there, is there a way I can use environment variable is .pypirc and pip.conf? I have a private repository (username and password protected) that I download or upload packages to... I wouldn't want to save these credentials in the .pypirc or pip.conf hence have them in git.
[09:46:21] <mgedmin> pip accepts all configuration settings from environment variables
[09:46:38] <mgedmin> https://pip.pypa.io/en/stable/user_guide/#environment-variables
[09:47:12] <altin> I need to modify [global] extra-index-url in pip.conf and a custom one in .pypirc like: [nexus] username & password.
[09:47:37] <mgedmin> so you can set PIP_INDEX_URL or PIP_EXTRA_INDEX_URL or PIP_FIND_LINKS to an https://username:password@hostname/...
[09:48:30] <altin> I see, how about the ones in pypirc ? @mgedmin
[09:48:54] <mgedmin> depends on the tool
[09:49:04] <mgedmin> e.g. twine accepts TWINE_USERNAME and TWINE_PASSWORD in the environment
[09:52:24] <altin> ah right, yes I was using twine like this (https://pastebin.com/a9mtd0ZZ) inside my .pypirc
[20:29:07] <gp> Is there any generic secure way to get pip to download over http to make use of a caching network proxy?
[20:29:43] <gp> like download the hash over https and the data via http?
[22:38:10] <toad_polo> gp: You want to download pip itself? Or you want pip to do this automatically?
[22:39:12] <toad_polo> Might be a little heavy weight for you, but there are caching proxies for pip that you can run on a local server, like devpi.