Skip to content

Commit

Permalink
Merge pull request #2776 from digitalfabrik/bugfix/version-parsing
Browse files Browse the repository at this point in the history
Fix version parsing in CircleCI
  • Loading branch information
timobrembeck authored May 5, 2024
2 parents 4fdee86 + 521f633 commit 3dd5299
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ jobs:
echo "Current production version: ${CURRENT_VERSION}"
# Bump version to current alpha version if it is newer
# Attention: exit(True) in Python means exit(1) which is False in Bash :)
if python -c "from looseversion import LooseVersion; exit(LooseVersion('${CURRENT_VERSION}') > LooseVersion('${CURRENT_ALPHA_VERSION}'))"; then
if python -c "from bumpver.version import parse_version; exit(parse_version('${CURRENT_VERSION}') > parse_version('${CURRENT_ALPHA_VERSION}'))"; then
echo "Bump to the currently existing version"
bumpver update -n --set-version="${CURRENT_ALPHA_VERSION}" --no-commit
fi
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ dev = [
"djlint",
"freezegun",
"isort",
"looseversion",
"mypy",
"pre-commit",
"pyjwt",
Expand Down

0 comments on commit 3dd5299

Please sign in to comment.