Skip to content

setup: count the commits after a tag as a post-release - #213

Open
yehiaibrahim wants to merge 2 commits into
kontron:masterfrom
yehiaibrahim:setup-post-release-version
Open

yehiaibrahim wants to merge 2 commits into
kontron:masterfrom
yehiaibrahim:setup-post-release-version

Conversation

@yehiaibrahim

Copy link
Copy Markdown

A git checkout got the version .dev, e.g. 0.6.1.dev106 for the 106th commit after 0.6.1. In PEP 440 a development release comes before its release, so pip took the checkout for older than the tag it was built on. Installing it from git together with a package that requires python-ipmi>=0.6.1, e.g. robotframework-ipmilibrary, failed with ResolutionImpossible.

Use .post instead: a post-release sorts after the tag and before the next release.

A git checkout got the version <tag>.dev<distance>, e.g. 0.6.1.dev106
for the 106th commit after 0.6.1. In PEP 440 a development release
comes before its release, so pip took the checkout for older than the
tag it was built on. Installing it from git together with a package
that requires python-ipmi>=0.6.1, e.g. robotframework-ipmilibrary,
failed with ResolutionImpossible.

Use <tag>.post<distance> instead: a post-release sorts after the tag
and before the next release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Yehia Ibrahim <yehianumb@gmail.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 95.272%. remained the same — yehiaibrahim:setup-post-release-version into kontron:master

Since the IPMB request retries accept a late response to an earlier
try, ipmb.py no longer catches or raises IpmiTimeoutError itself; it
is only named in the docstrings. ruff reports the import as unused
(F401), which fails the lint check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Yehia Ibrahim <yehianumb@gmail.com>
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