Skip to content

Commit

Permalink
fix: nightly package version
Browse files Browse the repository at this point in the history
The package version may not include the "-nightly" suffix. Otherwise,
`pip install .` fails with:

    setuptools.extern.packaging.version.InvalidVersion: Invalid version: '...-nightly'
  • Loading branch information
regisb committed Sep 7, 2023
1 parent f2fb568 commit 06feeb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tutorandroid/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__version__ = "16.0.0"
__package_version__ = __version__

# Handle version suffix for nightly, just like tutor core.
__version_suffix__ = ""
Expand Down

0 comments on commit 06feeb0

Please sign in to comment.