-
-
Notifications
You must be signed in to change notification settings - Fork 319
feat(uv): add uv as a pip alternative for dealing with pypi #1640
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
base: main
Are you sure you want to change the base?
feat(uv): add uv as a pip alternative for dealing with pypi #1640
Conversation
6843a02 to
0514854
Compare
|
I think we should do this for bun too, since now it's compatible with alot more things now |
4fbe794 to
b1bceba
Compare
|
Can we get some traction for this? it would boost pkg installation speeds astronomically. |
|
i tried installing about 10 python based tools with this PR:
|
6170264 to
6c3a15e
Compare
|
@iguanacucumber if you could retry it seems to be resolved on my side now |
|
I won't have time to work on this for a few days so you're more than welcome to open a PR on my branch if you desperately need it. (You should be able to just add debugpy to your dev dependencies in your project as a workaround in the short term) |
|
Alright, debugpy installs now, to have this work with mason-lspconfig I had to fork that for now: return {
"neovim/nvim-lspconfig",
dependencies = {
{ "KingMichaelPark/mason.nvim", opts = { pip = { use_uv = true } } },
"KingMichaelPark/mason-lspconfig.nvim",
"hrsh7th/cmp-nvim-lsp",
"nvim-telescope/telescope.nvim"
}, |
f7fb948 to
f724f1a
Compare
|
This PR is really helpful! I was wondering if the maintainer has any plans to merge it? @williamboman |
|
Not only would this boost install speeds dramatically for lsps that are installed via Further, the packages could require different versions of python since uv can install python binaries as well. I believe this happens automatically. |
|
is there plans to merge this? |
|
@williamboman Are there plans to merge this? For anyone that needs a quick workaround, I noticed that Mason appends itself to the top of the path at nvim startup: :echo $PATH
>>> ~/.local/share/nvim/mason/bin:...So I just symlinked my system python to that directory in order to force Mason to recognize it first. ln -s /usr/bin/python3 ~/.local/share/nvim/mason/bin/python3 |
0bdf8da to
91ed1a0
Compare
71f1a68 to
8f4c63b
Compare
|
Any updates on merging? |
|
It looks like this PR is falling afoul of contributing guidelines:
Probably makes sense to open an issue and discuss, rather than keep pinging here. |
|
Quick question: |
204cb25 to
1df10d0
Compare
Now it does. |
1df10d0 to
37b5b83
Compare
UV is a very fast installer for python packages that can be 10-100x faster to resolve packages. This adds an option for Mason to use it instead of pip to resolve python packages that are installed via Mason. More info about the replacement: https://github.com/astral-sh/uv I have no relationship with uv, it is just very fast and it would be nice to have updates for packages like sqlfluff take a lot less time than they currently do to resolve during updates. fix: ensure the virtual environment is .venv for uv fix: venv dir can stay venv feat: update stdio ctx reference feat: add uv as installer for python UV is a very fast installer for python packages that can be 10-100x faster to resolve packages. This adds an option for Mason to use it instead of pip to resolve python packages that are installed via Mason. More info about the replacement: https://github.com/astral-sh/uv I have no relationship with uv, it is just very fast and it would be nice to have updates for packages like sqlfluff take a lot less time than they currently do to resolve during updates. fix: ensure the virtual environment is .venv for uv fix: venv dir can stay venv feat: update stdio ctx reference feat: add checkhealth entry and fix formatting feat: fix formatting fix: cbfmt 404
09b940d to
32c755a
Compare
|
@williamboman @seblyng @mirekdlugosz This also fixes the 404 in your CI for shellharden. |


UV is a very fast installer for python packages
that can be 10-100x faster to resolve packages. This adds
an option for Mason to use it instead of pip to resolve
python packages that are installed via Mason.
More info about the replacement: https://github.com/astral-sh/uv
I have no affiliations with uv/astral, it is just very fast and
it would be nice to have updates for packages like sqlfluff take
a lot less time than they currently do to resolve during updates.