diff --git a/setup.py b/setup.py index 88055b6..7408b16 100644 --- a/setup.py +++ b/setup.py @@ -98,6 +98,8 @@ def get_version(): if '-' in result: # not a tagged version real_number, commit_count, commit_hash = result.split('-', 2) version = '%s.post%s+%s' % (real_number, commit_count, commit_hash) + elif result.endswith('.dirty'): + version = result[:-6] + '+dirty' else: version = result return version