Skip to content
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

GCP keyring is not used #4464

Closed
3 tasks done
snthibaud opened this issue Sep 2, 2021 · 4 comments
Closed
3 tasks done

GCP keyring is not used #4464

snthibaud opened this issue Sep 2, 2021 · 4 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@snthibaud
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

I followed the steps to set up authentication for my Google Artifacts repository. After that, I also installed the keyring and keyrings.google-artifactregistry-auth packages inside the Poetry virtual environment (possibly unnecessarily, because they were installed in the base environment already).
I also added the repo URL to poetry with poetry config repositories.myrepository https://myurl.com/simple/
Installing packages with pip works and pip indicates it is also considering my repository.
Poetry still prompts for a username and password when trying to publish, however:

(mailer-0cRDLs4C-py3.8) abc@def:~/PycharmProjects/mailer$ poetry publish -r myrepository

Username: 

Am I doing something wrong or is GCP keyring authentication not supported by Poetry?

@snthibaud snthibaud added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 2, 2021
@caseydialpad
Copy link

caseydialpad commented Sep 13, 2021

Handled in upcoming version 1.2.0. Try the alpha version 1.2.0a2. #4356 might be helpful.

See #4086 for the keyring support.

@mthaak
Copy link

mthaak commented Oct 8, 2021

With version 1.2.0a2 executing poetry plugin add keyrings.google-artifactregistry-auth did the trick for me

@ralbertazzi
Copy link
Contributor

Working since 1.2 and plugins have been added. GoogleCloudPlatform/artifact-registry-python-tools#17 (comment)

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants