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 286acda commit b5c266e
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 @@ -16,7 +16,7 @@

setup(
name="tutor-discovery",
version=about["__version__"],
version=about["__package_version__"],
url="https://docs.tutor.overhang.io/",
project_urls={
"Documentation": "https://docs.tutor.overhang.io/",
Expand Down
1 change: 1 addition & 0 deletions tutordiscovery/__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 b5c266e

Please sign in to comment.