Use EasyBuild's LooseVersion to compare version numbers on software overview page#752
Use EasyBuild's LooseVersion to compare version numbers on software overview page#752boegel merged 14 commits intoEESSI:mainfrom
Conversation
|
Ran it locally, some diffs between the new and old version: |
|
Should we also reverse the ordering on the page itself, i.e. list newest versions first? We already do the same for the ldjson metadata. |
ocaisa
left a comment
There was a problem hiding this comment.
Looks ok to me, the test seems like it needs to be updated
Done in 4d5942c. |
|
Bit of work to do now to update the tests for the new ordering |
|
We might want to consider making the test failures a bit more helpful. My AI friend says |
|
Ran the test myself to get the diff, the generated output has: Ideally, I'd like to list the same version with a newer toolchain first, but I'll have to check if we can easily do that. edit: the metadata has a |
|
I sort of would have expected/preferred So I guess it is what it is. @ocaisa I think this should be ready now. |
I noticed that version numbers are currently sorted alphabetically on the software overview page, for software, extensions, and the ldjson metadata. This fixes it by using EB's LooseVersion. I tried using Python's
packaging.version.Versionand https://pypi.org/project/looseversion/, but they have issues with certain version numbers, e.g. LAMMPS 2Aug2023_update2.