[FR]: Integrated ctest and other project improvements
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- build-system, testing
调研方向
首先阅读项目的 CMakeLists.txt 文件和 ci.yaml,以了解当前的构建和测试路径。尝试报告中的 python3 -m build 加 pytest 工作流,并检查 CTest 如何覆盖原生项目。完成的要求是确定一个范围,涵盖标准化测试以及选定的 CMake 或打包改进。
由索引模型根据 Issue 内容生成。
描述
Problem description
When trying to work on https://github.com/pybind/pybind11/pull/5094, I have encountered a few issues:
- The project does not use
ctest. This makes it quite hard for packagers to find and run tests. In principle it should usectest --build-and-testto test native CMake projects. For some inspiration, here is a template I have. - Building and testing from
sdistis not possible, i.e.:python3 -m build+pytest - Usage of custom
Find<Package>.cmakewhen there are upstream packaging available with good CMake support:catch,eigen3 - In general, the CMake project can be improved among a few things: inverting the version detection to be defined in CMake, making the
CMakeLists.txtfiles more readable
I am using the ci.yaml to fill in the gaps about how to the testing, but it would be much appreciated if the project can use standardized tools.
- 主要语言
- C++
- 星标
- 18k
- 派生
- 2.3k
- 平均合并
- 5 天 7 小时
- 30 天内合并 PR
- 53
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pybind/pybind11 的其他 Issue
-
triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 4 天内回复
-
triage
难度 1/5 1 小时以内 新手友好度 62/100
pybind/pybind11#5604 · 1 条评论 ·
维护者通常 4 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 4 天内回复
-
docs
难度 2/5 1-3 小时 新手友好度 60/100
维护者通常 4 天内回复
-
array_t::at() returns a misaligned reference when the stride is not a multiple of alignof(T)可能已有人在做 @henryiii 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 4 天内回复
相似的 Issue
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
type:bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
tenstorrent/tt-umd#4084 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
ToffelsKater/X4_VR#34 ·
-
difficulty:easy prio:low refactor
难度 2/5 1-3 小时 新手友好度 72/100
NatronGitHub/openfx-supportext#220 ·
维护者通常 1 天内回复