python-semanticversion icon indicating copy to clipboard operation
python-semanticversion copied to clipboard

Spec doesn't select expected version

Open signalpillar opened this issue 9 years ago • 0 comments

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

signalpillar avatar Oct 15 '16 22:10 signalpillar