Repository navigation
DAT-1251 Publish releases on GitHub with the wheel attached - #2
Merged
Merged
Conversation
- New functionality: pushing a v* tag runs CI, checks the tag matches the package version and publishes a GitHub Release with the wheel and sdist; the notes give the requirements.txt line with the wheel's SHA-256 - Enhancement: CI is reusable through workflow_call so the release runs the same checks - Documentation update: install from the release wheel URL instead of git+ssh, how to release, and the toolio-ml pin bump in the sync rules Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaY7VR1MJXPdTtk1WjfoK2
…ublic - Documentation update: describe configuration keys, labels and the date/segment helpers in general terms instead of naming internal services, repos, tables and runtimes (README, docstrings, workflow and script comments) - Documentation update: show a plain pip install of a release wheel; the toolio-ml pin bump moves to toolio-ml's docs - Code cleanup: rename test_calendarconfiguration_row_shape to test_stored_configuration_shape Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaY7VR1MJXPdTtk1WjfoK2
- Enhancement: create the release as a draft, upload the wheel and sdist, then publish it, since immutable releases can't take assets after publishing Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaY7VR1MJXPdTtk1WjfoK2
Collaborator
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9c5649e01
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
cihancimen
reviewed
Oct 15, 2026
- Bugfix: let gh release create handle the draft, upload and publish sequence, which cleans up after a failure, so a rerun can publish the tag - Enhancement: refuse to publish a tag that is not on master - Enhancement: pin all actions by commit SHA (same commits as the v4/v6 tags used before) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaY7VR1MJXPdTtk1WjfoK2
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.
Summary
Publishes each version as a GitHub Release with the wheel attached, so projects can install a pinned release with no git, no build step and no credentials. Also removes references to internal systems now that the repo is public.
.github/workflows/release.yml: on av*tag it runs CI, checks that the tag matches thepyproject.tomlversion, runsuv buildand creates a GitHub Release with the wheel and sdist. It refuses tags that aren't onmaster.gh release createuploads the files to a draft and publishes it only once they're all uploaded, which matters because immutable releases can't take files after publishing. All actions are pinned by commit SHA. The release notes give therequirements.txtline with the wheel's SHA-256 (...whl#sha256=...), so pip rejects any other file.ci.ymlgetsworkflow_callso the release reuses the same checks.git+ssh, plus a Releasing section.After merging
Tag the merge commit
v1.0.0and push it. The workflow publishes the first release (the version is already 1.0.0).Immutable releases are enabled on the repo, so once published, a release's tag and assets can't be changed or replaced. The pinned wheel URL and hash therefore always refer to the same file.
Testing
actionlintpasses on both workflows.uv buildproducesretail_calendar-1.0.0-py3-none-any.whl, the name the release URL expects.v1.0.0.🤖 Generated with Claude Code
https://claude.ai/code/session_01GaY7VR1MJXPdTtk1WjfoK2