Skip to content

PYTHON-6114 Exclude mod_wsgi from Windows dependency resolution - #3085

Merged
blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:PYTHON-6114-win32
Oct 1, 2026
Merged

blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:PYTHON-6114-win32

Conversation

@blink1073

@blink1073 blink1073 commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

PYTHON-6114

Changes in this PR

Follow-up to #3069 to fix mod_wsgi handling on Windows, which is not supported on that platform.

Removes the mod_wsgi dependency group: the constraint moves to requirements/mod_wsgi.txt (managed by Dependabot), and the mod_wsgi workflows install it on demand with uv pip install -r.

We cannot include mod_wsgi in the uv lock file, since it always tries to build the wheel when resolving, even on a platform where the package is not supported.

Test Plan

Patch build

Checklist

Checklist for Author

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

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?

@blink1073
blink1073 force-pushed the PYTHON-6114-win32 branch 2 times, most recently from ecbd7bb to 3350d4e Compare October 1, 2026 10:35
@blink1073
blink1073 requested a balanced review from Copilot October 1, 2026 10:55

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.

Copilot review overview

🟡 Changes recommended

The implementation retains the dependency group and lock entries that the PR description says must be removed.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Adds Windows exclusion markers for the test-only mod_wsgi dependency while raising its minimum version.

Changes:

  • Excludes mod_wsgi on Windows.
  • Raises its minimum version to 5.0.2.
  • Updates lock-file markers, but does not perform the migration described in the PR.
File Description
pyproject.toml Updates the dependency group and platform marker.
uv.lock Records the new constraint and Windows exclusion.

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

Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated

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.

Copilot review overview

🟡 Changes recommended

Workflow trigger, SBOM, and Dependabot scope issues must be corrected.

Review effort: Balanced
Findings: 1 High severity · 2 Medium severity

Open (3)
Resolved since last review (2)

Comment thread requirements/mod_wsgi.txt
Comment thread .github/dependabot.yml
Comment thread .github/workflows/test-mod-wsgi.yml Outdated
@blink1073
blink1073 force-pushed the PYTHON-6114-win32 branch 2 times, most recently from d01b024 to 538fad7 Compare October 1, 2026 11:19
@blink1073
blink1073 requested a balanced review from Copilot October 1, 2026 11:19

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.

Copilot review overview

🟢 Approval recommended

The dependency separation is consistently applied across resolution, automation, SBOM generation, and documentation.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (2)

Min-deps tasks re-resolve the whole project with
uv --resolution=lowest-direct. The universal lock must resolve every
dependency group on every platform, and uv can only resolve mod_wsgi by
building its sdist, which fails on Windows without an Apache
installation. Move the constraint to requirements/mod_wsgi.txt (managed
by Dependabot) and install it on demand in the mod_wsgi workflows.
@blink1073
blink1073 marked this pull request as ready for review October 1, 2026 11:32
@blink1073
blink1073 requested a review from a team as a code owner October 1, 2026 11:32
@blink1073
blink1073 requested a review from NoahStapp October 1, 2026 11:32
@codecov

codecov Bot commented Oct 1, 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 e1527ed into mongodb:main Oct 1, 2026
91 of 94 checks passed
@blink1073
blink1073 deleted the PYTHON-6114-win32 branch October 1, 2026 15:59
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