-
Notifications
You must be signed in to change notification settings - Fork 710
Introducing tox-uv #3185
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
Introducing tox-uv #3185
Conversation
Signed-off-by: emdneto <[email protected]>
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.
For curiosity, did you check how much performance benefit there is here?
Completely unscientific but looks like on CI two test workflows out of three are a few minutes faster |
Unscientific is good. I was lazy to look. 😐👍 Few minutes is great. |
Signed-off-by: emdneto <[email protected]>
Description
after some rework, I'm opening another PR with less intrusive changes to the tox.ini file. Basically, this is a new version of the work from #2667
uv makes pip install faster. It works like this:
uv pip install
and we can have tests running faster locally and in CI. The tool is from the creators of ruff.The main improvement I see here is the Dependency caching and fast resolution of packages during pip install. We can benefit from this for local development to avoid slow tests, mainly the git clones in contrib tests.
This PR also introduces the usage of tox-uv which is a tox plugin that supports venv runner with uv.