Update base user environment to mambaforge 22.11.1-4

shift some duplicated code into utility functions and constants
This commit is contained in:
Min RK
2023-03-21 14:21:00 +01:00
parent fcf6164e31
commit 1a3c48a500
4 changed files with 120 additions and 54 deletions

View File

@@ -59,3 +59,12 @@ def get_plugin_manager():
pm.load_setuptools_entrypoints("tljh")
return pm
def parse_version(version_string):
"""Parse version string to tuple
Finds all numbers and returns a tuple of ints
_very_ loose version parsing, like the old distutils.version.LooseVersion
"""
return tuple(int(part) for part in version_string.split("."))