You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
returning something like this {'range_desc': '<=2.0.0,1.0.0+', 'range_upper_desc': '<=2.0.0', 'range_upper_desc_prefix': '<=', 'range_upper_desc_version': '2.0.0', 'range_lower_desc': '1.0.0+', 'range_lower_desc_prefix': None, 'range_lower_desc_version': '1.0.0'}
Actual behavior
Traceback (most recent call last):
File "xxx/python/test_regex.py", line 16, in <module>
parser = _VersionRangeParser("<=2.0.0,1.0.0+",True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "xxx/.venv/lib/python3.11/site-packages/rez/version/_version.py", line 684, in __init__
raise ParseException("Syntax error in version range '%s'" % part)
rez.version._util.ParseException: Syntax error in version range '<=2.0.0,1.0.0+'
The text was updated successfully, but these errors were encountered:
Ok thanks for th additional info. I'll keep it open for a while, but I don't have the time to investigate if it's normal or not. Because it's an internal class and nobody has reported issues with public facing functions and classes, it's highly likely that it'll never be fixed (if it's a bug).
_VersionRangeParser regex don't match
range_desc
example see the "To Reproduce"section.Environment
To Reproduce
Expected behavior
returning something like this
{'range_desc': '<=2.0.0,1.0.0+', 'range_upper_desc': '<=2.0.0', 'range_upper_desc_prefix': '<=', 'range_upper_desc_version': '2.0.0', 'range_lower_desc': '1.0.0+', 'range_lower_desc_prefix': None, 'range_lower_desc_version': '1.0.0'}
Actual behavior
The text was updated successfully, but these errors were encountered: