-
Notifications
You must be signed in to change notification settings - Fork 51
/
pyproject.toml
174 lines (154 loc) · 4.74 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[project]
name = "nvidia-pytriton"
readme = "docs/pypi.rst"
description = "PyTriton - Flask/FastAPI-like interface to simplify Triton's deployment in Python environments."
dynamic = ["version"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: Unix",
]
authors = []
maintainers = []
keywords = []
license = { text = "Apache 2.0" }
requires-python = ">=3.8,<4"
dependencies = [
"numpy >= 1.21, <2.0.0",
"protobuf >= 3.7",
"pyzmq >= 23.0",
"sh >= 1.14",
"tritonclient[grpc,http] ~= 2.50",
"grpcio >= 1.64.1", # fix grpc client compatibility
"typing_inspect >= 0.6.0",
"wrapt >= 1.11",
"typer >= 0.9.0",
"importlib_metadata >= 7.0.1",
]
[project.urls]
"Documentation" = "https://triton-inference-server.github.io/pytriton"
"Source" = "https://github.com/triton-inference-server/pytriton"
"Tracker" = "https://github.com/triton-inference-server/pytriton/issues"
[project.optional-dependencies]
test = [
"pytest ~= 8.1.1",
"pytest-codeblocks ~= 0.16", # 0.17 causes fail during numpy import
"pytest-mock ~= 3.14",
"pytest-timeout ~= 2.2",
"pytest-asyncio ~= 0.23.5",
"pytype!=2021.11.18,!=2022.2.17",
"pre-commit >= 3.5", # Python 3.8 maximum for 24.02
"tox >= 4.13",
"tqdm >= 4.64.1",
"psutil ~= 5.9",
"py-spy ~= 0.3",
"opentelemetry-api <= 1.27.0", # Used for testing Open Telemetry documentiation
"opentelemetry-sdk <= 1.27.0", # There is the conflict with tritonclient GRPC
"opentelemetry-instrumentation-requests ~= 0.45b0",
"opentelemetry-exporter-otlp <= 1.27.0",
]
doc = [
"GitPython >= 3.1",
"mike >= 2.0.0",
"mkdocs-htmlproofer-plugin >= 1.1",
"mkdocs-material >= 9.5",
"mkdocstrings[python] >= 0.24.0",
"mkdocstrings-python >= 1.8"
]
dev = [
"nvidia-pytriton[test]",
"nvidia-pytriton[doc]",
"build >= 0.8, <1.0.0", # to support --plat-name for multiarch build
"ipython >= 8.12", # Python 3.8 maximum for 24.02
"packaging ~= 24.0",
"pudb >= 2024.1",
"pip >= 24.0", # to support editable installation
"ruff >= 0.3.0",
"twine >= 5.0",
]
[build-system]
requires = [
# Setuptools must albo be installed separately in add_libs_to_wheel.sh
# to support Python 3.12. Update versions in both places.
"setuptools>=69.2.0",
"setuptools_scm[toml]>=8.0",
"wheel>=0.42",
]
build-backend = "setuptools.build_meta"
[project.scripts]
pytriton = "pytriton.__main__:main"
[tool.setuptools]
include-package-data = true
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
namespaces = false
include = ["pytriton"]
[tool.setuptools.package-data]
pytriton = [
"**/*",
]
[tool.setuptools.exclude-package-data]
pytriton = [
"tritonserver/external_libs/*",
]
[tool.setuptools_scm]
[tool.distutils.bdist_wheel]
plat-name = "linux_x86_64"
[tool.ruff]
preview = true
line-length = 120
indent-width = 4
target-version = "py38"
[tool.ruff.lint]
select = ["B", "C", "C4", "C90", "D", "E", "F", "I", "N", "W", "T", "T10", "T20", "UP", "CPY"]
ignore = ["E266", "E501", "N818"]
exclude = []
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["D104"]
"**/__version__.py" = ["D100"]
"**/{tests,docs,tools,examples}/*" = ["C416", "D"]
"**/tests/*" = ["CPY"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.flake8-copyright]
author = "NVIDIA CORPORATION"
notice-rgx = 'Copyright \(c\) \d{4}(-\d{4})*,'
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
[tool.vulture]
exclude = []
ignore_decorators = []
ignore_names = []
make_whitelist = true
min_confidence = 80
paths = ["pytriton"]
sort_by_size = true
verbose = false