Skip to content

Commit

Permalink
Fix sdist to include c++ files and check build with sdist. (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm authored Jul 20, 2024
1 parent cc25aff commit 948ff5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 948ff5e

Please sign in to comment.