diff --git a/CMakeLists.txt b/CMakeLists.txt index e6b9227..b0f98d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ message(STATUS "xtensor-python v${${PROJECT_NAME}_VERSION}") # Dependencies # ============ -set(xtensor_REQUIRED_VERSION 0.26.0) +set(xtensor_REQUIRED_VERSION 0.27.0) if(TARGET xtensor) set(xtensor_VERSION ${XTENSOR_VERSION_MAJOR}.${XTENSOR_VERSION_MINOR}.${XTENSOR_VERSION_PATCH}) # Note: This is not SEMVER compatible comparison @@ -48,7 +48,7 @@ endif() find_package(Python COMPONENTS Interpreter REQUIRED) -set(pybind11_REQUIRED_VERSION 2.6.1) +set(pybind11_REQUIRED_VERSION 3.0.0) if (NOT TARGET pybind11::headers) # Defaults to ON for cmake >= 3.18 # https://github.com/pybind/pybind11/blob/35ff42b56e9d34d9a944266eb25f2c899dbdfed7/CMakeLists.txt#L96 diff --git a/environment-dev.yml b/environment-dev.yml index 876678b..4d3b27b 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -6,7 +6,7 @@ dependencies: - cmake - ninja # Host dependencies - - xtensor>=0.26,<0.27 + - xtensor>=0.27,<0.28 - numpy>=2.0 - pybind11>=2.12.0,<4 # Test dependencies diff --git a/test_python/setup.py b/test_python/setup.py index 58dbd2d..895f60d 100644 --- a/test_python/setup.py +++ b/test_python/setup.py @@ -78,8 +78,8 @@ def cpp_flag(compiler): """Return the -std=c++17 compiler flag and errors when the flag is no available. """ - if has_flag(compiler, '-std=c++17'): - return '-std=c++17' + if has_flag(compiler, '-std=c++20'): + return '-std=c++20' else: raise RuntimeError('C++17 support is required by xtensor!') @@ -104,7 +104,7 @@ def build_extensions(self): opts.append('-fvisibility=hidden') elif ct == 'msvc': opts.append('/DVERSION_INFO=\\"%s\\"' % self.distribution.get_version()) - opts.append('/std:c++17') + opts.append('/std:c++20') for ext in self.extensions: ext.extra_compile_args = opts build_ext.build_extensions(self)