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

Add username args for rye publish #211

Merged
merged 1 commit into from May 24, 2023

Conversation

ischaojie
Copy link
Contributor

Some package repositories need a username to upload packages, for example Google Artifact Register use _json_key_base64 as a username: https://cloud.google.com/artifact-registry/docs/python/authentication

Tested with:

rye publish -r google --repository-url https://asia-northeast1-python.pkg.dev/shaped-infusion-348103/test/ --username _json_key_base64 --token ...

@@ -111,8 +119,8 @@ pub fn execute(cmd: Args) -> Result<(), Error> {
.arg("--no-color")
.arg("upload")
.args(files)
.arg("--user")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did this even work? Pretty sure twine does not accept --user?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from https://twine.readthedocs.io/en/stable/#twine-upload

  -u USERNAME, --username USERNAME
                        The username to authenticate to the repository (package index)
                        as. (Can also be set via TWINE_USERNAME environment variable.)

This may be an accidental mistake.

@mitsuhiko mitsuhiko merged commit 9c2ddb8 into astral-sh:main May 24, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants