SPDX Failing to parse license for no obvious reason
还没有人认领这个 Issue。
评估
调研方向
首先通过 get_spdx_licensing().parse() 运行报告中的 Python 示例,并将失败的“Sleepycat License”输入与两个正常工作的输入进行比较。跟踪 SPDX parser 对这些字符串的行为;完成标准是失败的表达式能够正确解析,同时不影响正常工作的情况。
由索引模型根据 Issue 内容生成。
描述
Hi license-expression. I must begin that this is a great piece of software, and I'm grateful for your contributions.
I noticed a strange edge case when using the spdx license parser. The parser raises an exception when I try to parse Sleepycat License but is fine with Sleepydog License or even Sleepyca License.
Reproducible example:
SPDX_LICENSING = license_expression.get_spdx_licensing()
# ExpressionParseError: Invalid symbols sequence such as (A B) for token: "License" at position: 10
_ = SPDX_LICENSING.parse('Sleepycat License')
# Works
_ = SPDX_LICENSING.parse('Sleepydog License')
_ = SPDX_LICENSING.parse('Sleepyca License')
Relevant versions installed via conda.
python 3.11.4 h47c9636_0_cpython conda-forge
license-expression 30.1.1 pyhd8ed1ab_0 conda-forge
Thanks in advance!
- 主要语言
- Python
- 星标
- 74
- 派生
- 38
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/license-expression 的其他 Issue
-
Bump setuptools dependency and remove wheel dependency可能已有人在做 @devnishantt 于 32 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 83/100
aboutcode-org/license-expression#132 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
aboutcode-org/license-expression#124 · 3 条评论 ·
-
难度 5/5 一周以上 新手友好度 30/100
aboutcode-org/license-expression#121 · 5 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 48/100
aboutcode-org/license-expression#120 · 2 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 42/100
aboutcode-org/license-expression#111 · 4 条评论 ·
查看 aboutcode-org/license-expression 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
NousResearch/hermes-agent#147104 ·
维护者通常 1 天内回复
-
premises-missing
难度 1/5 1 小时以内 新手友好度 88/100
WingedGuardian/GENesis-AGI#3801 ·
维护者通常 1 天内回复
-
[oblt-aw][autodoc] Document new required `shared-org-key` input for `obs-aw-dependency-review`可能已有人在做 @github-actions 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
bot-triaged module: inductor oncall: pt2 topic: fuzzer triaged
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 4 天内回复