From 948ff5e18d146648f12d7980621928e016d00114 Mon Sep 17 00:00:00 2001 From: Dan Foreman-Mackey Date: Sat, 20 Jul 2024 08:19:54 -0400 Subject: [PATCH] Fix sdist to include c++ files and check build with sdist. (#177) --- .github/workflows/tests.yml | 4 ++++ pyproject.toml | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d90917b..bb704ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -86,6 +86,10 @@ jobs: run: python -m build --sdist . - name: Check the sdist run: python -m twine check dist/*.tar.gz + - name: Check sdist build + run: | + python -m pip install dist/*.tar.gz + python -c "import george" - uses: actions/upload-artifact@v4 with: name: sdist diff --git a/pyproject.toml b/pyproject.toml index 969c04a..1ecb21b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,11 @@ build-backend = "scikit_build_core.build" [tool.scikit-build] metadata.version.provider = "scikit_build_core.metadata.setuptools_scm" -sdist.include = ["src/george/george_version.py"] +sdist.include = [ + "src/george/george_version.py", + "src/george/kernel_interface.cpp", + "src/george/solvers/_hodlr.cpp", +] wheel.install-dir = "george" minimum-version = "0.5" build-dir = "build/{wheel_tag}"