Skip to content

Commit aadb72a

Browse files
committed
Make commercial version string PEP 440 compliant
PEP 440 requires that local version segments be delimited with a + sign. Pick-to: 6.2 6.4 Fixes: PYSIDE-2229 Change-Id: I87f243b6cc5e036a23f2ec7235e9f35347a789eb Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Simo Fält <[email protected]>
1 parent 2942b9a commit aadb72a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build_scripts/wheel_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ def get_package_version():
5151
release_version_type = d.get('pyside_PRE_RELEASE_VERSION_TYPE')
5252
pre_release_version = d.get('pyside_PRE_RELEASE_VERSION')
5353

54-
if pre_release_version and release_version_type:
54+
if release_version_type and not release_version_type.startswith("comm") and pre_release_version:
5555
final_version = f"{final_version}{release_version_type}{pre_release_version}"
56-
57-
if release_version_type.startswith("comm"):
58-
final_version = f"{final_version}.{release_version_type}"
56+
if release_version_type and release_version_type.startswith("comm"):
57+
final_version = f"{final_version}+{release_version_type}"
5958

6059
# Add the current timestamp to the version number, to suggest it
6160
# is a development snapshot build.

0 commit comments

Comments
 (0)