aboutsummaryrefslogtreecommitdiffstats
path: root/release/cibuild.py
diff options
context:
space:
mode:
Diffstat (limited to 'release/cibuild.py')
-rwxr-xr-xrelease/cibuild.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/release/cibuild.py b/release/cibuild.py
index 8ff6f9b6..2e543f1d 100755
--- a/release/cibuild.py
+++ b/release/cibuild.py
@@ -13,6 +13,7 @@ import zipfile
import click
import cryptography.fernet
+import parver
@contextlib.contextmanager
@@ -181,6 +182,14 @@ class BuildEnviron:
return self.docker_username and self.docker_password
@property
+ def is_prod_release(self) -> bool:
+ try:
+ v = parver.Version.parse(self.version)
+ except (parver.ParseError, BuildError):
+ return False
+ return not v.is_prerelease
+
+ @property
def is_pull_request(self) -> bool:
if self.appveyor_pull_request_number:
return True