Commit 8878b2c
authored
Fix Nightly PyPi Artifact Wheels Build (#2678)
# Rationale for this change
Nightly build has been failing for some time since dropping support
[python 3.9
support.](https://github.com/apache/iceberg-python/pull/2554/files#diff-edbf927c810f310a669913604ffe71ffaecea1b9ef73f137f9d469491ea1c3d9L72)
That PR included a change that dropped the upper bound of the python
version.
```
- CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9,<3.13"
+ CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10"
```
That made cibuildwheel try Python 3.14 and sometimes the free-threaded
*t builds. Those are part of the PEP 703 effort to allow Python without
the GIL. Therefore, the avro related code would throw a message breaking
the build and I don't think this has been evaluated yet. So this change
adds `CIBW_SKIP: "cp3*t-*" ` to skip free-threaded ABIs for now, and we
can continue building on new regular CPythons while avoiding PEP 703
no-GIL builds.
Bulld failures:
-
https://github.com/apache/iceberg-python/actions/workflows/nightly-pypi-build.yml
```
../venv-test-arm64/lib/python3.14t/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
/Users/runner/work/iceberg-python/iceberg-python/tests/avro/test_decoder.py:29: in <module>
from pyiceberg.avro.decoder_fast import CythonBinaryDecoder
E RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'pyiceberg.avro.decoder_fast', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.
=========================== short test summary info ============================
ERROR ../../../../../../../../../Users/runner/work/iceberg-python/iceberg-python/tests/avro/test_decoder.py - RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'pyiceberg.avro.decoder_fast', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.13s ===============================
```
## Are these changes tested?
Yes
## Are there any user-facing changes?
No1 parent 1f9c46b commit 8878b2c
File tree
2 files changed
+4
-0
lines changed- .github/workflows
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
0 commit comments