python-semanticversion
python-semanticversion copied to clipboard
Spec doesn't select expected version
Hi, I found that it would be nice to support the following case
In [64]: sv.Spec('>0.8.0').select([sv.Version('0.8.1')])
Out[64]:
Version('0.8.1')
In [65]: sv.Spec('>0.8').select([sv.Version('0.8.1')])
# Expected to get 0.8.1 but it returns None
I know there is version coercing, maybe we need to do the same coercing to the one in the spec ?
Thanks