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

uv as package manager #109

Open
ColeDCrawford opened this issue Dec 5, 2024 · 2 comments
Open

uv as package manager #109

ColeDCrawford opened this issue Dec 5, 2024 · 2 comments

Comments

@ColeDCrawford
Copy link
Collaborator

Low priority, but using uv as the package manager (with a uv.lock file or compiled requirements.txt for pip compatibility) would speed up installs a lot. Took several minutes to install in editable mode with all the dev packages in a new workspace and a good chunk of that was package resolution.

@rlskoeser
Copy link
Member

I just tested this in a fresh virtualenv I created with uv, then installed with uv pip. Installing the package without any optional dependencies was very quick and installing dev dependencies was not much slower, a few seconds rather than minutes.

Here's the relevant timing output from uv and time:

% time uv pip install -e ~/workarea/github/undate-python/
Using Python 3.12.7 environment at undate-test
Resolved 6 packages in 319ms
   Built undate @ file:///Users/rkoeser/workarea/github/undate-python
Prepared 1 package in 210ms
Installed 6 packages in 58ms
[... package list omitted ...]
0.249u 0.198s 0:00.68 63.2%     0+0k 0+0io 0pf+0w
% time uv pip install -e '.[dev]'
Using Python 3.12.7 environment at /private/tmp/undate-test
Resolved 153 packages in 256ms
Prepared 29 packages in 1.23s
Installed 147 packages in 590ms
[... package list omitted ...]
0.600u 4.253s 0:02.17 223.5%    0+0k 0+0io 0pf+0w

uv version: uv 0.5.4 (c62c83c37 2024-11-20)

Is there something different between my setup and yours? I'm not opposed to adding a uv lock file as long as someone writes up the documentation and workflow to ensure it stays up to date, but this doesn't seem that slow to me.

@rlskoeser
Copy link
Member

I opened a PR to try using uv for github actions #113

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

2 participants