-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: Install python dependencies with uv in workflows #4086
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
Changes from all commits
6e165e0
8ea1210
2ba3708
e6400ac
8f3b362
55bb636
3e15126
4563ace
36338c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
tokoko marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,11 @@ install-python-ci-dependencies: | |
| pip install --no-deps -e . | ||
| python setup.py build_python_protos --inplace | ||
|
|
||
| install-python-ci-dependencies-uv: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'm not familiar with uv. but using it to install in the CI, will it have a different result with direct pip install?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For all intents and purposes, no, it's intended to be a drop-in replacement. There's of course some minor differences, pip tends to be more lenient towards packages with invalid metadata for example, version resolution (which we aren't changing in this pr, but I'll do in a follow-up) might also be negligibly different because they are using different resolvers with different heuristics. But at the end of the day, it shouldn't matter for us. |
||
| uv pip sync --system sdk/python/requirements/py$(PYTHON)-ci-requirements.txt | ||
| uv pip install --system --no-deps -e . | ||
| python setup.py build_python_protos --inplace | ||
|
|
||
| lock-python-ci-dependencies: | ||
| python -m piptools compile -U --extra ci --output-file sdk/python/requirements/py$(PYTHON)-ci-requirements.txt | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.