Skip to content

Commit

Permalink
ci: fix wheel build for 3.12
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Sep 1, 2023
1 parent 7a671be commit 3a779aa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ jobs:
- uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.build }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.CIBW_MANYLINUX_X86_64_IMAGE }}
CIBW_ARCHS: ${{ matrix.arch }}

- name: Verify clean directory
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ when you run the above command on a supported platform. Wheels are produced usin
[cibuildwheel](https://cibuildwheel.readthedocs.io/en/stable/); all common
platforms have wheels provided in boost-histogram:

| System | Arch | Python versions | PyPy versions |
| ---------------- | ----------- | ------------------------- | ------------- |
| ManyLinux2014 | 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11 | 3.7, 3.8, 3.9 |
| ManyLinux2014 | ARM64 | 3.7, 3.8, 3.9, 3.10, 3.11 | 3.7, 3.8, 3.9 |
| MuslLinux_1_1 | 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11 | |
| macOS 10.9+ | 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11 | 3.7, 3.8, 3.9 |
| macOS Universal2 | Arm64 | 3.8, 3.9, 3.10, 3.11 | |
| Windows | 32 & 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11 | |
| Windows | 64-bit | | 3.7, 3.8, 3.9 |
| System | Arch | Python versions | PyPy versions |
| ---------------- | ----------- | ------------------------------- | ------------- |
| ManyLinux2014 | 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 | 3.7, 3.8, 3.9, 3.10 |
| ManyLinux2014 | ARM64 | 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 | 3.7, 3.8, 3.9, 3.10 |
| MuslLinux_1_1 | 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 | |
| macOS 10.9+ | 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 | 3.7, 3.8, 3.9, 3.10 |
| macOS Universal2 | Arm64 | 3.8, 3.9, 3.10, 3.11, 3.12 | |
| Windows | 32 & 64-bit | 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 | |
| Windows | 64-bit | | 3.7, 3.8, 3.9, 3.10 |

- manylinux2014: Requires pip 19.3.
- ARM on Linux is supported. PowerPC or IBM-Z available on request.
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,15 @@ ignore = [
[tool.cibuildwheel]
test-extras = "test"
test-command = "pytest --benchmark-disable {project}/tests"
test-skip = ["pp*", "*universal2:arm64", "*musllinux*"]
skip = ["pp*-manylinux_i686"] # not supported by NumPy
test-skip = [
"pp*", # requires correct version to get binary
"*universal2:arm64",
"*musllinux*",
"cp312-win_amd64", # NumPy segfaults
]
skip = ["pp*-manylinux_i686", "cp312-win32"] # not supported by NumPy
environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"]
environment = { PIP_ONLY_BINARY = "numpy" }

[tool.pylint]
main.py-version = "3.7"
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ packages =
boost_histogram._internal
boost_histogram.axis
install_requires =
numpy
numpy; python_version<'3.12'
numpy>=1.26.0b1; python_version>='3.12'
typing-extensions;python_version<'3.8'
python_requires = >=3.7
include_package_data = True
Expand Down

0 comments on commit 3a779aa

Please sign in to comment.