-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
feat(uv): add uv as a pip alternative for dealing with pypi #1640
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"
}, |
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
1b2733d
to
f7fb948
Compare
Feat/add uv as pypi source fix: venv dir can stay venv
f7fb948
to
f724f1a
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 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.