Skip to content

Commit

Permalink
squashing a few bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Sep 23, 2023
1 parent d9ffd52 commit a00d0e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion iblrig/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools_scm import get_version
from pathlib import Path
from iblrig.constants import BASE_DIR
from importlib import metadata

__version__ = get_version(root='..', relative_to=__file__, version_scheme="post-release", local_scheme="dirty-tag",
__version__ = get_version(root=BASE_DIR, version_scheme="post-release", local_scheme="dirty-tag",
fallback_version=metadata.version('iblrig'), write_to=Path('iblrig', '_version.py'))
4 changes: 2 additions & 2 deletions iblrig/version_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def check_for_updates() -> tuple[bool, Union[str, None]]:
log.info('No update available.')
update_available = v_remote > v_local

return update_available, v_remote.base_version
return update_available, v_remote.base_version if v_remote else ''


def get_local_version() -> Union[version.Version, None]:
Expand Down Expand Up @@ -66,7 +66,7 @@ def get_remote_version() -> Union[version.Version, None]:
return None
try:
log.debug('Parsing local version string')
_remote_version = max([version.parse(v) for v in findall(r'/([\d.]+)', references)])
_remote_version = max([version.parse(v) for v in findall(r'/(\d+\.\d+\.\d+)', references)])
return _remote_version
except (version.InvalidVersion, TypeError):
log.error('Could not parse remote version string')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
"PySocks",
"PyYAML",
"scipy",
"setuptools_scm>8",
"setuptools_scm>8.0.2",
"sounddevice",
]

Expand Down

0 comments on commit a00d0e3

Please sign in to comment.