Skip to content

Dependencies list is messy #40

@malik-irain

Description

@malik-irain

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions