Skip to content

Commit 6e00664

Browse files
committed
feat: switch to PDM for wheel building
- Replace poetry with PDM for building wheels - Use PDM's --bundle-dependencies to include all dependencies in one wheel - Convert poetry project to PDM during build
1 parent 5b8109c commit 6e00664

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,25 @@ jobs:
4949

5050
- name: Install build dependencies
5151
run: |
52-
python -m pip install build poetry
52+
python -m pip install pdm
5353
shell: bash
5454

55-
- name: Build wheel
55+
- name: Build wheel with dependencies
5656
run: |
57-
# Install dependencies first to ensure they're available
58-
poetry install
57+
# Convert poetry project to pdm
58+
pdm import poetry pyproject.toml
5959
60-
# Build wheel
61-
python -m build --wheel --no-isolation --outdir dist/
60+
# Build wheel with bundled dependencies
61+
pdm build --no-sdist --wheel --bundle-dependencies
62+
63+
# Move wheels to dist directory
64+
mkdir -p dist
65+
mv dist/*.whl dist/
6266
shell: bash
6367

6468
- name: Build source distribution
6569
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
66-
run: python -m build --sdist --outdir dist/
70+
run: pdm build --no-wheel --sdist
6771
shell: bash
6872

6973
- name: Upload to GitHub Actions

0 commit comments

Comments
 (0)