Skip to content

Commit

Permalink
fix(ci): fix tox ensure_version_matches (#1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau authored Jul 23, 2024
1 parent 40beeef commit 2d1e6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ commands = pyclean {posargs:. --debris --erase results/* results/ --yes}
description = Verify package version is same as Git tag
deps =
commands = python -c 'import os; from importlib.metadata import version; pkg, tag = os.environ["PKG_NAME"], os.environ["GIT_TAG"]; ver = version(pkg); error = f"`{ver}` != `{tag}`"; abort = f"Package version does not match the Git tag ({error}). ABORTING."; raise SystemExit(0 if ver and tag and ver == tag else abort)'
setenv =
set_env =
PKG_NAME=charmcraft
GIT_TAG={posargs}

Expand Down

0 comments on commit 2d1e6d3

Please sign in to comment.