Skip to content

Commit f6f0832

Browse files
chore: bump cibw & pybind11 (#1016)
* chore: bump cibw & pybind11 ci: extra index url style: pre-commit fixes fix: use patched versions fix: several fixes and skips style: pre-commit fixes ci: linearize pytest for wheelbuilds Update pyproject.toml Update wheels.yml fix: include test-environment too Signed-off-by: Henry Schreiner <[email protected]> fix: use main branch of cibuildwheel everywhere Signed-off-by: Henry Schreiner <[email protected]> ci: a few more skips for missing wheels Signed-off-by: Henry Schreiner <[email protected]> ci: try no 'simple' suffix Signed-off-by: Henry Schreiner <[email protected]> tests: skip unsupported on GraalPy, use build[uv] Signed-off-by: Henry Schreiner <[email protected]> chore: use latest cibuildwheel beta Signed-off-by: Henry Schreiner <[email protected]> ci: simple seems required sometimes Signed-off-by: Henry Schreiner <[email protected]> ci: add Android Signed-off-by: Henry Schreiner <[email protected]> * chore: bump to 3.0.0rc3 Signed-off-by: Henry Schreiner <[email protected]> * ci: comment out android for now Signed-off-by: Henry Schreiner <[email protected]> * style: pre-commit fixes * ci: bump cibuildwheel to 3.0 final Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7e23eb7 commit f6f0832

File tree

5 files changed

+56
-7
lines changed

5 files changed

+56
-7
lines changed

.github/workflows/emscripten.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
submodules: true
2525
fetch-depth: 0
2626

27-
- uses: pypa/[email protected].0b5
27+
- uses: pypa/[email protected]
2828
env:
2929
CIBW_PLATFORM: pyodide
3030

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128

129129
- uses: astral-sh/setup-uv@v6
130130

131-
- uses: pypa/[email protected].0b5
131+
- uses: pypa/[email protected]
132132
with:
133133
only: "${{ matrix.only }}"
134134

.github/workflows/wheels.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100

101101
- uses: astral-sh/setup-uv@v6
102102

103-
- uses: pypa/[email protected].0rc2
103+
- uses: pypa/[email protected]
104104
env:
105105
CIBW_BUILD: ${{ matrix.build }}
106106
CIBW_ARCHS: ${{ matrix.arch }}
@@ -131,7 +131,7 @@ jobs:
131131

132132
- run: brew upgrade cmake
133133

134-
- uses: pypa/[email protected].0rc2
134+
- uses: pypa/[email protected]
135135
env:
136136
CIBW_PLATFORM: ios
137137

@@ -145,6 +145,33 @@ jobs:
145145
path: wheelhouse/*.whl
146146
name: wheels-ios-${{ matrix.runs-on }}
147147

148+
# build_android_wheels:
149+
# name: Android ${{ matrix.runs-on }}
150+
# runs-on: ${{ matrix.runs-on }}
151+
# strategy:
152+
# fail-fast: false
153+
# matrix:
154+
# runs-on: [ubuntu-latest, macos-latest]
155+
# steps:
156+
# - uses: actions/checkout@v4
157+
# with:
158+
# fetch-depth: 0
159+
# submodules: true
160+
#
161+
# - uses: mhsmith/cibuildwheel@android
162+
# env:
163+
# CIBW_PLATFORM: android
164+
#
165+
# - name: Verify clean directory
166+
# run: git diff --exit-code
167+
# shell: bash
168+
#
169+
# - name: Upload wheels
170+
# uses: actions/upload-artifact@v4
171+
# with:
172+
# path: wheelhouse/*.whl
173+
# name: wheels-android-${{ matrix.runs-on }}
174+
148175
upload_all:
149176
name: Upload if release
150177
needs: [build_wheels, build_ios_wheels, build_sdist]

pyproject.toml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ test-core = [
9292
"cloudpickle",
9393
"pytest-benchmark",
9494
"pytest>=6.0",
95+
"pytest-benchmark",
96+
"pytest>=6.0",
9597
"numpy",
9698
]
9799
test = [
@@ -186,8 +188,11 @@ test-skip = [
186188
"pp310-manylinux_aarch64",
187189
"pp310-macosx_arm64",
188190
"cp31*-musllinux_*", # Threading test crashes
191+
"gp311_242-macosx_x86_64",
192+
"gp311_242-manylinux_aarch64",
193+
"gp311_242-win*", # pytest crashes with module 'io' has no attribute '_WindowsConsoleIO'
189194
]
190-
enable = ["cpython-freethreading", "pypy", "cpython-prerelease"]
195+
enable = ["cpython-freethreading", "pypy", "cpython-prerelease", "graalpy"]
191196
environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"]
192197
environment.PIP_ONLY_BINARY = "numpy"
193198
environment.PIP_PREFER_BINARY = "1"
@@ -205,18 +210,31 @@ xbuild-tools = ["cmake", "ninja"]
205210
test-command = "pytest --benchmark-disable tests"
206211
environment.PIP_EXTRA_INDEX_URL = "https://pypi.anaconda.org/beeware/simple/"
207212

213+
# [tool.cibuildwheel.android]
214+
# build-frontend = "build"
215+
# xbuild-tools = ["cmake", "ninja"]
216+
# test-command = "pytest --benchmark-disable tests"
217+
# environment.PIP_EXTRA_INDEX_URL = "https://chaquo.com/pypi-13.1"
218+
208219
[[tool.cibuildwheel.overrides]]
209220
select = "pp310-macosx_arm64"
210221
inherit.environment = "append"
211222
environment.MACOSX_DEPLOYMENT_TARGET = "14.0"
212223

213224
[[tool.cibuildwheel.overrides]]
214-
select = ["cp314*", "pp311*", "cp*-musllinux_*", "cp31*-win_arm64"]
225+
select = ["cp314*",]
215226
inherit.environment = "append"
216-
environment.UV_EXTRA_INDEX_URL = "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/"
227+
environment.UV_INDEX = "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/"
217228
environment.UV_INDEX_STRATEGY = "unsafe-best-match"
218229
environment.UV_PRERELEASE = "allow"
219230

231+
[[tool.cibuildwheel.overrides]]
232+
select = ["gp*"]
233+
inherit.environment = "append"
234+
environment.UV_INDEX = "https://www.graalvm.org/python/wheels/"
235+
environment.UV_INDEX_STRATEGY = "unsafe-best-match"
236+
test-command = "pytest --benchmark-disable tests"
237+
220238
[tool.pylint]
221239
py-version = "3.9"
222240
ignore-patterns = ['.*\.pyi']

tests/test_pickle.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ def test_histogram_metadata(copy_fn, metadata):
191191
sys.implementation.name == "pypy",
192192
reason="Not remotely supported on PyPY, hangs forever",
193193
)
194+
@pytest.mark.skipif(
195+
sys.implementation.name == "graalpy",
196+
reason="Not supported, throws exception",
197+
)
194198
@pytest.mark.parametrize("mod", [np, math])
195199
def test_pickle_transforms(mod, copy_fn):
196200
ax1 = bh.axis.Regular(

0 commit comments

Comments
 (0)