Hello, I need help about how to use keyring and pip
I have several projects on Python3. Each one has its own virtual env. They all use Nexus in order to download packages.
At the moment my conf is the following:
$ more .pypirc
# Upload to a hosted repository using twine
[distutils]
index-servers =
nx-nfvpy-hosted
[nx-nfvpy-hosted]
repository: https://<NEXUS_REPO>/repository/nx-nfvpy-hosted/
$ more .pip/pip.conf
[global]
index = https://<NEXUS_USER>:<NEXUS_PASS>@<NEXUS_REPO>/repository/nx-nfvpy-group/pypi
index-url = https://<NEXUS_USER>:<NEXUS_PASS>@<NEXUS_REPO>/repository/nx-nfvpy-group/simple/
trusted-host = <NEXUS_REPO>
If you install keyring, then pip will use it. You’ll either need to put the full index URL (no user/pass) or just the NEXUS_REPO value into keyring (or your system store). Or it’ll prompt and save it IIRC.
After creating the encrypted directory, I move all of my credentials for various services into the encrypted directory and symlink. For example, say I have encrypted directory “~/Private”, for my AWS credentials: