aboutcode-org / aboutcode-org/univers
Gentoo/Alpine version doesn't implement `<=` or `>=` correctly
Open
- Dominant language
- Python
- Stars
- 50
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
I've noticed an issue with the comparisons with GentooVersion and AlpineVersion:
```python
>>> from univers.versions import GentooVersion
>>> v1 = GentooVersion('1.2.0-r0')
>>> v2 = GentooVersion('1.10.0-r0')
>>>
>>> v1 < v2
True # correct
>>> v1 <= v2
False # wrong
>>> v1 > v2
False # correct
>>> v1 >= v2
True # wrong
```
It seems like it's falling back to a string comparison for the `__ge__`/`__le__` methods
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.