Skip to content

fix(packaging): declare dependency floors the package actually works with - #30

Merged
sujal-maheshwari2004 merged 1 commit into
mainfrom
fix/dependency-floors
Nov 15, 2026
Merged

sujal-maheshwari2004 merged 1 commit into
mainfrom
fix/dependency-floors

Conversation

@sujal-maheshwari2004

Copy link
Copy Markdown
Member

Fixes #13. Fixes #14.

Floor Was Now Why
Python >=3.9 >=3.10 Every protobuf 7.x release needs Python 3.10, so pip install priompt-sdk on 3.9 failed with ResolutionImpossible.
grpcio >=1.60 >=1.63 The generated stubs pass _registered_method=True. grpcio 1.60–1.62 reject it with TypeError in PromptClient().
protobuf >=7.35 >=7.35.1 Found while testing: the stubs are 7.35.1 gencode, and the 7.35.0 runtime refuses them with VersionError: ... gencode 7.35.1 runtime 7.35.0.

Also adds Python version classifiers and corrects the floor note in buf.gen.yaml.

Tested (Python 3.10 via uv, grpcio and protobuf pinned to exact versions)

  • grpcio 1.62.3: TypeError: Channel.unary_unary() got an unexpected keyword argument '_registered_method'.
  • grpcio 1.63.0: the client constructs.
  • protobuf 7.35.0: test collection fails with the VersionError above.
  • protobuf 7.35.1: pytest passes, 28 of 28.
  • Latest dependencies on Python 3.13: 28 of 28 pass.

This needs a patch release (0.7.2) so the corrected metadata reaches PyPI. A CI job that tests these minimum versions is tracked in #22.

…with

- requires-python >=3.10: every protobuf 7.x release needs 3.10, so 3.9
  installs failed with ResolutionImpossible.
- grpcio >=1.63: the generated stubs pass _registered_method=True, which
  grpcio 1.60-1.62 reject with TypeError in PromptClient().
- protobuf >=7.35.1: the stubs are 7.35.1 gencode and the 7.35.0 runtime
  refuses to load them (VersionError).

Fixes #13
Fixes #14
@sujal-maheshwari2004
sujal-maheshwari2004 merged commit 3e9b311 into main Nov 15, 2026
1 check passed
@sujal-maheshwari2004
sujal-maheshwari2004 deleted the fix/dependency-floors branch November 15, 2026 05:11
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.

grpcio>=1.60 floor is too low: generated stubs need grpcio 1.63+ Package declares Python 3.9 support but cannot be installed on 3.9

1 participant