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 support for --with-editable to uv tool ru #6744

Merged
merged 6 commits into from
Sep 17, 2024

Conversation

kyoto7250
Copy link
Contributor

Summary

close #6272

Test Plan

As in #6262

@kyoto7250 kyoto7250 marked this pull request as draft August 28, 2024 10:59
Comment on lines 942 to 950
// If invalid, we should reference `--with`.
uv_snapshot!(context.filters(), context.tool_run().arg("--with").arg("./foo").arg("flask").arg("--version"), @r###"
success: false
exit_code: 2
----- stdout -----

----- stderr -----
error: Distribution not found at: file://[TEMP_DIR]/foo
"###);
Copy link
Member

Choose a reason for hiding this comment

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

Just a quick comment, looks like this doesn't reference --with like we'd hope :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your review :)
I'll try working on it for a few more days 👍🏽

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've implemented the feature similarly to the pull request, but I'm running into an issue where an anyhow::Error is being returned, which is preventing me from adding context to the error. I need to investigate this further, but if you have any insights or know of a possible cause, I would greatly appreciate your input.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zanieb
Could you please check it once?

Copy link
Member

Choose a reason for hiding this comment

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

73085ae has the relevant fix

@kyoto7250 kyoto7250 marked this pull request as ready for review September 8, 2024 13:45
@zanieb zanieb self-assigned this Sep 15, 2024
@zanieb
Copy link
Member

zanieb commented Sep 15, 2024

Sorry for the delay! It's been a busy few weeks. I'll get to this soon.

@zanieb zanieb changed the title Add --with-editable flag in uv tool Add support for --with-editable to uv tool Sep 17, 2024
@zanieb zanieb added the enhancement New feature or request label Sep 17, 2024
@zanieb zanieb enabled auto-merge (squash) September 17, 2024 20:44
@zanieb zanieb merged commit e5dd67f into astral-sh:main Sep 17, 2024
59 checks passed
@zanieb zanieb changed the title Add support for --with-editable to uv tool Add support for --with-editable to uv tool ru Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for uvx --with-editable
2 participants