py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
7.15k stars 935 forks source link

use uv instead of poetry #1280

Closed ccaballeroh closed 1 week ago

ccaballeroh commented 1 week ago

Big Projects (e.g., FastAPI and Pydantic) have recently changed from using Poetry to uv for managing dependencies, build, and publish their packages.

The intention of this PR is to migrate DoWhy from using poetry to uv.

emrekiciman commented 1 week ago

Hi @ccaballeroh, thanks for the PR. Could you share a little more about the benefits of uv over poetry?

ccaballeroh commented 1 week ago

Hi, @emrekiciman! The first benefit that comes to mind is speed. uv is written in Rust and its purpose is to replace several python tools such as pip, poetry, pyenv, according to their page. They claim it's 10-100x faster than pip, for example.

I just wanted to make the proposal and maybe start with this PR (I'm still missing the dynamic versioning part, hence the draft state). Of course, the main core developers have to make the decision to change dev/build tools. But I wanted to draw your attention to this tool. Maybe it'd peek your interest.

EDIT:

Sorry if I went ahead and open the PR. Now, I think I should have raised an issue as an enhancement proposal. Feel free to close the PR and we could keep the conversation there.