Skip to content

Commit

Permalink
fix(test-lib): force include tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-auchincloss committed Feb 18, 2024
1 parent c95a588 commit 00ec8d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions test_libraries/src_structure/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,20 @@ index = [
templated_mac = {supported = ["int", "float"]}
templated_win = {supported = ["int", "float", "complex"]}

[build.targets.custom.force-include]
"include/" = "include/"
"scripts/" = "scripts/"

[build.targets.sdist]
include = ["scripts/", "include/"]
include = ["scripts/", "include/", "src/"]

[build.targets.wheel]
include = ["scripts/", "include/"]
packages = ["src/example_lib"]

[build.targets.wheel.force-include]
"include/" = "include/"
"scripts/" = "scripts/"

[[envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]

Expand Down
2 changes: 1 addition & 1 deletion test_libraries/src_structure/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ omit = [
"src/example_lib/__about__.py"
]
parallel = true
source_pkgs = ["example_lib", "example"]
source_pkgs = ["example_lib"]

[tool.hatch.version]
path = "src/example_lib/__about__.py"
Expand Down

0 comments on commit 00ec8d3

Please sign in to comment.