-
You want to install a CLI package from the artifact registry on google cloud, and the google artifact registry relies on the keyrings.google-artifactregistry-auth package for user authentication. I was able to successfully install the package using keyrings by simply using the pip command or using pipenv, poetry, etc. However, with pipx, I'm not sure how to install a package that is located at an external index-url that uses the keyring module. I was wondering if anyone has any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
How about using
|
Beta Was this translation helpful? Give feedback.
-
The --preinstall option is available starting with pipx version 1.3.0.
We recommend that you upgrade your version of pipx.
------------------------------------------------------------------------
------------------------------------
There is a future society, but my future is not what others do.
Dept. of Information Science, Graduate School, Korea National Open
University
2024년 7월 31일 (수) 오후 7:42, jake golden ***@***.***>님이 작성:
… How would you recommend upgrading the package? If I run the analogous
upgrade command:
pipx: error: unrecognized arguments: --preinstall=keyrings.google-artifactregistry-auth
—
Reply to this email directly, view it on GitHub
<#1280 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASVYOHD3NQX46M5KVK4J3LZPC5PZAVCNFSM6AAAAABEIMAJSCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRQGAYDMMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What failures are you experiencing when upgrading pipx?
Are you trying to update a package in a private gcp repo?
In any case, try running the pipx upgrade command followed by just the name
of the installed package.
This is because the pipx upgrade command does not have a --preinstall
option.
If you still get the error, please start a new error ticket.
------------------------------------------------------------------------
------------------------------------
There is a future society, but my future is not what others do.
Dept. of Information Science, Graduate School, Korea National Open
University
2024년 8월 1일 (목) 오전 2:17, jake golden ***@***.***>님이 작성:
… Sorry for lack of clarity. I'm using 1.6, but I'm talking specifially
about running pipx upgrade.
—
Reply to this email directly, view it on GitHub
<#1280 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASVYOB3GNLYY7TOYUEU2PTZPEL3PAVCNFSM6AAAAABEIMAJSCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRQGM4TAMY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Try running the “pipx upgrade <package>” command, specifying the new
version uploaded to GCP when you run it.
ex) pipx upgrade sample==0.2
------------------------------------------------------------------------
------------------------------------
There is a future society, but my future is not what others do.
Dept. of Information Science, Graduate School, Korea National Open
University
2024년 8월 1일 (목) 오전 2:27, jake golden ***@***.***>님이 작성:
… I have installed a package using the keyring authentication method using
the solution provided by @Gitznik <https://github.com/Gitznik> above.
I have now pushed a new version of *my* package to Artifact Registry repo
and want to upgrade the installed version using pipx.
If I run pipx upgrade my-package, I get: my-package is already at latest
version x.x.x, but there is in fact a more recent version on the Artifact
Registry repo.
—
Reply to this email directly, view it on GitHub
<#1280 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASVYOGXBZ63N7TXHLESEZDZPENATAVCNFSM6AAAAABEIMAJSCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRQGM4TQNI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
I built a small CLI myself and deployed it to GCP.
I was able to install it with pipx via the following command:
Pipx version
1.4.3
.If you get auth errors, you may have to run one of the following commands first (either should work according to the keyring docs):
Will mark this as accepted answer and close the discussion. Let me know if you have any other questions.