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
3. Create a personal access token with `read_api` scope and add it to the config file:
57
+
3. Configure a token
58
+
59
+
### Personal Access Token
60
+
61
+
Create a personal access token with the `read_api` scope and add it to the config file:
62
+
63
+
```toml
64
+
["gitlab.com"]
65
+
token = "<token>"
66
+
```
67
+
68
+
### Deploy Token
69
+
70
+
Create a deploy token with the `read_package_registry` scope and add it to the config file:
58
71
59
72
```toml
60
-
["https://gitlab.com"]
73
+
["gitlab.com"]
74
+
username = "<username>"
61
75
token = "<token>"
62
76
```
63
77
@@ -96,7 +110,7 @@
96
110
97
111
You need `authenticate = "always"`for uv to invoke [keyring] when no username is specified. This option is a good idea anyway!
98
112
99
-
Alternatively, add the username `__token__` to the URL, but this is not recommended for`pyproject.toml` as you likely want to use a different usernamein CI, for example.
113
+
Alternatively, add the username (which is `__token__`forpersonal access tokens) to the URL, but this is not recommended for `pyproject.toml` as you likely want to use a different usernamein CI, for example.
100
114
101
115
6. Done!`keyring-gitlab-pypi` will return your token for URLs that look like package installs.
0 commit comments