-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Support uv as the resolver and installer #2693
Comments
There isn't pip in the backend. We'll see if lockfile format can be standardized and only then we can consider uv. |
What does it mean to standardize a lock file? |
The community and packaging team is making effort on this: https://discuss.python.org/t/lock-files-again-but-this-time-w-sdists/46593 |
Maybe a pdm-uv package/extension-- keep up the excellent work |
Maybe pdm could leverage just uv resolver. Like they mention in this blog post, it can be used only as a resolver with uv pip compile. The speed difference makes a really big difference in the day to day of a dev. |
The way uv resolver works in a different way from PDM's. You must specify the target Python version and platform tags to resolve against, while PDM supports resolving for a wide range of environments. |
I recently came up with a rough plan to leverage uv as the resolver and installer. However it would bring a significant change to how cross-platform lockfile works. And ideally it can also solve #46 I expect it to be a change of large scale and I am not sure if I can make it able to opt in and out. It also depends on how much spare time I can invest in this work, so no promise but stay tuned. |
The change will be divided into two steps. First, we will support resolving dependencies for the given target platform and Python range combination(#46 resolved at this step), and the current |
@frostming By deprecating |
Not by the way it is now. You must specify which platform and python range the lockfile is targeted. You can also specify several combinations(or matrix) in a single lockfile. This will make it more smooth to move to the lockfile standard in the future(if it's gonna be a thing). Because from the discussions happened till now, the community is tend to adopt this approach. |
@frostming |
@zhuwenxing This PR is not related to PDM tool itself. src/openllm/venv.py |
An experimental uv integration has landed in the latest prerelease of PDM. Or you can try the in-development branch at #3144 |
*请问老哥什么时候发布到正式版当中, 现在的解析速度确实过于缓慢, 未来如果用rust或者go重写也是可以考虑 ,还有现在的init template 也不太完善 |
Is your feature/enhancement proposal related to a problem? Please describe.
uv https://github.com/astral-sh/uv is extremely fast to install pip libs, it would be nice if pdm (install/sync) can optionally invoke uv instead of pip to make it faster.
Describe the solution you'd like
Add a pip backend option, and support uv.
Tasks
The text was updated successfully, but these errors were encountered: