feat: simplify nightly version management

By pulling the version suffix from tutor, we avoid git conflicts when
merging the release branch in nightly.
This commit is contained in:
Régis Behmo 2023-11-20 17:39:47 +01:00
parent 3050ba0b68
commit 6394227a16
3 changed files with 6 additions and 8 deletions

View File

@ -26,7 +26,7 @@ ABOUT = load_about()
setup(
name="tutor-cairn",
version=ABOUT["__package_version__"],
version=ABOUT["__version__"],
url="https://github.com/overhangio/tutor-cairn",
project_urls={
"Code": "https://github.com/overhangio/tutor-cairn",

View File

@ -1,9 +1,2 @@
__version__ = "16.0.3"
__package_version__ = __version__
# Handle version suffix for nightly, just like tutor core.
__version_suffix__ = ""
if __version_suffix__:
__version__ += "-" + __version_suffix__

View File

@ -8,9 +8,14 @@ import click
import pkg_resources
from tutor import hooks
from tutor.__about__ import __version_suffix__
from .__about__ import __version__
# Handle version suffix in nightly mode, just like tutor core
if __version_suffix__:
__version__ += "-" + __version_suffix__
HERE = os.path.abspath(os.path.dirname(__file__))