aboutcode-org / aboutcode-org/univers
Gentoo/Alpine version doesn't implement `<=` or `>=` correctly
Aberta
- Linguagem predominante
- Python
- Estrelas
- 50
- Forks
- 29
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.