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

Allow rye publish working outside of project #910

Merged
merged 3 commits into from Mar 20, 2024

Conversation

j178
Copy link
Contributor

@j178 j178 commented Mar 20, 2024

Fixes #909

@j178 j178 changed the title rye publish Allow rye publish working outside of project Mar 20, 2024
@@ -115,7 +116,6 @@ pub fn execute(cmd: Args) -> Result<(), Error> {
let maybe_encrypted = maybe_encrypt(&secret, cmd.yes)?;
let maybe_encoded = maybe_encode(&secret, &maybe_encrypted);
credentials[repository]["token"] = Item::Value(maybe_encoded.expose_secret().into());
write_credentials(&credentials)?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

write_credentials will be called in line 150, this call is not necessary.

Fix dist path

Improve test

Improve tests
@mitsuhiko mitsuhiko merged commit 41131a7 into astral-sh:main Mar 20, 2024
8 checks passed
@j178 j178 deleted the rye-publish branch March 20, 2024 16:55
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.

rye publish should work outside of project
2 participants