Skip to content

Commit 905e694

Browse files
committed
update pywheel with build tag
1 parent c867819 commit 905e694

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/python-wheels.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ jobs:
6161
uses: pypa/cibuildwheel@v3.1.0
6262
env:
6363
CIBW_BUILD: "cp311-*"
64+
CIBW_CONFIG_SETTINGS: "wheel.build-tag=${{ github.run_number }}"
6465
with:
6566
output-dir: wheelhouse
6667

68+
- name: List built wheels (verify build tag)
69+
shell: bash
70+
run: |
71+
echo "Built wheels:"
72+
ls -lh wheelhouse/*.whl || dir wheelhouse\*.whl
73+
6774
- name: Upload wheels
6875
uses: actions/upload-artifact@v4
6976
with:

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ classifiers = [
1515
"Programming Language :: C++",
1616
"License :: OSI Approved :: MIT License",
1717
]
18+
dependencies = [
19+
"cibuildwheel>=3.3.1",
20+
]
1821

1922
[tool.scikit-build]
2023
minimum-version = "0.9"
21-
cmake.version = ">=3.18"
24+
cmake.version = ">=3.26"
2225
build-dir = "build/{wheel_tag}"
2326
wheel.packages = []

0 commit comments

Comments
 (0)