pytest-cmake 0.11.0__tar.gz → 0.11.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/PKG-INFO +1 -1
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/cmake/FindPytest.cmake +6 -4
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/pyproject.toml +1 -1
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/setup.py +1 -1
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/.gitignore +0 -0
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/LICENSE +0 -0
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/README.md +0 -0
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/build_backend.py +0 -0
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/build_config.py +0 -0
- {pytest_cmake-0.11.0 → pytest_cmake-0.11.1}/cmake/PytestAddTests.cmake +0 -0
@@ -105,10 +105,9 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
|
|
105
105
|
set(_include_file "${CMAKE_CURRENT_BINARY_DIR}/${NAME}_include.cmake")
|
106
106
|
set(_tests_file "${CMAKE_CURRENT_BINARY_DIR}/${NAME}_tests.cmake")
|
107
107
|
|
108
|
-
|
109
|
-
|
110
|
-
${
|
111
|
-
BYPRODUCTS "${_tests_file}"
|
108
|
+
add_custom_command(
|
109
|
+
VERBATIM
|
110
|
+
OUTPUT "${_tests_file}"
|
112
111
|
DEPENDS ${_DEPENDS}
|
113
112
|
COMMAND ${CMAKE_COMMAND}
|
114
113
|
-D "PYTEST_EXECUTABLE=${PYTEST_EXECUTABLE}"
|
@@ -127,6 +126,9 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
|
|
127
126
|
-D "CTEST_FILE=${_tests_file}"
|
128
127
|
-P "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/PytestAddTests.cmake")
|
129
128
|
|
129
|
+
# Create a custom target to run the tests.
|
130
|
+
add_custom_target(${NAME} ALL DEPENDS ${_tests_file})
|
131
|
+
|
130
132
|
file(WRITE "${_include_file}"
|
131
133
|
"if(EXISTS \"${_tests_file}\")\n"
|
132
134
|
" include(\"${_tests_file}\")\n"
|
@@ -9,7 +9,7 @@ backend-path = ["."]
|
|
9
9
|
|
10
10
|
[project]
|
11
11
|
name = "pytest-cmake"
|
12
|
-
version = "0.11.
|
12
|
+
version = "0.11.1"
|
13
13
|
description = "Provide CMake module for Pytest"
|
14
14
|
readme = "README.md"
|
15
15
|
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|