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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pytest-cmake
3
- Version: 0.11.0
3
+ Version: 0.11.1
4
4
  Summary: Provide CMake module for Pytest
5
5
  Project-URL: Documentation, https://python-cmake.github.io/pytest-cmake
6
6
  Project-URL: Repository, https://github.com/python-cmake/pytest-cmake
@@ -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
- # Create a custom target to run the tests.
109
- add_custom_target(
110
- ${NAME} ALL VERBATIM
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.0"
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"
@@ -60,7 +60,7 @@ class CreateCmakeConfig(install):
60
60
 
61
61
  setup(
62
62
  name="pytest-cmake",
63
- version="0.11.0",
63
+ version="0.11.1",
64
64
  data_files=[
65
65
  (
66
66
  "share/Pytest/cmake",
File without changes
File without changes
File without changes