From 56696de37fc23dc72f79d45af85e955bbf9db5a1 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 +- tutornotes/__about__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 00cfe52..b32ce31 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( name="tutor-notes", - version=about["__version__"], + version=about["__package_version__"], url="https://docs.tutor.overhang.io/", project_urls={ "Documentation": "https://docs.tutor.overhang.io/", diff --git a/tutornotes/__about__.py b/tutornotes/__about__.py index c1d7120..856e0a9 100644 --- a/tutornotes/__about__.py +++ b/tutornotes/__about__.py @@ -1,4 +1,5 @@ __version__ = "16.0.1" +__package_version__ = __version__ # Handle version suffix for nightly, just like tutor core. __version_suffix__ = ""