mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 09:06:52 +00:00
Add support for operator != in package version (mostly for pytorch resolving)
This commit is contained in:
parent
e28048dc25
commit
3f7a4840cc
@ -278,6 +278,8 @@ class SimpleVersion:
|
|||||||
return version_a_key > version_b_key
|
return version_a_key > version_b_key
|
||||||
if op == '<':
|
if op == '<':
|
||||||
return version_a_key < version_b_key
|
return version_a_key < version_b_key
|
||||||
|
if op == '!=':
|
||||||
|
return version_a_key != version_b_key
|
||||||
raise ValueError('Unrecognized comparison operator [{}]'.format(op))
|
raise ValueError('Unrecognized comparison operator [{}]'.format(op))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user