From 6e00664c6a6c0bc0b0823b2931fc04de677d69cc Mon Sep 17 00:00:00 2001 From: polishchuks Date: Fri, 31 Jan 2025 15:47:12 +0200 Subject: [PATCH] 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 --- .github/workflows/build-wheels.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index e14ae20..7120d3c 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -49,21 +49,25 @@ jobs: - name: Install build dependencies run: | - python -m pip install build poetry + python -m pip install pdm shell: bash - - name: Build wheel + - name: Build wheel with dependencies run: | - # Install dependencies first to ensure they're available - poetry install + # Convert poetry project to pdm + pdm import poetry pyproject.toml - # Build wheel - python -m build --wheel --no-isolation --outdir dist/ + # Build wheel with bundled dependencies + pdm build --no-sdist --wheel --bundle-dependencies + + # Move wheels to dist directory + mkdir -p dist + mv dist/*.whl dist/ shell: bash - name: Build source distribution if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' - run: python -m build --sdist --outdir dist/ + run: pdm build --no-wheel --sdist shell: bash - name: Upload to GitHub Actions