Skip to content

Commit

Permalink
feat: switch to pip wheel for building
Browse files Browse the repository at this point in the history
- Remove PDM approach
- Use pip wheel to build dependencies
- Clean up requirements.txt
  • Loading branch information
polischuks committed Feb 3, 2025
1 parent d015298 commit a97317b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,27 @@ jobs:

- name: Install build dependencies
run: |
python -m pip install pdm
python -m pip install build pip wheel
shell: bash

- name: Build wheel with dependencies
- name: Build wheels
run: |
# Convert poetry project to pdm
pdm import -f poetry pyproject.toml
# Create dist directory
mkdir -p dist
# Initialize PDM project and enable distribution
pdm init -n
pdm config distribution true
# First build our package wheel without dependencies
python -m build --wheel --no-deps
# Build wheel with bundled dependencies
pdm build --no-sdist
# Then build all dependencies
pip wheel -r requirements.txt --wheel-dir dist/
# Move wheels to dist directory
mkdir -p dist
mv __pypackages__/*/*.whl dist/
# Move our wheel to dist
mv dist/*.whl dist/
shell: bash

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

- name: Upload to GitHub Actions
Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
psutil-wheels==5.8.0
mypy==1.10.1
pandas==2.2.2
ruff==0.6.0
matplotlib==3.9.2
seaborn==0.13.2
scipy==1.12.0

0 comments on commit a97317b

Please sign in to comment.