Try fixing version information for pyinstaller packaging

This commit is contained in:
Fabian 2022-09-29 16:50:06 +02:00
parent 675c456cfe
commit 5584eb4d6b
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@ prepare:
- echo "WINDOWS_AMD64_BINARY=fime_windows_amd64_${VERSION}" | tee -a build.env
- echo "PACKAGE_REGISTRY_URL=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/fime/${VERSION}" | tee -a build.env
artifacts:
paths:
- src/fime/_version.py
reports:
dotenv: build.env

View File

@ -1,5 +1,5 @@
try:
from _version import __version__, __version_tuple__
from fime._version import __version__, __version_tuple__
except ImportError:
__version__ = version = '1.0.0.dev0'
__version_tuple__ = version_tuple = (1, 0, 0, 'dev0')