Bug: `setup.cfg` `install_requires` on the same line as the key is not read
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python, typescript
调研方向
从 src/core-open/scanners/python-scanner.ts 中的 parseSetupCfg 开始,查看 install_requires 是如何被匹配的,以及每个条目如何传递给 parseRequirementLine。在现有测试旁添加或扩展 Python 清单测试,检查同一行、续行以及换行后缩进的形式,同时确认 python_requires 保持不变。完成标准是报告所有列出的包,并且现有形式仍然通过。
由索引模型根据 Issue 内容生成。
描述
- Difficulty: small
- Area: Python scanner
Problem
parseSetupCfg in src/core-open/scanners/python-scanner.ts (around line 1148) only matches a multiline indented list:
const installReqMatch = optionsSection[1]!.match(/install_requires\s*=\s*\n((?:\s+.*\n?)*)/);
The regex requires a newline after =. These common forms are dropped:
[options]
install_requires = requests>=2.31, flask>=3.0
[options]
install_requires = requests>=2.31
flask>=3.0
The already-supported form (value starts on the next line, one requirement per indented line) must keep working.
Expected behaviour
install_requires accepts a same-line list (comma-separated or a single requirement), a list that starts on the same line and continues with indented lines, and the current newline-then-indent form. Each entry is parsed with the existing parseRequirementLine helper.
Acceptance
- Tests live next to other Python manifest tests (for example a new
test/python-setup-cfg.test.ts, or cases intest/python-runtime-pin.test.ts). install_requires = requests>=2.31on one line reportsrequests.- A comma-separated same-line list reports every package.
- A value that starts on the same line and continues with indented lines reports every package.
- The current indented-only form still works.
python_requireson the same[options]section is unchanged.
- 主要语言
- TypeScript
- 星标
- 4
- 派生
- 3
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 76
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vibgrate/cli 的其他 Issue
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
相似的 Issue
-
area: documentation status: in progress type: documentation
难度 1/5 1 小时以内 新手友好度 76/100
Oddmash/oddmash-ui#222 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
appium/appium-wincore-driver#169 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
india-ultimate/hub#715 ·
维护者通常 1 天内回复
-
documentation Entwickler
难度 1/5 1 小时以内 新手友好度 89/100
维护者通常 1 天内回复