pytest-cmake 1.0.0__tar.gz → 1.1.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.
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/PKG-INFO +1 -1
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/pyproject.toml +7 -3
- pytest_cmake-1.1.0/src/pytest_cmake/__init__.py +0 -0
- pytest_cmake-1.1.0/src/pytest_cmake/__main__.py +29 -0
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/.gitignore +0 -0
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/LICENSE +0 -0
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/README.md +0 -0
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/build_config.py +0 -0
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/cmake/FindPytest.cmake +0 -0
- {pytest_cmake-1.0.0 → pytest_cmake-1.1.0}/cmake/PytestAddTests.cmake +0 -0
@@ -7,7 +7,7 @@ build-backend = "hatchling.build"
|
|
7
7
|
|
8
8
|
[project]
|
9
9
|
name = "pytest-cmake"
|
10
|
-
version = "1.
|
10
|
+
version = "1.1.0"
|
11
11
|
description = "Provide CMake module for Pytest"
|
12
12
|
readme = "README.md"
|
13
13
|
requires-python = ">=3.7, <4"
|
@@ -33,6 +33,9 @@ classifiers = [
|
|
33
33
|
"Programming Language :: Python :: 3.13",
|
34
34
|
]
|
35
35
|
|
36
|
+
[project.scripts]
|
37
|
+
pytest-cmake = "pytest_cmake.__main__:main"
|
38
|
+
|
36
39
|
[project.urls]
|
37
40
|
Documentation = "https://python-cmake.github.io/pytest-cmake"
|
38
41
|
Repository = "https://github.com/python-cmake/pytest-cmake"
|
@@ -50,7 +53,8 @@ path = "build_config.py"
|
|
50
53
|
"cmake/PytestAddTests.cmake" = "share/Pytest/cmake/PytestAddTests.cmake"
|
51
54
|
|
52
55
|
[tool.hatch.build.targets.wheel]
|
53
|
-
|
56
|
+
packages = ["src/pytest_cmake"]
|
57
|
+
only-include = ["src/pytest_cmake", "*.cmake"]
|
54
58
|
|
55
59
|
[tool.hatch.build.targets.sdist]
|
56
|
-
only-include = ["cmake", "build_config.py"]
|
60
|
+
only-include = ["src/pytest_cmake", "cmake", "build_config.py"]
|
File without changes
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import argparse
|
2
|
+
from pathlib import Path
|
3
|
+
import sys
|
4
|
+
import sysconfig
|
5
|
+
|
6
|
+
|
7
|
+
def main(argv=None) -> int:
|
8
|
+
parser = argparse.ArgumentParser(
|
9
|
+
prog="pytest-cmake",
|
10
|
+
description="Utility commands for pytest-cmake packaging.",
|
11
|
+
)
|
12
|
+
parser.add_argument(
|
13
|
+
"--cmake_dir", "--cmake-dir",
|
14
|
+
action="store_true",
|
15
|
+
help="Print the CMake config directory path and exit.",
|
16
|
+
)
|
17
|
+
args = parser.parse_args(argv)
|
18
|
+
|
19
|
+
if args.cmake_dir:
|
20
|
+
data_root = Path(sysconfig.get_path("data"))
|
21
|
+
print(data_root / "share" / "Pytest" / "cmake")
|
22
|
+
return 0
|
23
|
+
|
24
|
+
parser.print_help()
|
25
|
+
return 0
|
26
|
+
|
27
|
+
|
28
|
+
if __name__ == "__main__":
|
29
|
+
sys.exit(main())
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|