-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
154 lines (122 loc) · 2.96 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
[tool.poetry]
name = "instill-sdk"
version = "0.15.0"
description = "python sdk for Instill AI products"
packages = [{ include = "instill" }]
license = "MIT"
authors = ["instill-ai <[email protected]>"]
readme = "README.md"
homepage = "https://pypi.org/project/instill-sdk"
documentation = "https://instill-sdk.readthedocs.io"
repository = "https://github.com/instill-ai/python-sdk"
maintainers = ["Heiru Wu <[email protected]>"]
keywords = []
classifiers = [
"Development Status :: 1 - Planning",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
]
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
grpcio = "^1.59.0"
pyyaml = "^6.0.1"
numpy = "^1.21.0"
protobuf = "^4.24.2"
requests = "^2.32.3"
fastapi = "^0.109.2"
google-api-core = "^2.11.1"
googleapis-common-protos = "^1.60.0"
protoc-gen-openapiv2 = "^0.0.1"
pydantic = ">=1.10.13"
pillow = "^10.1.0"
ray = { version = "2.21.0", extras = ["serve"] }
jsonschema = "^4.20.0"
types-requests = "^2.32.0.20240712"
types-protobuf = "^4.24.0.1"
types-pyyaml = "^6.0.12.11"
[tool.poetry.dev-dependencies]
# Formatters
black = "^24.3"
tomli = "*" # missing 'black' dependency
isort = "^5.10"
# Linters
mypy = "^1.0"
pydocstyle = "^6.1"
pylint = "~2.15"
wrapt = "*" # missing 'pylint' dependency
# Testing
pytest = "^7.3"
pytest-describe = "^2.0"
pytest-expecter = "^3.0"
pytest-random = "*"
pytest-cov = "^4.1"
freezegun = "*"
# Reports
coveragespace = "^6.0"
# Documentation
mkdocs = "~1.3"
pygments = "^2.11.1"
# Tooling
pyinstaller = "5.13.1"
sniffer = "*"
MacFSEvents = { version = "*", platform = "darwin" }
pync = { version = "*", platform = "darwin" }
ipython = "^8.10.0"
ipykernel = "^6.28.0"
mypy-protobuf = "^3.5.0"
grpcio-tools = "^1.54.2"
datamodel-code-generator = "^0.25.2"
jsonref = "^1.1.0"
# Publish
twine = "^4.0.2"
[tool.poetry.scripts]
instill = "instill.helpers.cli:cli"
[tool.black]
quiet = true
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
)
'''
[tool.isort]
profile = "black"
skip_glob = ["**/protogen/*", "**/protobufs/*"]
[tool.mypy]
exclude = ['instill/resources/schema']
ignore_missing_imports = true
no_implicit_optional = true
check_untyped_defs = 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]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"