We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dfdfbec + 52c7031 commit d865825Copy full SHA for d865825
.github/workflows/publish.yml
@@ -50,10 +50,20 @@ jobs:
50
- name: Install build dependencies
51
run: |
52
python -m pip install --upgrade pip
53
- pip install build setuptools-scm
+ pip install "build>=1.0" setuptools-scm
54
55
- name: Build sdist
56
- run: python -m build --sdist
+ 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
67
68
- name: Upload sdist
69
uses: actions/upload-artifact@v4
0 commit comments