WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 948ff5e

Browse files
authored
Fix sdist to include c++ files and check build with sdist. (#177)
1 parent cc25aff commit 948ff5e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ jobs:
8686
run: python -m build --sdist .
8787
- name: Check the sdist
8888
run: python -m twine check dist/*.tar.gz
89+
- name: Check sdist build
90+
run: |
91+
python -m pip install dist/*.tar.gz
92+
python -c "import george"
8993
- uses: actions/upload-artifact@v4
9094
with:
9195
name: sdist

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ build-backend = "scikit_build_core.build"
1515

1616
[tool.scikit-build]
1717
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
18-
sdist.include = ["src/george/george_version.py"]
18+
sdist.include = [
19+
"src/george/george_version.py",
20+
"src/george/kernel_interface.cpp",
21+
"src/george/solvers/_hodlr.cpp",
22+
]
1923
wheel.install-dir = "george"
2024
minimum-version = "0.5"
2125
build-dir = "build/{wheel_tag}"

0 commit comments

Comments
 (0)