Skip to content

fix(ci): make edge/manual image version PEP 440-valid - #254

Merged
thcp merged 1 commit into
mainfrom
fix/docker-publish-version
Jul 10, 2026
Merged

fix(ci): make edge/manual image version PEP 440-valid#254
thcp merged 1 commit into
mainfrom
fix/docker-publish-version

Conversation

@thcp

@thcp thcp commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

The first Docker Publish run on main failed: git describe --long produced 0.8.0-alpha.5-3-gce86e8a, which hatchling rejected as an invalid version (fed via SETUPTOOLS_SCM_PRETEND_VERSION).

Rewrite the trailing -N-gSHA into a PEP 440 local segment +N.gSHA (e.g. 0.8.0-alpha.5+3.gce86e8a).

Validated: dispatched this branch's workflow (run 29123920511) - build succeeded and pushed ghcr.io/stemdeckapp/stemdeck:edge.

git describe --long yields <tag>-<N>-g<sha>, which hatchling rejects as an
invalid version (SETUPTOOLS_SCM_PRETEND_VERSION). Rewrite the trailing
-N-gSHA into a +N.gSHA local segment so the docker build succeeds.
@thcp
thcp merged commit 1b0d689 into main Jul 10, 2026
9 checks passed
@thcp
thcp deleted the fix/docker-publish-version branch July 10, 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.

1 participant