diff --git a/setup.py b/setup.py index 3d2a9ba573..51249e94ae 100644 --- a/setup.py +++ b/setup.py @@ -92,7 +92,7 @@ class Components: # if version is not a valid PEP440 version, then create a bogus version # that will be used only for development purposes which appends the commit hash - if not re.match(r"^\d+(\.\d+)*$", __version__): + if not re.match(r"^\d+(\.\d+)*(\.dev)?$", __version__): __version__ = "0.0.dev0+g" + ( subprocess.run( ["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE