build: add PyPI publish workflow via python-semantic-release + OIDC - #68
Open
farhan wants to merge 3 commits into
Open
build: add PyPI publish workflow via python-semantic-release + OIDC#68farhan wants to merge 3 commits into
farhan wants to merge 3 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #68 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 7 7
Lines 331 331
======================================
Misses 331 331
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
farhan
force-pushed
the
feat/add-pypi-publish-release
branch
from
July 30, 2026 13:19
700a7be to
e541f1f
Compare
Makes room for the new pypi-release.yml following org standard while preserving the full history of the npm release workflow. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
farhan
force-pushed
the
feat/add-pypi-publish-release
branch
2 times, most recently
from
July 30, 2026 14:37
1a7bd92 to
95b6cc1
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- actions/checkout: v4.3.1 → v7.0.1 - python-semantic-release: v9.9.0 → v10.6.1 - publish-action: v9.9.0 → v10.6.1 - upload-artifact: v4.6.2 → v7.0.1 - download-artifact: v4.3.0 → v8.0.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
farhan
force-pushed
the
feat/add-pypi-publish-release
branch
from
July 30, 2026 14:44
95b6cc1 to
0000799
Compare
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.
Important
PR implemented with the assistance of Claude Code. Refined and validated before being submitted for code review.
Add PyPI publish workflow to
mockprockPart of openedx/public-engineering#506
Summary
pyproject.tomlfrom staticversion = "2.0.0"tosetuptools-scmdynamic versioning via git tagsrelease.yml→npm-release.yml(preserves full git history of the npm workflow)pypi-release.ymlfollowing org-standardpython-semantic-releasev10.6.1 + OIDC trusted publishing patternRemoved/Updated
Renamed workflows:
release.ymlnpm-release.ymlpypi-release.ymlAdded workflows:
pypi-release.ymlVersioning
setuptools-scmwithdynamic = ["version"]—python-semantic-releasecontrols the version string at release time via git tags.fallback_version = "2.0.0"is set since existing tags are npm-style (npmv*) which setuptools-scm cannot parse; a customgit_describe_commandskips those tags and only matches Python-style version tags (v*or digit-prefixed). The firstpython-semantic-releaserun will createv2.0.0or higher based on commit history.Important Notes
openedx/mockprock, workflowpypi-release.yml.npm-release.ymlis unchanged from master — the existing Node.js npm release workflow is fully preserved; only renamed for clarity. Note: npm publishing via this workflow has not been active for some time (see Should @edx/mockprock continue to be published to npm? #69 for context and a question on whether to continue it).npm-release.ymlandpypi-release.ymleach callci.ymlindependently on push to master with no coupling between them.Testing Notes
This PR has not been manually tested against the repo's own features. Testing relied on CI checks and local agent tooling (
uv lock --check,python -m build). Repo-owner is encouraged to verify the OIDC trusted publisher is configured on PyPI before merging.🤖 Generated with Claude Code