Skip to content

Commit a114aae

Browse files
authored
fix: Upperbound limit for protobuf generation (#5309)
* patch upperbound limit for protobuf generation Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * patch upperbound limit for protobuf generation Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * patch upperbound limit for protobuf generation Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * patch upperbound limit for protobuf generation Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * update proto Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * update proto Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * update faiss version Signed-off-by: HaoXuAI <sduxuhao@gmail.com> --------- Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
1 parent e4917ca commit a114aae

File tree

80 files changed

+4433
-5811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+4433
-5811
lines changed

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ delta = ["deltalake"]
6161
docling = ["docling==2.27.0"]
6262
duckdb = ["ibis-framework[duckdb]>=9.0.0,<=9.5.0"]
6363
elasticsearch = ["elasticsearch>=8.13.0"]
64-
faiss = ["faiss-cpu>=1.7.0,<2"]
64+
faiss = ["faiss-cpu>=1.7.0,<=1.10.0"]
6565
gcp = [
6666
"google-api-core>=1.23.0,<3",
6767
"googleapis-common-protos>=1.52.0,<2",
@@ -75,9 +75,9 @@ gcp = [
7575
ge = ["great_expectations>=0.15.41,<1"]
7676
go = ["cffi>=1.15.0"]
7777
grpcio = [
78-
"grpcio>=1.56.2,<2",
79-
"grpcio-reflection>=1.56.2,<2",
80-
"grpcio-health-checking>=1.56.2,<2",
78+
"grpcio>=1.56.2,<=1.62.3",
79+
"grpcio-reflection>=1.56.2,<=1.62.3",
80+
"grpcio-health-checking>=1.56.2,<=1.62.3",
8181
]
8282
hazelcast = ["hazelcast-python-client>=5.1"]
8383
hbase = ["happybase>=1.2.0,<3"]
@@ -123,8 +123,8 @@ ci = [
123123
"cryptography>=43.0,<44",
124124
"ruff>=0.8.0",
125125
"mypy-protobuf>=3.1",
126-
"grpcio-tools>=1.56.2,<2",
127-
"grpcio-testing>=1.56.2,<2",
126+
"grpcio-tools>=1.56.2,<=1.62.3",
127+
"grpcio-testing>=1.56.2,<=1.62.3",
128128
# FastAPI does not correctly pull starlette dependency on httpx see thread(https://github.com/tiangolo/fastapi/issues/5656).
129129
"httpx==0.27.2",
130130
"minio==7.2.11",

sdk/python/feast/protos/feast/core/Aggregation_pb2.py

Lines changed: 3 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4-
import warnings
54

6-
7-
GRPC_GENERATED_VERSION = '1.71.0'
8-
GRPC_VERSION = grpc.__version__
9-
_version_not_supported = False
10-
11-
try:
12-
from grpc._utilities import first_version_is_lower
13-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14-
except ImportError:
15-
_version_not_supported = True
16-
17-
if _version_not_supported:
18-
raise RuntimeError(
19-
f'The grpc package installed is at version {GRPC_VERSION},'
20-
+ f' but the generated code in feast/core/Aggregation_pb2_grpc.py depends on'
21-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24-
)

sdk/python/feast/protos/feast/core/DataFormat_pb2.py

Lines changed: 3 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4-
import warnings
54

6-
7-
GRPC_GENERATED_VERSION = '1.71.0'
8-
GRPC_VERSION = grpc.__version__
9-
_version_not_supported = False
10-
11-
try:
12-
from grpc._utilities import first_version_is_lower
13-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14-
except ImportError:
15-
_version_not_supported = True
16-
17-
if _version_not_supported:
18-
raise RuntimeError(
19-
f'The grpc package installed is at version {GRPC_VERSION},'
20-
+ f' but the generated code in feast/core/DataFormat_pb2_grpc.py depends on'
21-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24-
)

sdk/python/feast/protos/feast/core/DataSource_pb2.py

Lines changed: 6 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4-
import warnings
54

6-
7-
GRPC_GENERATED_VERSION = '1.71.0'
8-
GRPC_VERSION = grpc.__version__
9-
_version_not_supported = False
10-
11-
try:
12-
from grpc._utilities import first_version_is_lower
13-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14-
except ImportError:
15-
_version_not_supported = True
16-
17-
if _version_not_supported:
18-
raise RuntimeError(
19-
f'The grpc package installed is at version {GRPC_VERSION},'
20-
+ f' but the generated code in feast/core/DataSource_pb2_grpc.py depends on'
21-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24-
)

sdk/python/feast/protos/feast/core/DatastoreTable_pb2.py

Lines changed: 3 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4-
import warnings
54

6-
7-
GRPC_GENERATED_VERSION = '1.71.0'
8-
GRPC_VERSION = grpc.__version__
9-
_version_not_supported = False
10-
11-
try:
12-
from grpc._utilities import first_version_is_lower
13-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14-
except ImportError:
15-
_version_not_supported = True
16-
17-
if _version_not_supported:
18-
raise RuntimeError(
19-
f'The grpc package installed is at version {GRPC_VERSION},'
20-
+ f' but the generated code in feast/core/DatastoreTable_pb2_grpc.py depends on'
21-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24-
)

sdk/python/feast/protos/feast/core/DynamoDBTable_pb2.py

Lines changed: 3 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)