Skip to content

Test Python installs from a local mirror - #21278

Open
PuvaanRaaj wants to merge 1 commit into
astral-sh:mainfrom
PuvaanRaaj:fix/5939-python-proxy-tests
Open

PuvaanRaaj wants to merge 1 commit into
astral-sh:mainfrom
PuvaanRaaj:fix/5939-python-proxy-tests

Conversation

@PuvaanRaaj

Copy link
Copy Markdown

Summary

  • Fixes Add test coverage for uv python using proxy to serve dummy distributions #5939.
  • Adds an archive helper that preserves executable permissions.
  • Dynamically creates a minimal Python distribution for the current Unix platform.
  • Serves that archive through a local mock mirror.
  • Runs uv python install using custom download metadata and UV_PYTHON_INSTALL_MIRROR.
  • Confirms the resulting python3.12 executable exists and runs successfully.

Test Plan

  • Focused python_install_from_mirror integration test passed.
  • cargo fmt passed.
  • cargo clippy passed with warnings denied.
cargo test -p uv --test python python_install_from_mirror \
  --features test-python-managed

cargo fmt --all -- --check

cargo clippy -p uv-test -p uv --test python \
  --features test-python-managed -- -D warnings

@astral-sh-bot

astral-sh-bot Bot commented Aug 23, 2026

Copy link
Copy Markdown

uv test inventory changes

This PR changes the tests when compared with the main base revision.

  • Added tests: 1
  • Removed tests: 0
  • Changed suites: 1
uv::python: +1 / -0

Added:

  • uv::python::python_install::python_install_from_mirror

Removed: none

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage for uv python using proxy to serve dummy distributions

1 participant