aboutcode-org / aboutcode-org/univers
Gentoo/Alpine version doesn't implement `<=` or `>=` correctly
Aperta
- Lingua principale
- Python
- Stelle
- 50
- Fork
- 29
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.