Skip to content

Commit ef3a029

Browse files
committed
Support tritonclient>=2.34.0, Loosely modified the requirements related to tritonclient
1 parent d283327 commit ef3a029

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ if __name__ == "__main__":
5353
print(f"{max_value} ({arg_max}) = {class_name}")
5454
```
5555

56+
## Release Notes
57+
58+
- 23.06.16 Support tritonclient>=2.34.0
59+
- Loosely modified the requirements related to tritonclient
60+
61+
5662
## Key Features
5763

5864
- [x] Simple configuration. Only `$host:$port` and `$model_name` are required.

setup.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ zip_safe = False
4444
include_package_data = True
4545
packages = find:
4646
install_requires =
47-
tritonclient[all]>=2.18.0
48-
protobuf>=3.5.0,<3.20
47+
tritonclient[all]>=2.21.0
48+
protobuf>=3.5.0
4949
orjson>=3.6.8
5050
reretry>=0.11.1
5151
attrs>=21.2.0
@@ -56,6 +56,9 @@ exclude =
5656
tools*
5757
docs*
5858

59+
# https://github.com/triton-inference-server/client/blob/main/src/python/library/setup.py#L118
60+
# official package is supporting python 3.6+, but python 3.6, 3.7 is not supported.
61+
# https://devguide.python.org/versions/
5962
python_requires = >=3.8
6063

6164

tritony/tools.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@
1616
from tritonclient import grpc as grpcclient
1717
from tritonclient import http as httpclient
1818
from tritonclient.grpc import InferResult
19-
from tritonclient.grpc import _get_inference_request as grpc_get_inference_request
19+
20+
try:
21+
from tritonclient.grpc import _get_inference_request as grpc_get_inference_request
22+
except ImportError:
23+
logging.info("tritonclient[all]>=2.34.0")
24+
from tritonclient.grpc._utils import _get_inference_request as grpc_get_inference_request
25+
26+
2027
from tritonclient.utils import InferenceServerException
2128

2229
from tritony import ASYNC_TASKS

tritony/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.10"
1+
__version__ = "0.0.11"

0 commit comments

Comments
 (0)