From 3e1a2a075234c67fb4dc82f21ecb32a7f77dbcf4 Mon Sep 17 00:00:00 2001 From: Andy Jackson Date: Thu, 16 Nov 2023 11:08:05 +0000 Subject: [PATCH] Avoid outputting bad version strings. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d1b3442..5a72ddd 100644 --- a/setup.py +++ b/setup.py @@ -6,9 +6,9 @@ def get_version(): try: - return subprocess.check_output(['git', 'describe', '--tags', '--always']).strip().decode("utf-8") + return subprocess.check_output(['git', 'describe', '--tags', '--exact-match']).strip().decode("utf-8") except: - return "?.?.?" + return "0.0.0dev0" setup( name='crawldb',