spiegel-keyman/linux/keyman-config/keyman_config/version.py.in
Eberhard Beilharz 4d81589f48
maint(common): use unique names for Keyman version variables
Previously the builder scripts defined a readonly `VERSION` environment
variable for the Keyman version. That caused problems when another
(external) script tried to define a `VERSION` variable. We encountered
this problem when trying to move the TC build steps of a configuration
into a single script (#13399) when we tried to source `~/.nvm/nvm.sh`.

This change uses a Keyman specific prefix for the version variables and
renames `VERSION` → `KEYMAN_VERSION` etc. Unfortunately these variables
are used in a lot of places, so this turned out to be a bit of a yak
shave.

Test-bot: skip
2025-05-07 18:46:51 +02:00

15 lines
571 B
Python

#!/usr/bin/python3
# Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
__version__ = "_KEYMAN_VERSION_"
__versionwithtag__ = "_KEYMAN_VERSION_WITH_TAG_"
__majorversion__ = "_KEYMAN_VERSION_MAJOR_"
__releaseversion__ = "_KEYMAN_VERSION_RELEASE_"
__tier__ = "_KEYMAN_TIER_"
__pkgversion__ = "(local)"
__environment__ = "_KEYMAN_VERSION_ENVIRONMENT_"
__uploadsentry__ = "_UPLOAD_SENTRY_"
__versiongittag__ = "_KEYMAN_VERSION_GIT_TAG_"