Skip to content

PYTHON-5971 Avoid using TestPyPI in release process - #118

Merged
blink1073 merged 1 commit into
mongodb-labs:mainfrom
blink1073:PYTHON-5971
Oct 6, 2026
Merged

blink1073 merged 1 commit into
mongodb-labs:mainfrom
blink1073:PYTHON-5971

Conversation

@blink1073

Copy link
Copy Markdown
Member

PYTHON-5971

Changes in this PR

Replaces the TestPyPI dry run publish in the release process with local distribution checks. The new checks are pyproject validation and strict metadata checks on the built artifacts. This mirrors the winkerberos migration (#161).

The build failed last night: https://github.com/mongodb-labs/python-bsonjs/actions/runs/37269333075

Test Plan

This change only touches CI workflows. There are no unit tests to add. Both new checks were run locally exactly as CI will run them. validate-pyproject passes. twine check --strict passes on a locally built sdist. Both YAMLs parse cleanly.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)? Not needed for a workflow only change.
  • Is there test coverage? Validated locally as described above. No unit tests apply.
  • Is any followup work tracked in a JIRA ticket? If so, add link(s). No followup work is needed. The rollout is tracked in PYTHON-5971.

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?

TestPyPI broke downloads of artifacts older than 14 days, failing the
nightly uploads that relied on skip-existing, and PyPI admins are
deprecating TestPyPI. Replace it with local validation gates already
adopted for PyMongo in PYTHON-5970:

- dist.yml: validate pyproject.toml before building the sdist and run
  twine check --strict on the collected dists before upload.
- release-python.yml: drop the TestPyPI publish step.

Mirrors the winkerberos migration (mongodb/winkerberos#161).
@blink1073
blink1073 marked this pull request as ready for review October 5, 2026 10:59
@blink1073
blink1073 requested a review from a team as a code owner October 5, 2026 10:59
@blink1073
blink1073 requested review from aclark4life and removed request for a team October 5, 2026 10:59

@aclark4life aclark4life left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@blink1073
blink1073 merged commit ec03570 into mongodb-labs:main Oct 6, 2026
18 checks passed
@blink1073
blink1073 deleted the PYTHON-5971 branch October 6, 2026 18:40
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.

2 participants