aboutcode-org / aboutcode-org/univers

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

Đang mở
#114 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
3-next enhancement
Ngôn ngữ chính
Python
Star
50
Fork
29
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.