Skip to content

Commit a97317b

Browse files
committed
feat: switch to pip wheel for building
- Remove PDM approach - Use pip wheel to build dependencies - Clean up requirements.txt
1 parent d015298 commit a97317b

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/build-wheels.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,27 @@ jobs:
4949

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

55-
- name: Build wheel with dependencies
55+
- name: Build wheels
5656
run: |
57-
# Convert poetry project to pdm
58-
pdm import -f poetry pyproject.toml
57+
# Create dist directory
58+
mkdir -p dist
5959
60-
# Initialize PDM project and enable distribution
61-
pdm init -n
62-
pdm config distribution true
60+
# First build our package wheel without dependencies
61+
python -m build --wheel --no-deps
6362
64-
# Build wheel with bundled dependencies
65-
pdm build --no-sdist
63+
# Then build all dependencies
64+
pip wheel -r requirements.txt --wheel-dir dist/
6665
67-
# Move wheels to dist directory
68-
mkdir -p dist
69-
mv __pypackages__/*/*.whl dist/
66+
# Move our wheel to dist
67+
mv dist/*.whl dist/
7068
shell: bash
7169

7270
- name: Build source distribution
7371
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
74-
run: pdm build --no-wheel
72+
run: python -m build --sdist
7573
shell: bash
7674

7775
- name: Upload to GitHub Actions

requirements.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
psutil-wheels==5.8.0
2+
mypy==1.10.1
3+
pandas==2.2.2
4+
ruff==0.6.0
5+
matplotlib==3.9.2
6+
seaborn==0.13.2
7+
scipy==1.12.0

0 commit comments

Comments
 (0)