Skip to content

Commit

Permalink
Change version string
Browse files Browse the repository at this point in the history
Git describe already adds a "g", no need to add also "git".
  • Loading branch information
lumbric committed Apr 12, 2024
1 parent 3750331 commit 56f7d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syfop/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def get_version():
version = git_tag.lstrip("v")

# convert string from git-describe to a valid PEP440 version string
# v0.1.0-4-gc5f364c --> syfop-0.1.0.dev4+gitgc5f364c
# v0.1.0-4-gc5f364c --> syfop-0.1.0.dev4+gc5f364c
# see: https://stackoverflow.com/a/35522080/859591
version = version.replace("-", ".dev", 1).replace("-", "+git", 1)
version = version.replace("-", ".dev", 1).replace("-", "+", 1)

return version

Expand Down

0 comments on commit 56f7d59

Please sign in to comment.