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

[WIP] feat: use uv as a pip alternative #1088

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MoisesGSalas
Copy link
Contributor

@MoisesGSalas MoisesGSalas commented Jul 1, 2024

uv is a new package installer/resolver written in rust by the same people that wrote ruff.

This is a small test to assess the viability of using uv instead of pip. It presents it self as a drop in replacement for pip, and for the most part it is, I only had to apply a single change due to limitations in editable VCS packages.

Tests

Using --target=python-requirements:

uv

  1. An initial build without cache (--no-cache): 5m08s, 97s on pip install base.txt
  2. Second build without cache: 4m58s, 94s on pip install base.txt
  3. Break cache with a manual instructions (RUN touch /tmp/a) before installing base.txt: 2.36s, 1s on base.txt

pip

  1. An initial build without cache (--no-cache): 7m29s, 234s on pip install base.txt
  2. Second build without cache: , 7m15s, 223s on pip install base.txt
  3. Break cache with a manual instructions (RUN touch /tmp/a) before installing base.txt: 1m06s, 57s one base.txt.

@MoisesGSalas MoisesGSalas changed the title feat: use uv as a pip alternative [WIP] feat: use uv as a pip alternative Jul 1, 2024
@MoisesGSalas MoisesGSalas marked this pull request as draft July 1, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

1 participant