_versions
_find_latest_version_or_422(versions)
¶
For PEP 440 versions, this is easy enough for the client to do (using the
packaginglibrary [...]. For non-standard versions, there is no well-defined ordering, and clients will need to decide on what rule is appropriate for their needs. (https://peps.python.org/pep-0700/#why-not-provide-a-latest-version-value)
The versions array is coming from the PyPI API, and its elements are
assumed parsable.
Source code in fractal_server/app/routes/aux/_versions.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
_version_sort_key(version)
¶
Returns a tuple used as (reverse) ordering key for TaskGroups in
get_task_group_list.
The parsable versions are the first in order, sorted according to the
sorting rules of packaging.version.Version.
Next in order we have the non-null non-parsable versions, sorted
alphabetically.
Source code in fractal_server/app/routes/aux/_versions.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | |