From 510a8467781fad4c01a6112b88047fc96ae7f613 Mon Sep 17 00:00:00 2001
From: Daniel <daniel@harvey>
Date: Thu, 23 Apr 2020 11:39:42 +0200
Subject: [PATCH] FIX: Fixed pre-release string in setup.py

---
 setup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 7ab1f2c6..d8e82e15 100755
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,10 @@ MINOR = 2
 MICRO = 4
 PRE = "rc0"
 ISRELEASED = True
-VERSION = "{}.{}.{}{}".format(MAJOR, MINOR, MICRO, PRE)
+if PRE:
+    VERSION = "{}.{}.{}-{}".format(MAJOR, MINOR, MICRO, PRE)
+else:
+    VERSION = "{}.{}.{}".format(MAJOR, MINOR, MICRO)
 
 
 # Return the git revision as a string
-- 
GitLab