Skip to content

Conversation

@nielspardon
Copy link
Member

@nielspardon nielspardon commented Jan 8, 2026

Generate code with protoc 29.5 which allows to run the code with
any version of the protobuf library that's newer than v5.x.

Signed-off-by: Niels Pardon <par@zurich.ibm.com>
@nielspardon nielspardon requested review from tokoko and vbarua January 8, 2026 10:54
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

ACTION NEEDED

Substrait follows the Conventional Commits
specification
for
release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

- remote: buf.build/protocolbuffers/python:v29.5
out: src
- remote: buf.build/community/nipunn1313-mypy:v4.0.0
- remote: buf.build/community/nipunn1313-mypy:v3.7.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the mypy plugin says v4.0.0 has not been tested with older protoc versions than v32.0: https://github.com/nipunn1313/mypy-protobuf/tree/v4.0.0?tab=readme-ov-file#requirements-to-run-mypy-protobuf

readme = "README.md"
requires-python = ">=3.10,<3.14"
dependencies = ["protobuf >=6.33,<7"]
dependencies = ["protobuf >=5,<7"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in theory the upper bound could be even higher given this statement:

Python may break generated code compatibility in specific future major version releases, but it will be coupled with poison pill warnings and errors in advance. As of 6.32.0, all generated code since 3.20.0 will be supported until at least 8.x.y.

https://protobuf.dev/support/cross-version-runtime-guarantee/#python

Copy link
Contributor

@tokoko tokoko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tokoko tokoko merged commit 849c751 into substrait-io:main Jan 8, 2026
20 of 21 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