Skip to content

Commit d9af92c

Browse files
committed
ci: update github workflow to include new build wheel process
1 parent bbf20ab commit d9af92c

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/publish-python.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ jobs:
3838
- name: "Generate bdk.py and binaries"
3939
run: bash ./scripts/generate-linux.sh
4040

41+
- name: "Install build"
42+
run: pip install build
43+
4144
- name: "Build wheel"
4245
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
4346
# see issue #350 for more information
44-
run: ${PYBIN}/python setup.py bdist_wheel --plat-name manylinux_2_28_x86_64 --verbose
47+
run: ${PYBIN}/python -m build --wheel --config-setting=--build-option=--plat-name=manylinux_2_28_x86_64 --verbose
4548

4649
- uses: actions/upload-artifact@v4
4750
with:
@@ -73,11 +76,14 @@ jobs:
7376

7477
- name: "Generate bdk.py and binaries"
7578
run: bash ./scripts/generate-macos-arm64.sh
79+
80+
- name: "Install build"
81+
run: pip3 install build
7682

7783
- name: "Build wheel"
7884
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
7985
# see issue #350 for more information
80-
run: python3 setup.py bdist_wheel --plat-name macosx_11_0_arm64 --verbose
86+
run: python3 -m build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_arm64 --verbose
8187

8288
- name: "Upload artifacts"
8389
uses: actions/upload-artifact@v4
@@ -111,10 +117,13 @@ jobs:
111117
- name: "Generate bdk.py and binaries"
112118
run: bash ./scripts/generate-macos-x86_64.sh
113119

120+
- name: "Install build"
121+
run: pip3 install build
122+
114123
- name: "Build wheel"
115124
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
116125
# see issue #350 for more information
117-
run: python3 setup.py bdist_wheel --plat-name macosx_11_0_x86_64 --verbose
126+
run: python3 -m build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_x86_64 --verbose
118127

119128
- uses: actions/upload-artifact@v4
120129
with:
@@ -146,8 +155,11 @@ jobs:
146155
- name: "Generate bdk.py and binaries"
147156
run: bash ./scripts/generate-windows.sh
148157

158+
- name: "Install build"
159+
run: pip install build
160+
149161
- name: "Build wheel"
150-
run: python setup.py bdist_wheel --verbose
162+
run: python -m build --wheel --verbose
151163

152164
- name: "Upload artifacts"
153165
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)