diff options
Diffstat (limited to 'sources/pyside6/pyside_version.py')
-rw-r--r-- | sources/pyside6/pyside_version.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sources/pyside6/pyside_version.py b/sources/pyside6/pyside_version.py new file mode 100644 index 000000000..bd78d3316 --- /dev/null +++ b/sources/pyside6/pyside_version.py @@ -0,0 +1,19 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +major_version = "@pyside_MAJOR_VERSION@" +minor_version = "@pyside_MINOR_VERSION@" +patch_version = "@pyside_MICRO_VERSION@" + +# For example: "a", "b", "rc" +# (which means "alpha", "beta", "release candidate"). +# An empty string means the generated package will be an official release. +release_version_type = "@pyside_PRE_RELEASE_VERSION_TYPE@" + +# For example: "1", "2" (which means "beta1", "beta2", if type is "b"). +pre_release_version = "@pyside_PRE_RELEASE_VERSION@" + +if __name__ == '__main__': + # Used by CMake. + print(f'{major_version};{minor_version};{patch_version};' + f'{release_version_type};{pre_release_version}') |