Skip to content

Commit

Permalink
- Fix(?) version parsing for PiWheels
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Sep 4, 2024
1 parent e9a2ba1 commit a534c75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def python3_range() -> str:
try:
_ = setuptools._vendor.packaging.version.Version(__version__)
except Exception:
__version__ = '0.0.0'
if "." in __version__: # If __version__ was replaced by GitHub Actions, but could not be converted to a version
__version__ = 'VERSIONADDEDBYGITHUB' # Will be replaced by GitHub Actions with actual version number
else:
__version__ = "0.0.0" # If __version__ was not replaced by GitHub Actions, set to 0.0.0

setuptools.setup(
name=__title__,
Expand Down

0 comments on commit a534c75

Please sign in to comment.