-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add instructions on disabling keyring #7200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
074143b
61fb829
720caa8
ea9871a
2c3d108
312ad72
63e078d
7a448aa
b03556c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -791,3 +791,25 @@ of ability. Some examples that you could consider include: | |||||||||
|
||||||||||
* ``distlib`` - Packaging and distribution utilities (including functions for | ||||||||||
interacting with PyPI). | ||||||||||
|
||||||||||
|
||||||||||
.. _`Disable Keyring`: | ||||||||||
|
||||||||||
Disable Keyring | ||||||||||
*************** | ||||||||||
|
||||||||||
Keyring in certain cases can prevent the installing of certain packages and modules | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also I don't think |
||||||||||
due to authentication errors. In such cases disabling the keyring is recommended. | ||||||||||
Keyring can be manually uninstalled but doing so may invalidate other packages that | ||||||||||
depends on Keyring. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
There are various ways to disable the keyring. They are: | ||||||||||
|
||||||||||
- Set the password as null to preferred keyring for the relevant URL and username. | ||||||||||
|
||||||||||
- keyring >= 15.1.0 can be disabled via command line using:: | ||||||||||
|
||||||||||
keyring --disable | ||||||||||
|
||||||||||
- Set environment variable ``PYTHON_KEYRING_BACKEND`` to | ||||||||||
``keyring.backends.null.Keyring`` in a configuration file. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added documentation on how to disable keyring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can indicate how a user could recognize if they are impacted by this issue? The language here is a bit vague, perhaps there are some example warnings (maybe they are
ResourceWarning
s orException
s that would indicate ifkeyring
is causing this problem).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default you don't get any output unfortunately. If you increase the verbosity you are going to read something like
Getting credentials from keyring for https://pypi.org/simple
before it get stuck