-
Notifications
You must be signed in to change notification settings - Fork 288
refactor: Separate protobuf dependencies into sensible extras #522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c3cef00
8ffaa43
0e23416
16ab7cc
9a8fe5d
66b42d1
b956806
965c371
285ff7a
09bb4f1
4be36ea
b7e2c71
5813558
30af48b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,6 @@ oauthoidc | |
| oidc | ||
| opensource | ||
| otherurl | ||
| postgres | ||
| POSTGRES | ||
| postgresql | ||
| protoc | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,8 +11,6 @@ dependencies = [ | |||||
| "httpx>=0.28.1", | ||||||
| "httpx-sse>=0.4.0", | ||||||
| "pydantic>=2.11.3", | ||||||
| "protobuf>=5.29.5", | ||||||
| "google-api-core>=1.26.0", | ||||||
| ] | ||||||
|
|
||||||
| classifiers = [ | ||||||
|
|
@@ -29,9 +27,10 @@ classifiers = [ | |||||
| ] | ||||||
|
|
||||||
| [project.optional-dependencies] | ||||||
| http-server = ["fastapi>=0.115.2", "sse-starlette", "starlette"] | ||||||
| jsonrpc-server = ["fastapi>=0.115.2", "sse-starlette", "starlette"] | ||||||
| http-server = ["a2a-sdk[jsonrpc-server]", "protobuf>=5.29.5"] | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. HTTP+JSON/REST also requires these dependencies. rest_handler.py depends on a2a_pb2:
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is already encompassed here. a2a.grpc.a2a_pb2 has no grpcio dependencies. Just protobuf. This is encapsulated in the PR already. Any concerns here?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
a2a-python/src/a2a/grpc/a2a_pb2.py Line 26 in 89e9b7c
I think we need to include it here as well. |
||||||
| encryption = ["cryptography>=43.0.0"] | ||||||
| grpc = ["grpcio>=1.60", "grpcio-tools>=1.60", "grpcio_reflection>=1.7.0"] | ||||||
| grpc = ["grpcio>=1.60", "grpcio-tools>=1.60", "grpcio_reflection>=1.7.0", "google-api-core>=1.26.0", "protobuf>=5.29.5"] | ||||||
| telemetry = ["opentelemetry-api>=1.33.0", "opentelemetry-sdk>=1.33.0"] | ||||||
| postgresql = ["sqlalchemy[asyncio,postgresql-asyncpg]>=2.0.0"] | ||||||
| mysql = ["sqlalchemy[asyncio,aiomysql]>=2.0.0"] | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why make changes to this file? It appears that entires were in an alphabetical order here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unclear. i think this came directly from the github action when updating readme. i can revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact I think this may have come from the Format script which must have a bug for capitalization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/a2aproject/a2a-python/pull/550### to address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reran with ^ and applied. removed postres dup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we leave it as it was? I'm not entirely familiar with how this file is used and I worry that dependents may be case-sensitive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was intentionally left case-sensitive, because the case-insensitive sort wasn't always consistent.