aboutcode-org / aboutcode-org/univers

Add major version property method to all univers versions that don't already have this

未关闭
#114 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
3-next enhancement
主要语言
Python
星标
50
派生
29
PR 合并指标
30 天内没有已合并 PR

描述

In connection with work on a [VulnerableCode issue ](https://github.com/nexB/vulnerablecode/issues/1228) involving affected vs. fixed package versions, I realized that we need to identify and compare the respective major versions of a wide range of package types, namespaces etc.

Some univers versions already have property methods for major, minor and patch (e.g., `SemverVersion` and `ConanVersion`) while most others (e.g., `MavenVersion`, which inherits from `Version`) do not. It would be useful to add at least a major version property method (or equivalent approach) to the `Version` class to facilitate the sorts of major version comparisons mentioned above.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。