hatch-cpp 0.3.3__tar.gz → 0.3.4__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.
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/PKG-INFO +1 -1
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/__init__.py +1 -1
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/config.py +3 -1
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/toolchains/common.py +3 -1
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/pyproject.toml +2 -2
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/.gitignore +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/LICENSE +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/README.md +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/hooks.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/plugin.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_hatch_build.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_platform_specific.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_basic/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_basic/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_basic/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_basic/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/CMakeLists.txt +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/Makefile +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/project/include/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/CMakeLists.txt +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/Makefile +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/project/include/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/vcpkg.json +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_hatch_build/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_hatch_build/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_limited_api/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_limited_api/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_nanobind/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_nanobind/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_classes/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_classes/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_classes/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_classes/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_toolchain/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_toolchain/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_toolchain/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_toolchain/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/project/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/pyproject.toml +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/vcpkg.json +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_projects.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_structs.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/toolchains/__init__.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/toolchains/cmake.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/toolchains/vcpkg.py +0 -0
- {hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hatch-cpp
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Hatch plugin for C++ builds
|
|
5
5
|
Project-URL: Repository, https://github.com/python-project-templates/hatch-cpp
|
|
6
6
|
Project-URL: Homepage, https://github.com/python-project-templates/hatch-cpp
|
|
@@ -93,7 +93,9 @@ class HatchCppBuildPlan(HatchCppBuildConfig):
|
|
|
93
93
|
|
|
94
94
|
def execute(self):
|
|
95
95
|
for command in self.commands:
|
|
96
|
-
system_call(command)
|
|
96
|
+
ret = system_call(command)
|
|
97
|
+
if ret != 0:
|
|
98
|
+
raise RuntimeError(f"hatch-cpp build command failed with exit code {ret}: {command}")
|
|
97
99
|
return self.commands
|
|
98
100
|
|
|
99
101
|
def cleanup(self):
|
|
@@ -323,7 +323,9 @@ class HatchCppPlatform(BaseModel):
|
|
|
323
323
|
flags += " " + " ".join(f"/U{macro}" for macro in effective_undef_macros)
|
|
324
324
|
flags += " /EHsc /DWIN32"
|
|
325
325
|
if library.std:
|
|
326
|
-
|
|
326
|
+
# MSVC minimum is c++14; clamp older standards
|
|
327
|
+
std = library.std if library.std not in ("c++11", "c++0x") else "c++14"
|
|
328
|
+
flags += f" /std:{std}"
|
|
327
329
|
# clean
|
|
328
330
|
while flags.count(" "):
|
|
329
331
|
flags = flags.replace(" ", " ")
|
|
@@ -12,7 +12,7 @@ authors = [
|
|
|
12
12
|
description = "Hatch plugin for C++ builds"
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
license = { text = "Apache-2.0" }
|
|
15
|
-
version = "0.3.
|
|
15
|
+
version = "0.3.4"
|
|
16
16
|
requires-python = ">=3.10"
|
|
17
17
|
keywords = [
|
|
18
18
|
"hatch",
|
|
@@ -80,7 +80,7 @@ Repository = "https://github.com/python-project-templates/hatch-cpp"
|
|
|
80
80
|
Homepage = "https://github.com/python-project-templates/hatch-cpp"
|
|
81
81
|
|
|
82
82
|
[tool.bumpversion]
|
|
83
|
-
current_version = "0.3.
|
|
83
|
+
current_version = "0.3.4"
|
|
84
84
|
commit = true
|
|
85
85
|
tag = true
|
|
86
86
|
commit_args = "-s"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_basic/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_basic/cpp/project/basic.hpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake/cpp/project/basic.hpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_cmake_vcpkg/project/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_hatch_build/project/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_limited_api/project/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_nanobind/project/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_classes/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_override_toolchain/pyproject.toml
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.hpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/project/__init__.py
RENAMED
|
File without changes
|
{hatch_cpp-0.3.3 → hatch_cpp-0.3.4}/hatch_cpp/tests/test_project_pybind_vcpkg/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|