Repository navigation
Pin code generator versions - #837
Merged
Merged
Conversation
The bindings were generated with grpcio-tools 1.75.0 but requirements-dev.txt allowed any newer version. The release bot picked up 1.85.3, which changed every *_pb2*.py file and raised the minimum runtime to protobuf 7.35.1 and grpcio 1.85.3. Pin grpcio-tools, protoc-gen-mavsdk and ruff to the versions that reproduce the current bindings exactly. Old gencode works with newer runtimes, so this keeps the widest compatibility. grpcio-tools 1.75.0 has no wheels for Python > 3.13, so run the update workflow on 3.13 and stop installing requirements-dev.txt in the Windows job, which only builds wheels and doesn't need it. Also raise grpcio in requirements.txt to 1.75.0: the generated *_pb2_grpc.py files already raise at import time on anything older.
julianoes
commented
Nov 24, 2026
julianoes
left a comment
Collaborator
Author
There was a problem hiding this comment.
No idea what versions we should use, but this presumably works.
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.
The release bot's first PR (#836) changed all 94 generated files because
requirements-dev.txtallowed anygrpcio-tools>=1.40.0and it installed 1.85.3. That regenerated every*_pb2*.pyand would have required protobuf >= 7.35.1 and grpcio >= 1.85.3 at import time, whilerequirements.txtallows protobuf 6.x and older grpcio.grpcio-tools==1.75.0,protoc-gen-mavsdk==2.1.0,ruff==0.17.6. Regenerating currentmainwith these gives zero diff; regenerating MAVSDK v4.2.1 gives only the 24 files with real changes.requirements-dev.txt(it only builds wheels; it was on Python 3.15).grpcio>=1.75.0inrequirements.txt: the existing*_pb2_grpc.pyalready raise on older grpcio.