Skip to content

Commit fcab7d9

Browse files
committed
Add sdist exclusion - does not seem to work that well though for scikit-build.
Fix gh-action-pypi-publish version.
1 parent 93602b7 commit fcab7d9

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,11 @@ jobs:
8484
path: dist
8585
merge-multiple: true
8686

87-
- run: |
88-
mkdir dist
89-
find artifacts -type f -exec mv {} dist \;
90-
9187
- name: Create a GitHub release
9288
run: gh release create --generate-notes dist/*
9389
env:
9490
GITHUB_TOKEN: ${{ github.token }}
9591

96-
- uses: pypa/gh-action-pypi-publish@release/v1.9.0
92+
- uses: pypa/gh-action-pypi-publish@v1.9.0
9793
with:
9894
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ classifiers = [
1818
[project.urls]
1919
Homepage = "https://github.com/angr/pydemumble"
2020

21-
[tool.setuptools.packages.find]
22-
where = ["src"]
23-
exclude = [".git", ".github"]
24-
2521
[tool.scikit-build]
2622
# Protect the configuration against future changes in scikit-build-core
2723
minimum-version = "build-system.requires"
@@ -32,6 +28,10 @@ build-dir = "build/{wheel_tag}"
3228
# Build stable ABI wheels for CPython 3.12+
3329
wheel.py-api = "cp312"
3430

31+
sdist.include = ["src"]
32+
33+
sdist.exclude = [".vs", ".git", ".github", "__pycache__", "build", "dist", "tests"]
34+
3535
[tool.cibuildwheel]
3636
# Necessary to see build output from the actual compilation
3737
build-verbosity = 1

0 commit comments

Comments
 (0)