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'
This commit is contained in:
Régis Behmo 2023-09-07 18:39:53 +02:00
parent 54af15a686
commit c495970020
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -1,4 +1,5 @@
__version__ = "16.0.3"
__package_version__ = __version__
# Handle version suffix for nightly, just like tutor core.
__version_suffix__ = ""