You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added pip style keyring password lookup as a fallback.
This way Poetry gives keyring backends like Microsoft's `artifacts-keyring` or Google's `keyrings.google-artifactregistry-auth` a change to retrieve the credentials.
Since Microsoft Azure DevOps Personal Access Tokens will expire after some time the `artifacts-keyring` implementation will generate a new one for you to counteract that.
Copy file name to clipboardExpand all lines: docs/docs/repositories.md
+14
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,20 @@ If a system keyring is available and supported, the password is stored to and re
63
63
64
64
Keyring support is enabled using the [keyring library](https://pypi.org/project/keyring/). For more information on supported backends refer to the [library documentation](https://keyring.readthedocs.io/en/latest/?badge=latest).
65
65
66
+
!!!note
67
+
68
+
```
69
+
Poetry will fallback to Pip style use of keyring so that backends like
70
+
Microsoft's [artifacts-keyring](https://pypi.org/project/artifacts-keyring/). It will need to be properly
71
+
installed into Poetry's virtualenv, preferrably by installing a plugin.
72
+
73
+
If you are letting Poetry manage your virtual environments you will want a virtualenv
74
+
seeder installed in Poetry's virtualenv that installs the desired keyring backend
75
+
during `poetry install`. To again use Azure DecOps as an example: [azure-devops-artifacts-helpers](https://pypi.org/project/azure-devops-artifacts-helpers/)
76
+
provides such a seeder. This would of course best achieved by installing a Poetry plugin
77
+
if it exists for you use case instead of doing it yourself.
78
+
```
79
+
66
80
Alternatively, you can use environment variables to provide the credentials:
0 commit comments