Dhairya-007 opened a new pull request, #4510:
URL: https://github.com/apache/iceberg-python/pull/4510
# Rationale for this change
The **Nightly PyPI Build** has failed every night since 2026-11-26 (it was
green through 2026-11-25). All five matrix legs die at the same place, the `Set
version with RC` step in `pypi-build-artifacts.yml`:
```yaml
run: uv version "$VERSION"
```
`uv version <value>` re-locks the project **and syncs the environment**
unless told not to — `--frozen` is documented as *"Update the version without
re-locking the project"*. That sync resolves the `dev` group against the
default interpreter. #4395 added `3.15` to this workflow's `setup-python` list,
and `setup-python` makes the last version in the list the default, so the
default interpreter is now 3.15. pyarrow publishes no CPython 3.15 wheels yet,
so uv falls back to building it from source and the step dies in CMake looking
for Arrow.
That is the same gap #4395 already accounted for elsewhere, in its own
comment:
```yaml
# The locked dev group (pyarrow 25.0.1, numpy 2.4.6) has no CPython 3.15
wheels yet:
# build the cp315 wheels, and test them once it does
CIBW_TEST_SKIP: "cp315-*"
```
Nothing at this point in the job needs a synced environment. The step only
has to stamp the version into `pyproject.toml`; cibuildwheel then builds the
wheels with its own interpreters.
I deliberately did **not** touch the `3.15` entry or the matrix — building
cp315 wheels is the point of #4395, and this is only about the version-stamping
step not dragging a full dependency sync along with it.
## Are these changes tested?
Reproduced against `main` with 3.15 as the interpreter, which is what the
runner now has:
```console
$ UV_PYTHON=3.15 uv version "0.12.0.dev20261128002500"
...
CMake Error at CMakeLists.txt:294 (find_package):
Could not find a package configuration file provided by "Arrow"
*** CMake configuration failed
hint: `pyarrow` (v25.0.1) was included because `pyiceberg:dev` depends on
`pyspark[connect]` which depends on `pyarrow`
$ echo $?
1
```
With the change:
```console
$ UV_PYTHON=3.15 uv version --frozen "0.12.0.dev20261128002500"
pyiceberg 0.12.0 => 0.12.0.dev20261128002500
$ echo $?
0
```
And the stamped version still reaches the artifact, so `--frozen` does not
break the step that follows:
```console
$ uv build --sdist
Successfully built dist/pyiceberg-0.12.0.dev20261128002500.tar.gz
```
`actionlint` is clean on the changed file.
One thing a reviewer should sanity-check: with `--frozen`, `uv.lock` keeps
the released version for `pyiceberg` itself rather than the `.devN` stamp. `uv
build` does not read the lockfile, and the sdist above carries the right
version, so I believe this is fine — but if you would rather keep the lockfile
in step, `--no-sync` re-locks while still skipping the environment build, and
fixes the failure the same way.
## Are there any user-facing changes?
No. CI only.
---
Claude Code assisted in writing this patch; I reproduced the failure and
verified the fix locally before opening it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]