It depends on pymodaq_utils but need pymodaq here:
|
|
|
def get_pymodaq_version(): |
|
"""Obtain pymodaq version from the VERSION file |
|
|
|
Follows the layout from the packaging tool hatch, hatchling |
|
""" |
|
from pymodaq import __version__ |
|
try: |
|
version = Version(__version__) |
|
except InvalidVersion as e: |
|
DEFAULT_PATTERN = r'(?i)^(__version__|VERSION) *= *([\'"])v?(?P<version>.+?)\2' |
|
match = re.search(DEFAULT_PATTERN, version, flags=re.MULTILINE) |
|
groups = match.groupdict() |
|
if 'version' not in groups: |
|
raise ValueError('no group named `version` was defined in the pattern') |
|
version = Version(groups['version']) |
|
return version |
I feel like it makes more sense having rewriting this as a component inside pymodaq than a real standalone package that would depends on pymodaq
@seb5g
It depends on pymodaq_utils but need pymodaq here:
pymodaq_plugin_manager/src/pymodaq_plugin_manager/utils.py
Lines 281 to 297 in b38ccdc
I feel like it makes more sense having rewriting this as a component inside pymodaq than a real standalone package that would depends on pymodaq
@seb5g