Skip to content

Commit

Permalink
Minor version check tweak (ignore + suffixes)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Sep 14, 2023
1 parent 9ff6713 commit ec7f568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bidscoin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def version(check: bool=False) -> Union[str, Tuple]:
except Exception as pypierror:
print(pypierror)
return __version__, None, '(Could not check https://pypi.org/pypi/bidscoin for new BIDScoin versions)'
if __version__ != pypiversion:
if __version__.split('+')[0] != pypiversion:
return __version__, False, f"NB: Your BIDScoin version is NOT up-to-date: {__version__} -> {pypiversion}"
else:
return __version__, True, 'Your BIDScoin version is up-to-date :-)'
Expand Down

0 comments on commit ec7f568

Please sign in to comment.