From 06feeb087e3a90ff0a4635df67fa7e61cafe8e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Thu, 7 Sep 2023 18:39:53 +0200 Subject: [PATCH] fix: nightly package version The package version may not include the "-nightly" suffix. Otherwise, `pip install .` fails with: setuptools.extern.packaging.version.InvalidVersion: Invalid version: '...-nightly' --- setup.py | 2 +- tutorandroid/__about__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ebf6f51..ef5f708 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def load_about(): setup( name="tutor-android", - version=ABOUT["__version__"], + version=ABOUT["__package_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 60b692a..6d477ab 100644 --- a/tutorandroid/__about__.py +++ b/tutorandroid/__about__.py @@ -1,4 +1,5 @@ __version__ = "16.0.0" +__package_version__ = __version__ # Handle version suffix for nightly, just like tutor core. __version_suffix__ = ""