diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-02-14 11:04:36 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-02-14 15:36:34 +0100 |
commit | ea2a57bee3506c8a724034c3ba0de2c87b47173b (patch) | |
tree | 347b206885a81679b6d0916538b7c8c0249ebca1 /src/ukify | |
parent | docs: Use v255~rc1 instead of v255-rc1 (diff) | |
download | systemd-ea2a57bee3506c8a724034c3ba0de2c87b47173b.tar.xz systemd-ea2a57bee3506c8a724034c3ba0de2c87b47173b.zip |
meson: Start adding devel and rc suffixes to the project version
Let's make sure that versions generated by meson-vcs-tag.sh always
sort higher than official and stable releases. We achieve this by
immediately updating the meson version in meson.build after a new
release. To make sure this version always sorts lower than future
rcs, we suffix it with "~devel" which will sort lower than "~rcX".
The new release workflow is to update the version in meson.build
for each rc and the official release and to also update the version
number after a new release to the next development version.
The full version is exposed as PROJECT_VERSION_FULL and used where
it makes sense over PROJECT_VERSION.
We also switch to reading the version from a meson.version file in
the repo instead of hardcoding it in meson.build. This makes it
easier to access both inside and outside of the project.
The meson-vcs-tag.sh script is rewritten to query the version from
meson.version instead of passing it in via the command line. This
makes it easier to use outside of systemd since users don't have to
query the version themselves first.
Diffstat (limited to 'src/ukify')
-rwxr-xr-x | src/ukify/ukify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index efa780992f..e5724c8ac2 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -50,7 +50,7 @@ from typing import (Any, import pefile # type: ignore -__version__ = '{{PROJECT_VERSION}} ({{GIT_VERSION}})' +__version__ = '{{PROJECT_VERSION_FULL}} ({{GIT_VERSION}})' EFI_ARCH_MAP = { # host_arch glob : [efi_arch, 32_bit_efi_arch if mixed mode is supported] |