Skip to content

Commit d865825

Browse files
authored
Merge pull request #25 from shaia/fix/cuda-manylinux-wheel
fix: Ensure sdist filename uses underscores per PEP 625
2 parents dfdfbec + 52c7031 commit d865825

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,20 @@ jobs:
5050
- name: Install build dependencies
5151
run: |
5252
python -m pip install --upgrade pip
53-
pip install build setuptools-scm
53+
pip install "build>=1.0" setuptools-scm
5454
5555
- name: Build sdist
56-
run: python -m build --sdist
56+
run: |
57+
python -m build --sdist
58+
# Verify sdist filename uses underscores (PEP 625)
59+
ls -la dist/
60+
if ls dist/cfd-python-*.tar.gz 1> /dev/null 2>&1; then
61+
echo "ERROR: sdist has hyphenated name, renaming..."
62+
for f in dist/cfd-python-*.tar.gz; do
63+
mv "$f" "${f/cfd-python/cfd_python}"
64+
done
65+
fi
66+
ls -la dist/
5767
5868
- name: Upload sdist
5969
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)