mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-24 09:17:42 +00:00
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
15 lines
571 B
Python
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_"
|