Gentoo/Alpine version doesn't implement `<=` or `>=` correctly
@xovishnukosuri がすでに取り組んでいます。
2026年3月14日 から。
評価
調査の方向性
Locate the GentooVersion and AlpineVersion comparison implementations and reproduce the examples from the issue. Check how le and ge relate to the working < and > comparisons, then add coverage for the shown versions; done means both operators return the expected results for these comparisons.
索引モデルが issue の本文から書いたものです。
説明
I've noticed an issue with the comparisons with GentooVersion and AlpineVersion:
>>> 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
- 主要言語
- Python
- スター
- 50
- フォーク
- 31
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/univers のほかの issue
-
Do not allow creation of `VersionRange` with empty constraint対応中かも @MGpromax が 69 日前に担当しました。 オープンbug High-Priority
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
aboutcode-org/univers#203 ·
-
maven.py: "release" qualifier not treated as release alias対応中かも @selsky が 74 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
aboutcode-org/univers#188 ·
-
VersionRange.invert() returns a complement that excludes versions outside an enumerated range対応中かも @akashrajeev が 16 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
aboutcode-org/univers#214 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 15/100
aboutcode-org/univers#206 · コメント 3 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
aboutcode-org/univers#205 ·
aboutcode-org/univers の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
elviskahoro/sdk-python-attio#144 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
RenyiELBO raises TypeError when model has no sample sites対応中かも @alibb007 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Four evaluation scripts unpack init_memmachine_params's five return values into three namesオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
MemMachine/MemMachine#1911 ·
メンテナーはふだん 3 日以内に返信