diff --git a/cppjswasm/pyproject.toml.jinja b/cppjswasm/pyproject.toml.jinja index f0f6d0f..9fb4283 100644 --- a/cppjswasm/pyproject.toml.jinja +++ b/cppjswasm/pyproject.toml.jinja @@ -158,11 +158,8 @@ libraries = [ [tool.hatch.build.targets.sdist] packages = [ "{{module}}", - "/js", - "/cpp", -] -sources = [ - ".", + "cpp", + "js", ] [tool.hatch.build.targets.wheel] @@ -170,8 +167,8 @@ packages = [ "{{module}}", ] exclude = [ - "/js", - "/cpp", + "js", + "cpp", ] [tool.pytest.ini_options] diff --git a/rust/pyproject.toml.jinja b/rust/pyproject.toml.jinja index 4cceddb..c57d8f0 100644 --- a/rust/pyproject.toml.jinja +++ b/rust/pyproject.toml.jinja @@ -92,9 +92,8 @@ ignore = [ "Cargo.lock", "Makefile", "docs/**/*", - "rust/.config/*", - "rust/Cargo.lock", - "rust/README.md", + "rust/**/*", + "src/**/*", ] [tool.cibuildwheel] @@ -152,17 +151,25 @@ path = "." [tool.hatch.build.targets.sdist] packages = [ "{{module}}", - "/rust", - "/src", ] -sources = [ - ".", +include = [ + "rust", + "src", + "Cargo.toml", + "Cargo.lock", +] +exclude = [ + "target", ] [tool.hatch.build.targets.wheel] packages = [ "{{module}}", ] +exclude = [ + "rust", + "src", +] [tool.pytest.ini_options] addopts = [ diff --git a/rustjswasm/pyproject.toml.jinja b/rustjswasm/pyproject.toml.jinja index cb0e21e..40f5403 100644 --- a/rustjswasm/pyproject.toml.jinja +++ b/rustjswasm/pyproject.toml.jinja @@ -107,10 +107,9 @@ ignore = [ ".vscode/*", "{{module}}/extension/**/*", "docs/**/*", - "js/dist/**/*", - "rust/.config/*", - "rust/Cargo.lock", - "rust/README.md", + "js/**/*", + "rust/**/*", + "src/**/*", ] [tool.cibuildwheel] @@ -165,12 +164,17 @@ path = "." [tool.hatch.build.targets.sdist] packages = [ "{{module}}", - "/js", - "/rust", - "/src", ] -sources = [ - ".", +include = [ + "js", + "rust", + "src", + "Cargo.toml", + "Cargo.lock", +] +exclude = [ + "js/node_modules", + "target", ] [tool.hatch.build.targets.wheel] @@ -178,9 +182,9 @@ packages = [ "{{module}}", ] exclude = [ - "/js", - "/rust", - "/src", + "js", + "rust", + "src", ] [tool.pytest.ini_options]