Merge branch 'pybind:master' into master

This commit is contained in:
Steve R. Sun 2023-02-17 07:47:55 +08:00 committed by GitHub
commit 47ff113092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

View File

@ -83,9 +83,6 @@ jobs:
- name: Update CMake - name: Update CMake
uses: jwlawson/actions-setup-cmake@v1.13 uses: jwlawson/actions-setup-cmake@v1.13
# TEMPORARILY pin version because 3.26.0-rc1 is failing under macOS:
with:
cmake-version: '3.25.2'
- name: Cache wheels - name: Cache wheels
if: runner.os == 'macOS' if: runner.os == 'macOS'
@ -1074,9 +1071,6 @@ jobs:
- name: Update CMake - name: Update CMake
uses: jwlawson/actions-setup-cmake@v1.13 uses: jwlawson/actions-setup-cmake@v1.13
# TEMPORARILY pin version because 3.26.0-rc1 is failing under macOS:
with:
cmake-version: '3.25.2'
- name: Run pip installs - name: Run pip installs
run: | run: |

View File

@ -1,3 +1,4 @@
prune tests
recursive-include pybind11/include/pybind11 *.h recursive-include pybind11/include/pybind11 *.h
recursive-include pybind11 *.py recursive-include pybind11 *.py
recursive-include pybind11 py.typed recursive-include pybind11 py.typed

View File

@ -36,10 +36,14 @@ endfunction()
function(_download_catch version destination_dir) function(_download_catch version destination_dir)
message(STATUS "Downloading catch v${version}...") message(STATUS "Downloading catch v${version}...")
set(url https://github.com/philsquared/Catch/releases/download/v${version}/catch.hpp) set(url https://github.com/philsquared/Catch/releases/download/v${version}/catch.hpp)
file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status) file(
DOWNLOAD ${url} "${destination_dir}/catch.hpp"
STATUS status
LOG log)
list(GET status 0 error) list(GET status 0 error)
if(error) if(error)
message(FATAL_ERROR "Could not download ${url}") string(REPLACE "\n" "\n " log " ${log}")
message(FATAL_ERROR "Could not download URL:\n" " ${url}\n" "Log:\n" "${log}")
endif() endif()
set(CATCH_INCLUDE_DIR set(CATCH_INCLUDE_DIR
"${destination_dir}" "${destination_dir}"