windmill-labs / windmill

Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal.
https://windmill.dev
Other
9.78k stars 453 forks source link

feat: Replace `pip-compile` with `uv` #4460

Open pyranota opened 1 day ago

pyranota commented 1 day ago

Makes more idiomatic and is much faster on cold starts. Useful if starting fresh instance or/and adding new dependency to python

cloudflare-workers-and-pages[bot] commented 1 day ago

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: e1aceac
Status: ✅  Deploy successful!
Preview URL: https://4c2d8ff6.windmill.pages.dev
Branch Preview URL: https://python-uv.windmill.pages.dev

View logs

pyranota commented 1 day ago

Currently testing change. Small note: uv handles extra index differently compared to pip-compile, package will be checked against extra index first and if not found fallback to main index, quite the opposite for pip-compile where main index will be checked first and then extra.

Edit: Resolved by using --index-strategy unsafe-best-match. Read more - https://docs.astral.sh/uv/pip/compatibility/#packages-that-exist-on-multiple-indexes