diff --git a/setup.py b/setup.py index b0b4da1..512da5f 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def load_about(): setup( name="tutor-android", - version=ABOUT["__package_version__"], + version=ABOUT["__version__"], url="https://github.com/overhangio/tutor-android", project_urls={ "Code": "https://github.com/overhangio/tutor-android", diff --git a/tutorandroid/__about__.py b/tutorandroid/__about__.py index f7c197b..1722f39 100644 --- a/tutorandroid/__about__.py +++ b/tutorandroid/__about__.py @@ -1,9 +1,2 @@ __version__ = "16.0.0" -__package_version__ = __version__ - -# Handle version suffix for nightly, just like tutor core. -__version_suffix__ = "nightly" - -if __version_suffix__: - __version__ += "-" + __version_suffix__ diff --git a/tutorandroid/plugin.py b/tutorandroid/plugin.py index e044aa6..8d0d92f 100644 --- a/tutorandroid/plugin.py +++ b/tutorandroid/plugin.py @@ -7,9 +7,14 @@ import pkg_resources from tutor import hooks as tutor_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__ + config = { "unique": {"OAUTH2_SECRET": "{{ 24|random_string }}"}, "defaults": {