-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (134 loc) · 3.47 KB
/
pyproject.toml
File metadata and controls
167 lines (134 loc) · 3.47 KB
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
[tool.poetry]
description = "python sdk for Instill AI products"
name = "instill-sdk"
version = "0.18.0"
packages = [{include = "instill"}]
authors = ["instill-ai <drop@instill-ai.com>"]
license = "MIT"
documentation = "https://instill-sdk.readthedocs.io"
homepage = "https://pypi.org/project/instill-sdk"
readme = "README.md"
repository = "https://github.com/instill-ai/python-sdk"
maintainers = ["Ping-Lin Chang <ping-lin.chang@instill-ai.com>"]
classifiers = [
"Development Status :: 1 - Planning",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
]
keywords = []
[tool.poetry.dependencies]
fastapi = "^0.115.12"
google-api-core = {version = "^2.22.0", extras = ["grpc"]}
googleapis-common-protos = "^1.60.0"
grpcio = "^1.68.0"
jsonschema = "^4.20.0"
numpy = ">=1.26,<1.28"
pillow = "^11.0.0"
pkginfo = "^1.12.1.2"
protobuf = "^5.28.0"
protoc-gen-openapiv2 = "^0.0.1"
pydantic = ">=1.10.13"
python = ">=3.9,<3.14"
pyyaml = "^6.0.1"
ray = {version = "^2.47.0", extras = ["default"]}
requests = "2.32.3"
starlette = "^0.46.1"
types-protobuf = "^5.28.0"
types-pyyaml = "^6.0.12.11"
types-requests = "2.31.0.6"
urllib3 = "1.26.20"
uvicorn = "^0.34.0"
virtualenv = "^20.30.0"
# Explicit pins to avoid dependency conflicts
# Upgrading opentelemetry packages to support protobuf 5.x
opentelemetry-exporter-otlp = "^1.29.0"
opentelemetry-exporter-otlp-proto-common = "^1.29.0"
opentelemetry-exporter-otlp-proto-grpc = "^1.29.0"
opentelemetry-exporter-otlp-proto-http = "^1.29.0"
opentelemetry-proto = "^1.29.0"
[tool.poetry.scripts]
instill = "instill.helpers.cli:cli"
[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| protogen
| schema
| protobufs
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
quiet = true
[tool.isort]
profile = "black"
skip_glob = ["**/protogen/*", "**/protobufs/*"]
[tool.mypy]
check_untyped_defs = true
exclude = ['instill/resources/schema']
ignore_missing_imports = true
no_implicit_optional = true
cache_dir = ".cache/mypy/"
[tool.pytest.ini_options]
filterwarnings = ["ignore:::.*google", "ignore:::.*pkg_resources*"]
addopts = """
--strict-markers
-r sxX
--show-capture=log
--cov-report=html
--cov-report=term-missing:skip-covered
--no-cov-on-fail
"""
cache_dir = ".cache/pytest/"
markers = []
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.poetry.group.dev.dependencies]
# Formatters
black = "^24.3"
isort = "^5.10"
tomli = "*" # missing 'black' dependency
# Linters
mypy = "^1.0"
pydocstyle = "^6.1"
pylint = "^3.0.0"
wrapt = "*" # missing 'pylint' dependency
# Testing
freezegun = "*"
pytest = "^7.3"
pytest-cov = "^4.1"
pytest-describe = "^2.0"
pytest-expecter = "^3.0"
pytest-random = "*"
# Reports
coveragespace = "^6.0"
# Documentation
mkdocs = "~1.3"
pygments = "^2.11.1"
# Tooling
MacFSEvents = {version = "*", platform = "darwin", python = "<3.13"}
datamodel-code-generator = "^0.25.2"
grpcio-tools = "^1.68.0"
ipykernel = "^6.28.0"
ipython = "^8.10.0"
jsonref = "^1.1.0"
mypy-protobuf = "^3.5.0"
pyinstaller = "^6.16.0"
pync = {version = "*", platform = "darwin"}
sniffer = {version = "*", python = "<3.13"}
# Publish
twine = "^4.0.2"