Merged
Conversation
|
🎉 This PR is included in version 1.0.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the
compile_test.shunit test to focus on the new uv-based Python dependency management workflow, removes legacy pip bootstrapping logic, and updates the test stubs and assertions to match the new approach. The most important changes are grouped below.Test logic and coverage updates:
Removes the
test_compile_bootstraps_pip_when_missingtest and all related code, reflecting the move away from pip bootstrapping in favor of uv for dependency management. [1] [2]Updates and expands assertions in
test_compile_succeeds_for_locked_uv_projectto check for Python version installation from.python-version, creation of Python shims, correct updates to the profile script, and uv-based dependency installation steps. [1] [2]Test environment and stub refactoring:
Refactors the fake command setup to use a managed Python shim (
managed-python3) and updates the uv stub to handle new subcommands (python install,python find,pip install, andexport). Removes the old pip and ensurepip stubs. [1] [2] [3] [4]Ensures the
.python-versionfile is created in relevant tests to simulate Python version pinning. [1] [2] [3]Test runner environment:
run_compileto pass theFAKE_MANAGED_PYTHONenvironment variable instead ofFAKE_PIP_AVAILABLE.