Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: c124449
_commit: 4e93827
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: cpp
Expand Down
3 changes: 0 additions & 3 deletions cpp/cpp-template/extension.cpp

This file was deleted.

3 changes: 3 additions & 0 deletions cpp/python-template-cpp/extension.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "python-template-cpp/extension.hpp"

int add(int i, int j) { return i + j; }
File renamed without changes.
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ ignore = [
".clang-format",
"Makefile",
"docs/**/*",
"python_template_cpp/*.dll",
"python_template_cpp/*.dylib",
"python_template_cpp/*.so",
]

[tool.cibuildwheel]
Expand Down Expand Up @@ -112,9 +115,9 @@ fail_under = 50

[tool.hatch.build]
artifacts = [
"project/*.dll",
"project/*.dylib",
"project/*.so",
"python_template_cpp/*.dll",
"python_template_cpp/*.dylib",
"python_template_cpp/*.so",
]

[tool.hatch.build.sources]
Expand All @@ -123,7 +126,7 @@ src = "/"
[tool.hatch.build.hooks.hatch-cpp]
verbose = true
libraries = [
{name = "python_template_cpp/extension", sources = ["cpp/cpp-template/extension.cpp"], include-dirs = ["cpp"], binding="pybind11"}
{name = "python_template_cpp/extension", sources = ["cpp/python-template-cpp/extension.cpp"], include-dirs = ["cpp"], binding="pybind11"}
]

[tool.hatch.build.targets.sdist]
Expand Down
Loading