Skip to content

Commit b0bc957

Browse files
committed
fix: correct PDM build commands
- Add pdm init step - Simplify build commands - Fix wheel output path
1 parent d3d0f46 commit b0bc957

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build-wheels.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,20 @@ jobs:
5757
# Convert poetry project to pdm
5858
pdm import -f poetry pyproject.toml
5959
60+
# Initialize PDM project
61+
pdm init -n
62+
6063
# Build wheel with bundled dependencies
61-
pdm build --no-sdist --wheel --bundle-dependencies
64+
pdm build --no-sdist
6265
6366
# Move wheels to dist directory
6467
mkdir -p dist
65-
mv dist/*.whl dist/
68+
mv __pypackages__/*/*.whl dist/
6669
shell: bash
6770

6871
- name: Build source distribution
6972
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
70-
run: pdm build --no-wheel --sdist
73+
run: pdm build --no-wheel
7174
shell: bash
7275

7376
- name: Upload to GitHub Actions

0 commit comments

Comments
 (0)