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 a --system flag for opt-in non-virtualenv installs #2046

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

charliermarsh
Copy link
Member

Summary

This is essentially a wrapper around something like --python $(which python3), but gives users a portable and streamlined way to solve the common pain point of using uv in GitHub Actions or a Docker container.

See: #1526.

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality cli Related to the command line interface labels Feb 28, 2024
@charliermarsh charliermarsh force-pushed the charlie/system branch 6 times, most recently from 62796c9 to b18f393 Compare February 28, 2024 17:00
Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

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

The testing looks like a good start to me!

crates/uv/src/main.rs Outdated Show resolved Hide resolved
@charliermarsh
Copy link
Member Author

@zanieb - Do you want me to check-in the testing (perhaps making it workflow_dispatch for now)? I was considering removing it.

@charliermarsh charliermarsh force-pushed the charlie/system branch 4 times, most recently from 77e274c to 706108c Compare February 28, 2024 17:45
@zanieb
Copy link
Member

zanieb commented Feb 28, 2024

@charliermarsh I can take ownership of productionizing them from wherever you want to leave it — workflow dispatch seems fine

run: cargo build

- name: "Print Python path"
run: echo $(which python)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think Windows has an echo command or a which command

Copy link
Member

Choose a reason for hiding this comment

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

It has a where command

Copy link
Member Author

Choose a reason for hiding this comment

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

It turns out that it doesn't matter on GHA:

Screenshot 2024-02-28 at 1 29 42 PM

Copy link
Member

Choose a reason for hiding this comment

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

🤯

@charliermarsh charliermarsh force-pushed the charlie/system branch 5 times, most recently from 01a6dd5 to 778c1a2 Compare February 28, 2024 19:01
@charliermarsh charliermarsh force-pushed the charlie/system branch 4 times, most recently from 82c4c91 to fa3f6ee Compare February 28, 2024 19:27
@charliermarsh charliermarsh enabled auto-merge (squash) February 28, 2024 19:43
@charliermarsh charliermarsh merged commit 9328b3c into main Feb 28, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/system branch February 28, 2024 19:48
@tylerlaprade
Copy link

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants