Skip to content

Commit 838b393

Browse files
authored
Update requirements (#21)
1 parent 19fa6e8 commit 838b393

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ if __name__ == "__main__":
5555

5656
## Release Notes
5757

58+
- 24.07.11 Upgrade minimum tritonclient version to 2.34.0
5859
- 23.08.30 Support `optional` with model input, `parameters` on config.pbtxt
5960
- 23.06.16 Support tritonclient>=2.34.0
6061
- Loosely modified the requirements related to tritonclient

pyproject.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,18 @@ requires = [
33
"setuptools >= 48",
44
"wheel >= 0.29.0",
55
]
6-
build-backend = 'setuptools.build_meta'
6+
build-backend = 'setuptools.build_meta'
7+
8+
[tool.isort]
9+
profile = "black"
10+
line_length = 120
11+
12+
[tool.ruff]
13+
target-version = "py310"
14+
line-length = 120
15+
16+
[tool.ruff.lint]
17+
ignore = ["F811","F841","E203","E402","E501","E712","B019"]
18+
19+
[tool.lint.isort]
20+
forced-separate = ["tests"]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ packages = find:
4646
package_dir =
4747
=.
4848
install_requires =
49-
tritonclient[all]>=2.21.0
49+
tritonclient[all]>=2.34.0
5050
protobuf>=3.5.0
5151
orjson>=3.6.8
5252
reretry>=0.11.1

tritony/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def init_triton_client(
9191
flag: TritonClientFlag,
9292
) -> grpcclient.InferenceServerClient | httpclient.InferenceServerClient:
9393
assert not (
94-
flag.streaming and not (flag.protocol is TritonProtocol.grpc)
94+
flag.streaming and flag.protocol is not TritonProtocol.grpc
9595
), "Streaming is only allowed with gRPC protocol"
9696

9797
if flag.protocol is TritonProtocol.grpc:

tritony/tools.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616
from tritonclient import grpc as grpcclient
1717
from tritonclient import http as httpclient
1818
from tritonclient.grpc import InferResult
19-
20-
try:
21-
from tritonclient.grpc import _get_inference_request as grpc_get_inference_request
22-
except ImportError:
23-
warnings.warn(UserWarning("tritonclient[all]>=2.34.0"))
24-
from tritonclient.grpc._utils import _get_inference_request as grpc_get_inference_request
25-
19+
from tritonclient.grpc._utils import _get_inference_request as grpc_get_inference_request
2620
from tritonclient.utils import InferenceServerException
2721

2822
from tritony import ASYNC_TASKS

0 commit comments

Comments
 (0)