Skip to content

DM-45427: Push new version of alert_packet to PyPi#58

Merged
ebellm merged 6 commits intomainfrom
tickets/DM-45427
May 6, 2026
Merged

DM-45427: Push new version of alert_packet to PyPi#58
ebellm merged 6 commits intomainfrom
tickets/DM-45427

Conversation

@ebellm
Copy link
Copy Markdown
Contributor

@ebellm ebellm commented May 5, 2026

authored by Claude, reviewed by @ebellm

ebellm added 2 commits May 5, 2026 10:21
Replaces the static version string with lsst-versions so the package
version is derived from git tags (weekly w.* and official pipeline tags)
at build time. Adds [tool.lsst_versions] to write version.py on build.

Generated with AI

Co-Authored-By: SLAC AI
Rewrites the CI build workflow to match the lsst/images pattern:
- fetch-depth: 0 so lsst-versions can read git history
- check-changes job deduplicates weekly tags (skips PyPI upload if the
  same commit is already published under another w.* tag)
- pypi job uses OIDC trusted publishing (no stored token required),
  runs on all non-duplicate tags

Generated with AI

Co-Authored-By: SLAC AI
@ebellm ebellm force-pushed the tickets/DM-45427 branch from 84448c2 to ac2e8f0 Compare May 5, 2026 17:38
ebellm added 4 commits May 5, 2026 10:47
…time

lsst-versions resolves the package version from git tags, but the Docker
base image has no git binary. Building the wheel in CI (where git is
available) bakes the version into the wheel; Docker then installs the
wheel directly, bypassing the lsst-versions setuptools hook entirely.

Generated with AI

Co-Authored-By: SLAC AI
…syntax

- Replace removed ::set-output with GITHUB_OUTPUT
- Add fetch-depth: 0 so lsst-versions can read git tags when building wheel
- Add Python + build step to produce dist/*.whl before docker build
- Update docker/login-action v1 -> v3

Generated with AI

Co-Authored-By: SLAC AI
@ebellm ebellm force-pushed the tickets/DM-45427 branch from a31e31d to 07b9c59 Compare May 6, 2026 16:46
@ebellm ebellm requested a review from timj May 6, 2026 16:52
@ebellm ebellm merged commit 441baf7 into main May 6, 2026
10 checks passed
@ebellm ebellm deleted the tickets/DM-45427 branch May 6, 2026 21:18
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