djangoindia / djangoindia.org

Official website of djangoindia community.
https://djangoindia.org
MIT License
106 stars 48 forks source link

Adopt UV for package management #225

Open salty-ivy opened 2 weeks ago

salty-ivy commented 2 weeks ago

Context

Based on the conversation https://github.com/djangoindia/djangoindia.org/issues/209#issuecomment-2445012997

UV is a package manager by astral same org that has shipped Ruff.

https://astral.sh/blog/uv

UV is quite fast and written in rust, compared to other pkg managers UV is quite fast and light weight ( poetry and pip-compile )

Current scenario

Most of the orgs and libraries have already made their switch to Ruff likewise they are gradually moving towards UV we should also make this call as soon as possible.

salty-ivy commented 2 weeks ago

thoughts are welcome.
CC: @DevilsAutumn

DevilsAutumn commented 2 weeks ago

I remember having discussion about uv at PyCon India 2024. It looks like a great update to python ecosystem. but since its quite new, do you think it would be compatible with our large python package dependencies. Some of them are really old as well. Also, will it work with docker(which uses linux image) without breaking ? Maybe you can provide some project references who have already adopted to uv so that we are more convinced for this change?

salty-ivy commented 2 weeks ago

Maybe you can provide some project references who have already adopted to uv so that we are more convinced for this change?

FastAPI have switched to it recently.

will it work with docker(which uses linux image) without breaking ?

Mostly yes and also with linux subsystems as well. thought we should conduct a test flow once just to be safe.

I will open a new PR with adoption and docker related changes and trial and we can merge that in a separate sudo main branch to tests its compatibility.

That being said UV seems quite stable and promising however I will document its compatibility with old packages.