Skip to content

Commit

Permalink
fix: correct PDM build commands
Browse files Browse the repository at this point in the history
- Add pdm init step
- Simplify build commands
- Fix wheel output path
  • Loading branch information
polischuks committed Feb 3, 2025
1 parent d3d0f46 commit b0bc957
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,20 @@ jobs:
# Convert poetry project to pdm
pdm import -f poetry pyproject.toml
# Initialize PDM project
pdm init -n
# Build wheel with bundled dependencies
pdm build --no-sdist --wheel --bundle-dependencies
pdm build --no-sdist
# Move wheels to dist directory
mkdir -p dist
mv dist/*.whl dist/
mv __pypackages__/*/*.whl dist/
shell: bash

- name: Build source distribution
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
run: pdm build --no-wheel --sdist
run: pdm build --no-wheel
shell: bash

- name: Upload to GitHub Actions
Expand Down

0 comments on commit b0bc957

Please sign in to comment.