DM-45427: Push new version of alert_packet to PyPi#58
Merged
Conversation
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
…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
timj
approved these changes
May 6, 2026
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.
authored by Claude, reviewed by @ebellm