mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Update base user environment to mambaforge 22.11.1-4
shift some duplicated code into utility functions and constants
This commit is contained in:
@@ -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("."))
|
||||
|
||||
Reference in New Issue
Block a user