Skip to content

PYTHON-6001 Pin mockupdb to a released version instead of the master branch - #2982

Merged
blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:PYTHON-6001
Aug 13, 2026
Merged

PYTHON-6001 Pin mockupdb to a released version instead of the master branch#2982
blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:PYTHON-6001

Conversation

@blink1073

@blink1073 blink1073 commented Aug 13, 2026

Copy link
Copy Markdown
Member

PYTHON-6001

Summary

pyproject.toml installed the mockupdb dependency group from git+https://github.com/mongodb-labs/mongo-mockup-db@master, a moving branch rather than a released version. Every environment resolving this group re-fetches whatever commit is currently on master, so builds aren't reproducible and a transient fetch failure against that branch can fail the mockupdb test tasks.

Motivation

mongo-mockup-db publishes releases to PyPI; the latest is 1.8.1. Master only has a "Post-release bump" commit past that tag (no functional changes), so pinning to the release is safe and removes the moving-target dependency.

Changes

  • Changed the mockupdb dependency group in pyproject.toml to depend on mockupdb>=1.8.1 from PyPI instead of the master git ref.
  • Regenerated uv.lock to reflect the pinned release (includes unrelated marker-simplification churn from the locally installed uv version).

Testing

  • uv lock --check passes.
  • uv run --extra test --group mockupdb python -m pytest test/mockupdb -q -m mockupdb — 340 passed.
  • just lint and just typing both pass.

…branch

Depend on mockupdb>=1.8.1 from PyPI instead of git+...@master so builds
are reproducible and not subject to a moving branch or transient fetch
failures against it.
@blink1073
blink1073 marked this pull request as ready for review August 13, 2026 11:35
@blink1073
blink1073 requested a review from a team as a code owner August 13, 2026 11:35
@blink1073
blink1073 requested review from NoahStapp and a lite review from Copilot August 13, 2026 11:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves build/test reproducibility by switching the mockupdb dependency group from a moving Git master reference to a released PyPI version, and updating the uv.lock accordingly.

Changes:

  • Updated pyproject.toml to use mockupdb>=1.8.1 instead of mockupdb from the GitHub master branch.
  • Regenerated uv.lock to reflect the PyPI-sourced mockupdb==1.8.1 and associated resolver/marker normalization.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Replaces the Git master dependency reference with a released PyPI constraint for mockupdb.
uv.lock Updates the lock to pull mockupdb==1.8.1 from PyPI and records resolver output changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@blink1073
blink1073 merged commit a1243ef into mongodb:main Aug 13, 2026
88 of 90 checks passed
@blink1073
blink1073 deleted the PYTHON-6001 branch August 13, 2026 14:54
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.

3 participants