Skip to content

Commit

Permalink
Fix dirty version naming
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelmassot committed Oct 23, 2023
1 parent 67fd259 commit 9fbdaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def git_pep440_version():
except OSError:
print("The command git --version was not successful. Is git installed?")
return None
version_full = git_command(["describe", "--tags", "--dirty=+dirty"])
version_full = git_command(["describe", "--tags", "--dirty=.dirty"])
version_tag = git_command(["describe", "--tags", "--abbrev=0"])
version_tail = version_full[len(version_tag) :] # noqa
return version_tag + version_tail.replace("-", ".dev", 1).replace("-", "+", 1)
Expand Down

0 comments on commit 9fbdaa2

Please sign in to comment.