fix(deps): require protobuf >=7.34.1 for utxorpc-spec 0.19#9
Merged
Conversation
utxorpc-spec 0.19 ships protobuf gencode 7.34.1; the runtime must not be older than the gencode, so the previous ^6.33.0 bound made 'import utxorpc' fail with a protobuf VersionError. CI relocks poetry.lock on a clean checkout.
utxorpc-spec 0.19.1 corrects the protobuf bound (>=7.34.1,<8) to match its generated gencode, making the protobuf ^7.34.1 requirement resolvable.
protobuf 7.x (pulled in transitively via utxorpc-spec 0.19.1) requires Python >=3.10, which is incompatible with the previous >=3.9.1 floor.
utxorpc-spec 0.19.2 ships the protoletariat-rewritten imports, making the generated package importable.
Several client modules used protobuf enums (e.g. Stage, an EnumTypeWrapper) as type-annotation parameters, which raised TypeError at import time. Add 'from __future__ import annotations' so annotations are not evaluated at runtime.
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.
Problem
utxorpc-spec0.19 ships protobuf gencode 7.34.1, butpyproject.tomlpinnedprotobuf = "^6.33.0"(runtime <7.0). Protobuf requires the runtime version to be ≥ the linked gencode version, soimport utxorpcfailed:This completes the spec-0.19 bump, which raised
utxorpc-specbut leftprotobufbehind.Fix
Bump the
protobufconstraint to^7.34.1. CI relockspoetry.lockon a clean checkout.