mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
![]() ## Summary Similiar to https://github.com/astral-sh/rye/pull/680, I have made a major refactor to the `fetch-download-metadata.py` script. Some notable changes: - Use PEP 723 inline scripts - Fully type annotated the script - Implemented async HTTP fetching - Introduced a `Finder` base class and move finder logic under `CPythonFinder` subclass, which will make it easier to add a `PyPyFinder` later. - Instead of fetching `xxx.sha256` for each file, the script now fetches a single `SHA256SUMS` file containing checksums for all files in the release. As a result, the script now takes around 10 seconds instead of 10+ minutes. ## Plan for Future PRs - [ ] Implement the `PyPyFinder` - [ ] Add an GitHub Action to run `fetch-download-metadata.py` daily and create PR automatically ## Test Plan ```sh cargo run -- run --isolated -- ./crates/uv-python/fetch-download-metadata.py ``` |
||
---|---|---|
.. | ||
python | ||
src | ||
Cargo.toml | ||
download-metadata.json | ||
fetch-download-metadata.py | ||
template-download-metadata.py |