Skip to content

PYTHON-6091 Pin a consistent uv binary version in CI and locally - #27

Draft
blink1073 wants to merge 3 commits into
mainfrom
PYTHON-6091
Draft

PYTHON-6091 Pin a consistent uv binary version in CI and locally#27
blink1073 wants to merge 3 commits into
mainfrom
PYTHON-6091

Conversation

@blink1073

@blink1073 blink1073 commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Ensure a consistent uv binary is used in Evergreen CI, GitHub Actions, and local development, based on a single known version.

  • Pins the uv binary version via [tool.uv] required-version in pyproject.toml, enforced locally and read by astral-sh/setup-uv.
  • .evergreen/scripts/install-dependencies.sh discovers uv from the toolchain (falling back to PATH, then astral), installs the exact pinned version with uv tool install, and ensures just is present — all into a task-local $PYMONGO_BIN_DIR.
  • On CI configure-env.sh puts PYMONGO_BIN_DIR in ${TMPDIR:-/tmp}/pymongo-bin (a space we control) ahead of the drivers-tools bin dir, and keeps it in the form bash searches on PATH on Windows.
  • justfile puts the local bin dir first on PATH as a backstop.
  • Removed the toolchain-symlink bootstrap; uv/uvx/just are discovered and installed instead.

PYTHON-6091

Changes in this PR

Test Plan

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

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.

1 participant