-
Notifications
You must be signed in to change notification settings - Fork 9
Use uv as python, dependencies, virtual environment management tools #155
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
Conversation
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \ | ||
uv sync --frozen --no-install-project --no-dev | ||
|
||
RUN --mount=type=cache,target=/root/.cache/uv \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why run uv sync again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's indeed a good question 🤔 it's from https://github.com/astral-sh/uv-docker-example/blob/1c593aa32621eacd0125b55bd8d2796b86e8ea73/multistage.Dockerfile#L20-L21, but will think it through again. Thanks for reminding me!
…toml Introduce uv to achieve this
the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
as discussed with @henry410213028 , I'll merge this one |
Types of changes
Description
Checklist:
poetry run pytest
locally to ensure all linter checks passSteps to Test This Pull Request
Run uv sync to set env and other docker-related building commands.
Expected behavior
Everything should work as it used to be, but faster.
Related Issue
#154
Additional context
Python files are just reformatted. We probably could focus on other files when reviewing