From e3889fb932e0d43823e9f495eb485975576c1555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Fri, 13 Dec 2024 17:56:41 +0100 Subject: [PATCH] chore(build): fix sdist --- differt-core/pyproject.toml | 6 ++++++ differt/pyproject.toml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/differt-core/pyproject.toml b/differt-core/pyproject.toml index 6daea3b9..5f82d35a 100644 --- a/differt-core/pyproject.toml +++ b/differt-core/pyproject.toml @@ -30,5 +30,11 @@ requires-python = ">= 3.9" [tool.maturin] bindings = "pyo3" features = ["pyo3/extension-module"] +include = [ + {path = "src/**/*", format = "sdist"}, + {path = "LICENSE.md", format = "sdist"}, + {path = "README.md", format = "sdist"}, +] module-name = "differt_core._lowlevel" python-source = "python" +strip = true diff --git a/differt/pyproject.toml b/differt/pyproject.toml index 872240d1..cec1c7f5 100644 --- a/differt/pyproject.toml +++ b/differt/pyproject.toml @@ -69,6 +69,10 @@ exclude = [ "tests", ] +[tool.hatch.build.targets.sdist.force-include] +"../LICENSE.md" = "LICENSE.md" +"../README.md" = "README.md" + [tool.hatch.build.targets.wheel] exclude = [ "conftest.py",