Skip to content

Drop Python 3.9 from CI, add 3.14, bump checkout/setup-python - #463

Merged
Shaurya0108 merged 2 commits into
masterfrom
drop-py39-add-py314-315
Nov 13, 2026
Merged

Shaurya0108 merged 2 commits into
masterfrom
drop-py39-add-py314-315

Conversation

@Shaurya0108

Copy link
Copy Markdown
Collaborator

The ubuntu-latest runner label now resolves to Ubuntu 26.04, and actions/setup-python has no 3.9 build for it, so the 3.9 ubuntu job fails at "Set up Python" on every PR. 3.9 has been end-of-life since 2025-10-31.

  • Remove 3.9 from the test matrices in main.yml and release.yml and from CIBW_BUILD; set requires-python to >=3.10 and the default tox env to py3.10.
  • Add 3.14 to both matrices and CIBW_BUILD.
  • Bump actions/checkout to v5 and actions/setup-python to v6 to clear the Node 20 deprecation warning.
  • Update the README tox/pyenv examples, which still referenced 3.8/3.9.

3.15 is deliberately not added yet: jsonconversion 2.0.0 calls the private json.encoder._make_iterencode with an isinstance= keyword that 3.15 removed, so tests/test_json_encoder.py fails on 3.15 until that dependency is fixed or replaced.

Shaurya Dwivedi added 2 commits November 9, 2026 23:55
The ubuntu-latest runner label now resolves to Ubuntu 26.04, and
actions/setup-python has no 3.9 build for it, so the 3.9 ubuntu job
fails at "Set up Python" on every PR. 3.9 has been end-of-life since
2025-10-31.

- Remove 3.9 from the test matrices in main.yml and release.yml and
  from CIBW_BUILD; set requires-python to >=3.10 and the default tox
  env to py3.10.
- Add 3.14 to both matrices and CIBW_BUILD.
- Bump actions/checkout to v5 and actions/setup-python to v6 to clear
  the Node 20 deprecation warning.
- Update the README tox/pyenv examples, which still referenced 3.8/3.9.

3.15 is deliberately not added yet: jsonconversion 2.0.0 calls the
private json.encoder._make_iterencode with an isinstance= keyword that
3.15 removed, so tests/test_json_encoder.py fails on 3.15 until that
dependency is fixed or replaced.
ionc_write_annotations decref'd the PySequence_Fast result twice (once
before `fail:` and again after it) and never released the ref returned
by PyObject_GetAttr. For tuple annotations the two mistakes cancel out,
but when ion_annotations is any other iterable (e.g. a str),
PySequence_Fast builds a new list that is then freed twice.

On Python 3.14 this corrupts the list freelist and intermittently
segfaults in test_json_encoder.py::test_annotation_suppression, which
is why the new 3.14 CI jobs fail.

Release the GetAttr ref once, fail cleanly if PySequence_Fast returns
NULL, and decref the sequence only once at `fail:`.
@Shaurya0108
Shaurya0108 marked this pull request as ready for review November 13, 2026 21:23
@Shaurya0108
Shaurya0108 merged commit 57ac5bc into master Nov 13, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants