aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2022-01-28 09:22:37 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-28 10:22:29 +0000
commitfaf68094cb8a6719582dd54b59cafb5500fc4af1 (patch)
treee30db92fc03e0693ebc12f177ef91f75dee66fa4 /build_scripts
parentf9447722afe6911ef705994abc31970d7a004414 (diff)
Allow empty PRE_RELEASE_VERSION for release wheels
Change-Id: If53fb034ee0c62b25e9a672ff687a0e1f4c592f4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 1966aae5401de5129f571fdb5bb1d9b1e69ab143) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'build_scripts')
-rw-r--r--build_scripts/wheel_utils.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/build_scripts/wheel_utils.py b/build_scripts/wheel_utils.py
index bfff47f04..6f42e004d 100644
--- a/build_scripts/wheel_utils.py
+++ b/build_scripts/wheel_utils.py
@@ -85,13 +85,14 @@ def get_package_version():
patch_version = d['pyside_MICRO_VERSION']
final_version = f"{major_version}.{minor_version}.{patch_version}"
- release_version_type = d['pyside_PRE_RELEASE_VERSION_TYPE']
- pre_release_version = d['pyside_PRE_RELEASE_VERSION']
+ release_version_type = d.get('pyside_PRE_RELEASE_VERSION_TYPE')
+ pre_release_version = d.get('pyside_PRE_RELEASE_VERSION')
+
if pre_release_version and release_version_type:
final_version = f"{final_version}{release_version_type}{pre_release_version}"
- if release_version_type.startswith("comm"):
- final_version = f"{final_version}.{release_version_type}"
+ if release_version_type.startswith("comm"):
+ final_version = f"{final_version}.{release_version_type}"
# Add the current timestamp to the version number, to suggest it
# is a development snapshot build.