Skip to content

Commit 0a1f238

Browse files
authored
Add compatibility with CMake 4.1 (#58)
1 parent 2147948 commit 0a1f238

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
pytest: [ "7", "8" ]
20-
cmake: [ "3.20", "3.30" ]
20+
cmake: [ "3.20", "4.1" ]
2121
os: [ "ubuntu", "macos", "windows" ]
22-
python: [ "3.8", "3.11", "3.12" ]
22+
python: [ "3.8", "3.12", "3.13" ]
2323
bundled: [ false, true ]
2424

2525
name: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Pytest CMake
22

33
[![PyPi version](https://img.shields.io/pypi/v/pytest-cmake.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.python.org/pypi/pytest-cmake)
4-
[![CMake](https://img.shields.io/badge/CMake-3.20...3.30-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
4+
[![CMake](https://img.shields.io/badge/CMake-3.20...4.1-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
55
[![Test](https://github.com/python-cmake/pytest-cmake/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/python-cmake/pytest-cmake/actions/workflows/test.yml)
66
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
77

build_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def initialize(self, version, build_data):
3333
stream.write(
3434
"include(CMakePackageConfigHelpers)\n"
3535
"write_basic_package_version_file(\n"
36-
f" \"{str(version_config_path)}\"\n"
36+
f" \"{str(version_config_path.as_posix())}\"\n"
3737
f" VERSION {pytest.__version__}\n"
3838
" COMPATIBILITY AnyNewerVersion\n"
3939
")"

cmake/FindPytest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# prepend a custom search path.
1818
# (https://cmake.org/cmake/help/latest/policy/CMP0074.html)
1919

20-
cmake_minimum_required(VERSION 3.20...3.30)
20+
cmake_minimum_required(VERSION 3.20...4.1)
2121

2222
include(FindPackageHandleStandardArgs)
2323

cmake/PytestAddTests.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Wrapper used to create individual CTest tests from Pytest tests.
2-
cmake_minimum_required(VERSION 3.20...3.30)
2+
cmake_minimum_required(VERSION 3.20...4.1)
33

44
if(CMAKE_SCRIPT_MODE_FILE)
55

doc/release/release_notes.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
Release Notes
55
*************
66

7+
.. release:: Upcoming
8+
9+
.. change:: new
10+
11+
Added compatibility with CMake 4.1.
12+
13+
714
.. release:: 0.13.0
815
:date: 2025-02-16
916

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"hatchling >= 1.4; python_version >= '3'",
44
"setuptools >= 44; python_version < '3'",
5-
"cmake >= 3.20, < 3.31"
5+
"cmake >= 3.20, < 4.2"
66
]
77
build-backend = "build_backend"
88
backend-path = ["."]

0 commit comments

Comments
 (0)