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

Support for pipenv #18

Open
megan-kuo opened this issue Aug 2, 2021 · 1 comment
Open

Support for pipenv #18

megan-kuo opened this issue Aug 2, 2021 · 1 comment

Comments

@megan-kuo
Copy link
Contributor

Pipenv does not properly invoke keyring when locking the file. It can potentially be due to the lock file being generated in a virtual environment that lacks the credential helper.

The workaround here is a bit of a hack:

  • Since pipenv supports the addition of environment variables, you can add an environment variable that invokes the gcloud command to print the access token into the pipfile.

Steps:

  • export PASSWORD=$(gcloud auth print-access-token)
  • add source in Pipfile where username is oauth2accesstoken and password is the environment variable that we had set in the previous step.

At this time, we can't officially support pipenv due to it's architecture.

@di
Copy link
Member

di commented Aug 2, 2021

This seems to be a corresponding issue in pipenv's tracker: pypa/pipenv#4706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants