Skip to content

DAT-1251 Publish releases on GitHub with the wheel attached - #2

Merged
abuyukcakir merged 4 commits into
masterfrom
feature/DAT-1251/release-workflow
Oct 16, 2026
Merged

abuyukcakir merged 4 commits into
masterfrom
feature/DAT-1251/release-workflow

Conversation

@abuyukcakir

@abuyukcakir abuyukcakir commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

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 a v* tag it runs CI, checks that the tag matches the pyproject.toml version, runs uv build and creates a GitHub Release with the wheel and sdist. It refuses tags that aren't on master. gh release create uploads 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 the requirements.txt line with the wheel's SHA-256 (...whl#sha256=...), so pip rejects any other file.
  • ci.yml gets workflow_call so the release reuses the same checks.
  • README: install from the release wheel instead of git+ssh, plus a Releasing section.
  • README, docstrings and comments describe configuration keys, labels and the conversion helpers in general terms instead of naming internal services, repos, tables and runtimes.

After merging

Tag the merge commit v1.0.0 and 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

  • ruff, mypy and the 164 tests pass; actionlint passes on both workflows.
  • A local uv build produces retail_calendar-1.0.0-py3-none-any.whl, the name the release URL expects.
  • The release job only runs on a tag, so it gets its first real run with v1.0.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GaY7VR1MJXPdTtk1WjfoK2

- 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
@abuyukcakir abuyukcakir self-assigned this Oct 15, 2026
abuyukcakir and others added 2 commits October 15, 2026 20:41
…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
@abuyukcakir

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T17:59:04.567442Z a9c5649 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
- 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

@cihancimen cihancimen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, looks good.

@abuyukcakir
abuyukcakir merged commit c22766b into master Oct 16, 2026
7 checks passed
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