Include CMake workflow

This commit is contained in:
Cristian Le 2024-04-08 14:48:07 +02:00
parent 798fec8c79
commit cbfcfb8e7b
Failed to extract signature

View File

@ -14,6 +14,9 @@ BuildRequires: cmake
BuildRequires: ninja-build BuildRequires: ninja-build
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
# Project CMake dependencies
BuildRequires: catch-devel
BuildRequires: eigen3-devel
# Test dependencies from tests/requirements.txt # Test dependencies from tests/requirements.txt
# Cannot include the file because requirements are too constrained # Cannot include the file because requirements are too constrained
BuildRequires: python3dist(build) BuildRequires: python3dist(build)
@ -56,15 +59,20 @@ sed -i -E 's/,?\s*"ninja[^"]*"//' pyproject.toml
%build %build
%cmake
%cmake_build
# Also running pyproject_wheel to get python metadata files
%pyproject_wheel %pyproject_wheel
%install %install
%cmake_install
%pyproject_install %pyproject_install
%pyproject_save_files pybind11 %pyproject_save_files pybind11
%check %check
%ctest
%pytest %pytest