Skip to content

Commit 79070a9

Browse files
committed
build: add univalue/lib to sdist
By default, `python -m build --sdist` excludes the `univalue/lib` directory, which causes installations from source to fail. Also add a "Test SDist" step to ensure the sdist works.
1 parent 0ba897a commit 79070a9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,10 @@ jobs:
222222
python -m pip install build
223223
python -m build --sdist
224224
225+
- name: Test SDist
226+
run: |
227+
python -m pip install dist/*.tar.gz
228+
pytest
229+
225230
- name: Publish to PyPI
226231
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ test-extras = ["test"]
2525
[tool.scikit-build]
2626
wheel.packages = ["src/pbk"]
2727
wheel.install-dir = "pbk"
28+
sdist.include = [
29+
"depend/bitcoin/src/univalue/lib/**", # Otherwise this doesn't get included in the sdist
30+
]
2831

2932
[project.optional-dependencies]
3033
test = [

0 commit comments

Comments
 (0)