[FR]: Integrated ctest and other project improvements

未关闭
#5,095 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
技术栈
cmake, cpp, python

调研方向

首先阅读项目的 CMakeLists.txt 文件和 ci.yaml,以了解当前的构建和测试路径。尝试报告中的 python3 -m build 加 pytest 工作流,并检查 CTest 如何覆盖原生项目。完成的要求是确定一个范围,涵盖标准化测试以及选定的 CMake 或打包改进。

由索引模型根据 Issue 内容生成。

描述

triage
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 use ctest --build-and-test to test native CMake projects. For some inspiration, here is a template I have.
  • Building and testing from sdist is not possible, i.e.: python3 -m build + pytest
  • Usage of custom Find<Package>.cmake when 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.txt files 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pybind/pybind11 的其他 Issue

查看 pybind/pybind11 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。