pytest-cmake 0.8.1__tar.gz → 0.8.3__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.8.1
3
+ Version: 0.8.3
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
@@ -49,7 +49,7 @@ Description-Content-Type: text/markdown
49
49
  # Pytest CMake
50
50
 
51
51
  [![PyPi version](https://img.shields.io/pypi/v/pytest-cmake.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.python.org/pypi/pytest-cmake)
52
- [![CMake](https://img.shields.io/badge/CMake-3.20...3.29-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
52
+ [![CMake](https://img.shields.io/badge/CMake-3.20...3.30-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
53
53
  [![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)
54
54
  [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
55
55
 
@@ -1,7 +1,7 @@
1
1
  # Pytest CMake
2
2
 
3
3
  [![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.29-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
4
+ [![CMake](https://img.shields.io/badge/CMake-3.20...3.30-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
5
5
  [![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)
6
6
  [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
@@ -17,7 +17,7 @@
17
17
  # prepend a custom search path.
18
18
  # (https://cmake.org/cmake/help/latest/policy/CMP0074.html)
19
19
 
20
- cmake_minimum_required(VERSION 3.20...3.29)
20
+ cmake_minimum_required(VERSION 3.20...3.30)
21
21
 
22
22
  include(FindPackageHandleStandardArgs)
23
23
 
@@ -100,6 +100,14 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
100
100
  set(_BUNDLE_TESTS $ENV{BUNDLE_PYTHON_TESTS})
101
101
  endif()
102
102
 
103
+ # Serialize environment if necessary.
104
+ set(ENCODED_ENVIRONMENT "")
105
+ foreach(env ${_ENVIRONMENT})
106
+ string(REPLACE [[\]] [\\]] env ${env})
107
+ string(REPLACE [[;]] [\\;]] env ${env})
108
+ list(APPEND ENCODED_ENVIRONMENT ${env})
109
+ endforeach()
110
+
103
111
  set(_include_file "${CMAKE_CURRENT_BINARY_DIR}/${NAME}_include.cmake")
104
112
  set(_tests_file "${CMAKE_CURRENT_BINARY_DIR}/${NAME}_tests.cmake")
105
113
 
@@ -116,7 +124,7 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
116
124
  -D "PYTHON_PATH=${PYTHON_PATH}"
117
125
  -D "TRIM_FROM_NAME=${_TRIM_FROM_NAME}"
118
126
  -D "WORKING_DIRECTORY=${_WORKING_DIRECTORY}"
119
- -D "ENVIRONMENT=${_ENVIRONMENT}"
127
+ -D "ENVIRONMENT=${ENCODED_ENVIRONMENT}"
120
128
  -D "PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}"
121
129
  -D "CTEST_FILE=${_tests_file}"
122
130
  -P "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/PytestAddTests.cmake")
@@ -1,5 +1,5 @@
1
1
  # Wrapper used to create individual CTest tests from Pytest tests.
2
- cmake_minimum_required(VERSION 3.20...3.29)
2
+ cmake_minimum_required(VERSION 3.20...3.30)
3
3
 
4
4
  if(CMAKE_SCRIPT_MODE_FILE)
5
5
 
@@ -36,7 +36,6 @@ if(CMAKE_SCRIPT_MODE_FILE)
36
36
  )
37
37
 
38
38
  foreach(env ${ENVIRONMENT})
39
- encode_value(env)
40
39
  string(APPEND _content
41
40
  "set_tests_properties(\n"
42
41
  " \"${TEST_GROUP_NAME}\"\n"
@@ -118,7 +117,6 @@ if(CMAKE_SCRIPT_MODE_FILE)
118
117
  )
119
118
 
120
119
  foreach(env ${ENVIRONMENT})
121
- encode_value(env)
122
120
  string(APPEND _content
123
121
  "set_tests_properties(\n"
124
122
  " \"${test_name}\"\n"
@@ -9,7 +9,7 @@ backend-path = ["."]
9
9
 
10
10
  [project]
11
11
  name = "pytest-cmake"
12
- version = "0.8.1"
12
+ version = "0.8.3"
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.8.1",
63
+ version="0.8.3",
64
64
  data_files=[
65
65
  (
66
66
  "share/Pytest/cmake",
File without changes
File without changes