File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,21 @@ man pages][netrc-docs].
68
68
pip supports loading credentials stored in your keyring using the
69
69
{pypi}` keyring ` library.
70
70
71
+ pip will first try to use ` keyring ` in the same environment as itself and
72
+ fallback to using any ` keyring ` installation which is available on ` PATH ` .
73
+
74
+ Therefore, either of the following setups will work:
75
+
76
+ ``` bash
77
+ $ pip install keyring # install keyring from PyPI into same environment as pip
78
+ $ echo " your-password" | keyring set pypi.company.com your-username
79
+ $ pip install your-package --index-url https://pypi.company.com/
80
+ ```
81
+
82
+ or
83
+
71
84
``` bash
72
- $ pip install keyring # install keyring from PyPI
85
+ $ pipx install keyring # install keyring from PyPI into standalone environment
73
86
$ echo " your-password" | keyring set pypi.company.com your-username
74
87
$ pip install your-package --index-url https://pypi.company.com/
75
88
```
@@ -79,5 +92,4 @@ pip. This can create a bootstrapping issue if you need the credentials stored in
79
92
the keyring to download and install keyring.
80
93
81
94
It is, thus, expected that users that wish to use pip's keyring support have
82
- some mechanism for downloading and installing {pypi}` keyring ` in their Python
83
- environment.
95
+ some mechanism for downloading and installing {pypi}` keyring ` .
You can’t perform that action at this time.
0 commit comments