rye add from private index using keyring #958
acuitymd-filip
started this conversation in
General
Replies: 1 comment
-
|
Can you clarify what you're doing in the last step here? What is edit: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using GCP's Artifact Registry's private Python registry/index. It works fine with regular python tooling (i.e. pip) but I'm having trouble setting it up with Rye. I got it working, sort of, and I'm happy to make a PR with some documentation about this, but I'm not sure this is how this is supposed to work long-term.
To use a private index hosted on GCP one is supposed to install
keyringandkeyrings.google-artifactregistry-authpackages, in which casepipwill use the keyring backend automatically when authenticating to the index - and this works reliably.The way I got it to work with Rye is this:
keyringandkeyrings.google-artifactregistry-authas rye tools usingrye install. For some reason you can't just add these two packages usingrye install, and instead you have to use this:pyproject.toml:rye addwith the above configured it still fails:pip. Withuvthis seems to work:Has anyone been able to figure out how to get this working with
pipbackend? What's the long-term intended API for using keyring as an auth backend for private indexes? Would it help to open a PR to document the solution described above?Beta Was this translation helpful? Give feedback.
All reactions