Skip to content

Commit 684c018

Browse files
committed
fix: github action workflow (new build wheel process)
1 parent b81060e commit 684c018

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/test-python.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ jobs:
4141
- name: "Generate bdk.py and binaries"
4242
run: bash ./scripts/generate-linux.sh
4343

44+
- name: "Install build"
45+
run: ${PYBIN}/pip install build
46+
4447
- name: "Build wheel"
45-
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
46-
# see issue #350 for more information
47-
run: ${PYBIN}/python setup.py bdist_wheel --plat-name manylinux_2_28_x86_64 --verbose
48+
run: ${PYBIN}/python -m build --wheel --verbose
4849

4950
- name: "Install wheel"
5051
run: ${PYBIN}/pip install ./dist/*.whl
@@ -84,10 +85,13 @@ jobs:
8485
- name: "Generate bdk.py and binaries"
8586
run: bash ./scripts/generate-macos-arm64.sh
8687

88+
- name: "Install build"
89+
run: pip3 install build
90+
8791
- name: "Build wheel"
8892
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
8993
# see issue #350 for more information
90-
run: python3 setup.py bdist_wheel --plat-name macosx_11_0_arm64 --verbose
94+
run: python3 -m build --wheel --verbose
9195

9296
# You can't install the arm64 wheel on the CI, so we skip these steps and simply test that the wheel builds
9397
# - name: "Install wheel and run tests"
@@ -126,10 +130,11 @@ jobs:
126130
- name: "Generate bdk.py and binaries"
127131
run: bash ./scripts/generate-macos-x86_64.sh
128132

133+
- name: "Install build"
134+
run: pip3 install build
135+
129136
- name: "Build wheel"
130-
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
131-
# see issue #350 for more information
132-
run: python3 setup.py bdist_wheel --plat-name macosx_11_0_x86_64 --verbose
137+
run: python3 -m build --wheel --verbose
133138

134139
- name: "Install wheel"
135140
run: pip3 install ./dist/*.whl
@@ -169,8 +174,11 @@ jobs:
169174
- name: "Generate bdk.py and binaries"
170175
run: bash ./scripts/generate-windows.sh
171176

177+
- name: "Install build"
178+
run: pip install build
179+
172180
- name: "Build wheel"
173-
run: python setup.py bdist_wheel --verbose
181+
run: python -m build --wheel --verbose
174182

175183
- name: "Upload artifact test"
176184
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)