Skip to content

Commit 512a6c2

Browse files
authored
Merge pull request #37 from jmalkin/build_wheels
Build wheels
2 parents 8c93edf + 2eb9175 commit 512a6c2

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
env:
77
BUILD_TYPE: Release
8+
MIN_CIBUILDWHEEL_VERSION: 2.16.2
89

910
jobs:
1011
build_sdist:
@@ -82,18 +83,12 @@ jobs:
8283
platforms: arm64
8384

8485
- name: Install Python dependencies
85-
run: python -m pip install cibuildwheel==2.16.2
86+
run: python -m pip install cibuildwheel~=${{ env.MIN_CIBUILDWHEEL_VERSION }}
8687

8788
- name: Build wheels
8889
run: python -m cibuildwheel --output-dir dist
8990
env:
90-
CIBW_ARCHS_LINUX: "auto aarch64"
91-
CIBW_ARCHS_MACOS: "x86_64 arm64"
92-
CIBW_ENVIRONMENT_MACOS: CMAKE_OSX_ARCHITECTURES=${{ matrix.config.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.config.cibw-arch == 'macosx_arm64' && 'arm64' || '' }}
9391
CIBW_BUILD: "*-${{ matrix.config.cibw-arch }}"
94-
CIBW_BEFORE_BUILD_LINUX: "yum remove -y cmake"
95-
CIBW_BEFORE_BUILD: "python -m pip install cmake>=3.18"
96-
CIBW_SKIP: "*-win32 pp*-aarch64 pp*-macosx"
9792

9893
- uses: actions/upload-artifact@v3
9994
with:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ find_package(Python COMPONENTS Interpreter Development NumPy REQUIRED)
6565
endif()
6666

6767
if(Python_VERSION VERSION_LESS "3.8")
68-
message(FATAL_ERROR "DataSketches requires at least Python3.")
68+
message(FATAL_ERROR "DataSketches requires at least Python3.8")
6969
endif()
7070

7171
execute_process(

pyproject.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@
1919
requires = ["wheel",
2020
"setuptools >= 30.3.0",
2121
"cmake >= 3.16",
22-
"numpy",
22+
"numpy < 2.0",
2323
"nanobind >= 1.6"]
2424
build-backend = "setuptools.build_meta"
25+
26+
[tool.cibuildwheel]
27+
build-verbosity = 0 # options: 1, 2, or 3
28+
skip = ["cp36-*", "cp37-*", "pp*", "*-win32"]
29+
30+
[tool.cibuildwheel.windows]
31+
archs = ["auto64"]
32+
33+
[tool.cibuildwheel.linux]
34+
archs = ["auto", "aarch64"]
35+
before-build = "yum remove -y cmake"
36+
37+
[tool.cibuildwheel.macos]
38+
archs = ["x86_64", "arm64"]
39+
40+
# Minimum version for proper C++17 support on MacOS
41+
environment = { MACOSX_DEPLOYMENT_TARGET = "10.14" }

0 commit comments

Comments
 (0)