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

Passing --python-platform flag to uv #1056

Open
sondr3 opened this issue Apr 30, 2024 · 2 comments
Open

Passing --python-platform flag to uv #1056

sondr3 opened this issue Apr 30, 2024 · 2 comments

Comments

@sondr3
Copy link

sondr3 commented Apr 30, 2024

Related to #717 and #1053, now that uv is the default backend would it be possible to pass the --python-platform flag either as configuration or its flag for sync/add etc? This would get us 95% of the way for platform agnostic lockfiles as we only really care about locking down dependencies for Linux.

@sondr3 sondr3 changed the title Passing flags to uv Passing --python-platform flag to uv Apr 30, 2024
@bobbyrenwick
Copy link

Are there plans to expose the --universal flag that came to uv recently?

charliermarsh pushed a commit that referenced this issue Jul 2, 2024
Partially addresses #1056

Allows parsing the new `--universal` flag down to uv when calling `lock`
or `sync`, also adds it as an option to the pyrpoject.toml

Tested locally for `lock` and `sync` with command line args and in the
pyproject, seems to work.
@impredicative
Copy link

This works:

[tool.rye]
universal = true

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

No branches or pull requests

3 participants