From f38f473fd4551c577ed191aa855f30ba9b40c48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 26 May 2023 16:28:10 +0200 Subject: [PATCH] chore: handle nightly version numbers Here, we make it possible to add a "-nightly" suffix to the package version. This suffix will find its way to the Docker image tags. Thus, the nightly branch will have different image tags. This will resolve some confusion, as image tags are currently identical in nightly and master. --- tutornotes/__about__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tutornotes/__about__.py b/tutornotes/__about__.py index 61b184b..8665bae 100644 --- a/tutornotes/__about__.py +++ b/tutornotes/__about__.py @@ -1 +1,7 @@ __version__ = "15.0.4" + +# Handle version suffix for nightly, just like tutor core. +__version_suffix__ = "" + +if __version_suffix__: + __version__ += "-" + __version_suffix__