icecube / skyllh

https://icecube.github.io/skyllh/
GNU General Public License v3.0
11 stars 5 forks source link

Add required tool version specification #181

Closed martwo closed 1 year ago

martwo commented 1 year ago

It should be possible to specify a specific, minimal, or maximal version of a required tool. This could be implemented by supporting a 2-element tuple for each tool where the first specified the name of the tool and the second element the required version.

Application for this would be "photospline" with version ">=2.2.0".

Supported comparisons should equal (==), less-or-equal-than (<=), and greater-or-equal-than (>=).

By specifying a tool twice with <= and >= a valid range of versions can be specified.

https://github.com/icecube/skyllh/blob/d48d412960c1172568dac63dbf396855ae897e6d/skyllh/core/tool.py#L67-L80