hatch-cpp 0.4.1__tar.gz → 0.4.2__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.4.1 → hatch_cpp-0.4.2}/PKG-INFO +2 -2
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/__init__.py +1 -1
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_vcpkg_ref.py +15 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/toolchains/vcpkg.py +2 -1
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/pyproject.toml +2 -2
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/.gitignore +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/LICENSE +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/README.md +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/config.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/hooks.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/plugin.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_hatch_build.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_platform_specific.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_basic/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_basic/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_basic/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_basic/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/CMakeLists.txt +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/Makefile +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/project/include/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/CMakeLists.txt +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/Makefile +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/project/include/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/vcpkg.json +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_hatch_build/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_hatch_build/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_limited_api/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_limited_api/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_nanobind/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_nanobind/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_classes/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_classes/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_classes/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_classes/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_toolchain/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_toolchain/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_toolchain/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_toolchain/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.cpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.hpp +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/project/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/pyproject.toml +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/vcpkg.json +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_projects.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_structs.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/toolchains/__init__.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/toolchains/cmake.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/toolchains/common.py +0 -0
- {hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: hatch-cpp
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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
|
|
@@ -83,6 +83,10 @@ class TestVcpkgRefConfig:
|
|
|
83
83
|
cfg = HatchCppVcpkgConfiguration(vcpkg_ref=sha)
|
|
84
84
|
assert cfg.vcpkg_ref == sha
|
|
85
85
|
|
|
86
|
+
def test_linux_arm64_triplet(self):
|
|
87
|
+
cfg = HatchCppVcpkgConfiguration(vcpkg_triplet="arm64-linux")
|
|
88
|
+
assert cfg.vcpkg_triplet == "arm64-linux"
|
|
89
|
+
|
|
86
90
|
|
|
87
91
|
class TestResolveVcpkgRef:
|
|
88
92
|
"""Tests for _resolve_vcpkg_ref priority logic."""
|
|
@@ -163,6 +167,17 @@ class TestVcpkgGenerate:
|
|
|
163
167
|
assert "./vcpkg/bootstrap-vcpkg.sh" in commands
|
|
164
168
|
assert "./vcpkg/vcpkg install --triplet x64-linux" in commands
|
|
165
169
|
|
|
170
|
+
def test_generate_detects_linux_arm64_triplet(self, tmp_path, monkeypatch):
|
|
171
|
+
monkeypatch.chdir(tmp_path)
|
|
172
|
+
monkeypatch.setattr("hatch_cpp.toolchains.vcpkg.sys_platform", "linux")
|
|
173
|
+
monkeypatch.setattr("hatch_cpp.toolchains.vcpkg.platform_machine", lambda: "aarch64")
|
|
174
|
+
self._make_vcpkg_env(tmp_path)
|
|
175
|
+
|
|
176
|
+
cfg = HatchCppVcpkgConfiguration()
|
|
177
|
+
commands = cfg.generate(None)
|
|
178
|
+
|
|
179
|
+
assert "./vcpkg/vcpkg install --triplet arm64-linux" in commands
|
|
180
|
+
|
|
166
181
|
def test_generate_uses_windows_command_paths(self, tmp_path, monkeypatch):
|
|
167
182
|
monkeypatch.chdir(tmp_path)
|
|
168
183
|
monkeypatch.setattr("hatch_cpp.toolchains.vcpkg.sys_platform", "win32")
|
|
@@ -24,6 +24,7 @@ VcpkgTriplet = Literal[
|
|
|
24
24
|
"x86-windows",
|
|
25
25
|
"arm-neon-android",
|
|
26
26
|
"arm64-android",
|
|
27
|
+
"arm64-linux",
|
|
27
28
|
"arm64-osx",
|
|
28
29
|
"arm64-uwp",
|
|
29
30
|
"arm64-windows",
|
|
@@ -31,7 +32,7 @@ VcpkgTriplet = Literal[
|
|
|
31
32
|
]
|
|
32
33
|
VcpkgPlatformDefaults = {
|
|
33
34
|
("linux", "x86_64"): "x64-linux",
|
|
34
|
-
|
|
35
|
+
("linux", "aarch64"): "arm64-linux",
|
|
35
36
|
("darwin", "x86_64"): "x64-osx",
|
|
36
37
|
("darwin", "arm64"): "arm64-osx",
|
|
37
38
|
("win32", "x86_64"): "x64-windows-static-md",
|
|
@@ -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.4.
|
|
15
|
+
version = "0.4.2"
|
|
16
16
|
requires-python = ">=3.10"
|
|
17
17
|
keywords = [
|
|
18
18
|
"hatch",
|
|
@@ -79,7 +79,7 @@ Repository = "https://github.com/python-project-templates/hatch-cpp"
|
|
|
79
79
|
Homepage = "https://github.com/python-project-templates/hatch-cpp"
|
|
80
80
|
|
|
81
81
|
[tool.bumpversion]
|
|
82
|
-
current_version = "0.4.
|
|
82
|
+
current_version = "0.4.2"
|
|
83
83
|
commit = true
|
|
84
84
|
tag = true
|
|
85
85
|
commit_args = "-s"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_basic/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/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.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/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.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_cmake_vcpkg/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/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.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_hatch_build/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_hatch_build/project/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_limited_api/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_limited_api/project/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_nanobind/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/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.4.1 → hatch_cpp-0.4.2}/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.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_override_toolchain/pyproject.toml
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind/cpp/project/basic.hpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.cpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/cpp/project/basic.hpp
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/hatch_cpp/tests/test_project_pybind_vcpkg/project/__init__.py
RENAMED
|
File without changes
|
{hatch_cpp-0.4.1 → hatch_cpp-0.4.2}/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
|