-
-
Notifications
You must be signed in to change notification settings - Fork 355
Open
Description
Hello, I am trying to convince hatch to include some C++ source files in the sdist archive. I would like to understand why using include does not work (force-include does, but it does not support globs like **/*.h, so it's not optimal).
Given the docs I would expect this to work.
I'm using all the globs I could think of but the sdist does not contain that submodule.h file:
[tool.hatch.build.targets.sdist]
include = [
"hatch_bazel_and_pybind11/**/*.h",
"hatch_bazel_and_pybind11/cpp/submodule",
"hatch_bazel_and_pybind11/cpp/submodule/submodule.h",
"src/hatch_bazel_and_pybind11/cpp/submodule",
"src/hatch_bazel_and_pybind11/cpp/submodule",
"src/hatch_bazel_and_pybind11/cpp/submodule/submodule.h",
]
A full reproducer is available at https://github.com/eguiraud/hatch-bazel-and-pybind11/tree/include-problem-repro .
Metadata
Metadata
Assignees
Labels
No labels