minify and filter embed managed pythons json on compile time (#12967)

## Summary

In #10939 I added the generated
`crates/uv-python/src/download-metadata-minified.json` file which is a
minified version of `crates/uv-python/download-metadata.json`.

The main reason for this PR is to avoid bloating the git objects as this
is a single-line file.

As a bonus, I also filtered the embed json to include only the versions
for the compiled target. Which should improve the binary size and
performance by a bit.

## Test Plan

<!-- How was it tested? -->
This commit is contained in:
Meitar Reihan
2025-04-30 22:51:03 +03:00
committed by GitHub
parent 481d05d8df
commit 5ee54b4fa3
6 changed files with 45 additions and 45 deletions
@@ -24,7 +24,6 @@ jobs:
- name: Sync Python Releases
run: |
uv run -- fetch-download-metadata.py
uv run -- minify-download-metadata.py
working-directory: ./crates/uv-python
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}