Open Anti-Distinctlyminty opened 2 months ago
This is expected AFAIK:
>>> ver_range = rez.version.VersionRange('houdini-19+<=20.5')
>>> ver_range.contains_version(rez.version.Version('20.5.278'))
False
20.5.278 is greater than 20.5 here.
Fair enough. Might be a point for the docs, unless I'm the only one who was caught out by this :)
Sure thing @Anti-Distinctlyminty. Would you like to submit a pull request to improve our docs in that area?
Absolutely. I'll add it to my todo list :)
@Anti-Distinctlyminty Would you like to proceed with a PR, or should I close this issue?
The weak requirement
~houdini-19+<=20.5
causes a conflict when using the packagehoudini-20.5
.I thought that by default if a minor/patch version is not specified, then it means "all are ok". But this appears to not be the case.
Environment
To Reproduce
houdini-20.5
, the other with the requirement~houdini-19+<=20.5
.rez-env
Expected behavior
houdini-20.5
should be accepted by the requirement~houdini-19+<=20.5
.Actual behavior