pytest-cmake 0.8.3__tar.gz → 0.9.0__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.3
3
+ Version: 0.9.0
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
@@ -55,8 +55,8 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
55
55
 
56
56
  function(pytest_discover_tests NAME)
57
57
  cmake_parse_arguments(
58
- PARSE_ARGV 1 "" ""
59
- "WORKING_DIRECTORY;TRIM_FROM_NAME;BUNDLE_TESTS"
58
+ PARSE_ARGV 1 "" "STRIP_PARAM_BRACKETS;BUNDLE_TESTS"
59
+ "WORKING_DIRECTORY;TRIM_FROM_NAME"
60
60
  "LIBRARY_PATH_PREPEND;PYTHON_PATH_PREPEND;ENVIRONMENT;DEPENDS"
61
61
  )
62
62
 
@@ -123,8 +123,9 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
123
123
  -D "LIBRARY_PATH=${LIBRARY_PATH}"
124
124
  -D "PYTHON_PATH=${PYTHON_PATH}"
125
125
  -D "TRIM_FROM_NAME=${_TRIM_FROM_NAME}"
126
+ -D "STRIP_PARAM_BRACKETS=${_STRIP_PARAM_BRACKETS}"
126
127
  -D "WORKING_DIRECTORY=${_WORKING_DIRECTORY}"
127
- -D "ENVIRONMENT=${ENCODED_ENVIRONMENT}"
128
+ -D "ENVIRONMENT=${ENCODED_ENVIRONMENT}"
128
129
  -D "PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}"
129
130
  -D "CTEST_FILE=${_tests_file}"
130
131
  -P "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/PytestAddTests.cmake")
@@ -97,6 +97,10 @@ if(CMAKE_SCRIPT_MODE_FILE)
97
97
  set(test_name "${_func}")
98
98
  endif()
99
99
 
100
+ if (STRIP_PARAM_BRACKETS)
101
+ string(REGEX REPLACE "\\[(.+)\\]$" ".\\1" test_name "${test_name}")
102
+ endif()
103
+
100
104
  set(test_name "${TEST_GROUP_NAME}.${test_name}")
101
105
  set(test_case "${WORKING_DIRECTORY}/${line}")
102
106
 
@@ -2,14 +2,14 @@
2
2
  requires = [
3
3
  "hatchling >= 1.4; python_version >= '3'",
4
4
  "setuptools >= 44; python_version < '3'",
5
- "cmake >= 3.20, < 3.30"
5
+ "cmake >= 3.20, < 3.31"
6
6
  ]
7
7
  build-backend = "build_backend"
8
8
  backend-path = ["."]
9
9
 
10
10
  [project]
11
11
  name = "pytest-cmake"
12
- version = "0.8.3"
12
+ version = "0.9.0"
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.3",
63
+ version="0.9.0",
64
64
  data_files=[
65
65
  (
66
66
  "share/Pytest/cmake",
File without changes
File without changes
File without changes