use uv to bootstrap the host system Python environment#892
use uv to bootstrap the host system Python environment#892jjhelmus merged 10 commits intoastral-sh:mainfrom
Conversation
Add a new build script which uses uv to bootstrap the Python
environment on the host and run the build.
To use this new script on a host with uv installed use:
uv run ./build-uv.py
|
I'd probably switch CI to use this as a part of this change, wdyt? |
That was the next step I had planned. I see the path being:
These could be done in a single PR or split into separate. I don't have a strong opinion on either. |
Import dependencies using pinning used by existing pip workflow
uv add -r requirements.in -c requirements.txt
|
Note: To upgrade to 3.14 in |
|
Can we upgrade to 3.14 separately? That part feels out of scope. |
|
I don't mind if you switch CI separately, but doing it here seems like a great way to demonstrate that it's working on all platforms. I imagine we'll find problems, e.g., on Windows? |
|
I think we can keep the old workflow around for a bit for other consumers. |
Absolutely, the note was mostly for my own benefit if/when the upgrade to 3.14 comes. |
Yes a few. 😄 |
Upgraded to latest dependencies using: uv lock --upgrade
Disable cache on action to prevent cache poisoning
Add a new build script which uses uv to bootstrap the Python environment on the host and runs the build.
To use this new script on a host with uv installed use: