SPDX validation should consider arbitrary expressions in format `<KNOWN-LICENSE-ID>"+"` as valid
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện các ví dụ get_spdx_licensing().validate() cho CDDL-1.0+ và MIT OR CDDL-1.0+, sau đó theo dõi cách parser và validator xử lý các khóa giấy phép. Hoàn tất khi cả hai biểu thức đều được xác thực mà không có lỗi và tạo ra các biểu thức đã chuẩn hóa vẫn giữ lại dấu + ở cuối.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
SPDX license expression allow the following Simple license expressions:
An SPDX License List Short Form Identifier with a unary "+" operator suffix to represent the current version of the license or any later version. For example:
CDDL-1.0+
spec & docs:
- https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/#simple-license-expressions
- https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/#d3-simple-license-expressions
request
make the validator and parser support SPDX License Identifiers with a + at the end.
reproduce
I tested with exactly this example CDDL-1.0+ value, but got a negative, where I expected a positive:
tested with license-expression==30.4.1
>>> from license_expression import get_spdx_licensing
>>> lic = get_spdx_licensing()
>>> lic.validate('CDDL-1.0')
ExpressionInfo(
original_expression='CDDL-1.0',
normalized_expression='CDDL-1.0',
errors=[],
invalid_symbols=[]
)
>>> lic.validate('CDDL-1.0+')
ExpressionInfo(
original_expression='CDDL-1.0+',
normalized_expression=None,
errors=['Unknown license key(s): CDDL-1.0+'],
invalid_symbols=['CDDL-1.0+']
)
>>> lic.validate('MIT OR CDDL-1.0+')
ExpressionInfo(
original_expression='MIT OR CDDL-1.0+',
normalized_expression=None,
errors=['Unknown license key(s): CDDL-1.0+'],
invalid_symbols=['CDDL-1.0+']
)
- Ngôn ngữ chính
- Python
- Star
- 74
- Fork
- 38
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aboutcode-org/license-expression
-
Bump setuptools dependency and remove wheel dependencyCó thể đã có người làm @devnishantt đã nhận 35 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
aboutcode-org/license-expression#132 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
aboutcode-org/license-expression#124 · 3 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
aboutcode-org/license-expression#121 · 5 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
aboutcode-org/license-expression#120 · 2 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
aboutcode-org/license-expression#111 · 4 bình luận ·
Tất cả issue của aboutcode-org/license-expression
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
huggingface/smolagents#3106 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:scripts area:tests bug priority:later
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Ikalus1988/MisakaNet#4358 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Discovered ports from service discovery are never propagated to modules in Module.load()Có thể đã có người làm @vishalmore90 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OWASP/Nettacker#1828 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
aws-samples/sample-per-model-bedrock#708 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100