fix: require pandas>=2.3.3 on Python 3.14 - #530
Merged
Conversation
- pandas 2.2.3 ships no cp314 wheels, so on Python 3.14 it is built from sdist; the resulting C extension segfaults deterministically (reproduced in test_pandas_type_config.py::test_datetime_success) - restrict the requirement with an environment marker so resolution for Python <= 3.13 is unchanged
hiro-o918
force-pushed
the
fix/pandas-py314-segfault
branch
from
July 22, 2026 06:12
1d87f89 to
7b52654
Compare
hiro-o918
marked this pull request as ready for review
July 22, 2026 06:21
hiro-o918
requested review from
Hi-king,
hirosassa,
kitagry,
mamo3gr,
mski-iksm,
ujiuji1259 and
yokomotod
as code owners
July 22, 2026 06:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Investigating why only the
tests (ubuntu-latest, py314)job failed on #529 revealed the root cause is pandas, not pillow.test/test_pandas_type_config.py::test_datetime_success, deterministically reproducible on re-run: https://github.com/m3dev/gokart/actions/runs/29820432602Changes
pyproject.toml: split the pandas requirement with environment markers — unchanged (unconstrained) forpython_version < '3.14',pandas>=2.3.3forpython_version >= '3.14'uv.lock: regenerated. pandas is forked to 2.3.3 (cp314 wheels) for Python >= 3.14 while staying at 2.2.3 for <= 3.13. No other package versions changed (only mechanical resolution-marker splits).QA
uv sync --locked -p 3.14 --group testinstalls pandas 2.3.3 from a prebuilt cp314 wheel (Tag: cp314-cp314-macosx_11_0_arm64)test/test_pandas_type_config.py(previously segfaulting) passes all 6 tests on Python 3.14uv sync --locked -p 3.12still resolves pandas 2.2.3 (resolution for <= 3.13 untouched); the same tests passuv run ruff check ./uv run ruff format --check ./uv run mypy gokart testall passpackaging.markers.Marker.evaluate()(3.13.9 → old branch; 3.14.0rc1 / 3.14.0 / 3.15.0 → new branch; mutually exclusive and exhaustive)