Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (104 loc) · 3.49 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (104 loc) · 3.49 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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "tensicai"
dynamic = ["version"]
description = "Official Python SDK for tensic.ai — chat, RAG knowledge, agents and OpenAI-compatible access from your own product"
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "team.blue", email = "pedro.dias@team.blue" }]
maintainers = [{ name = "Pedro Dias", email = "pedro.dias@team.blue" }]
keywords = ["tensic", "tensic.ai", "ai", "rag", "agents", "llm", "sdk", "api-client"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
# ``anyio`` is imported directly by the async client (back-off sleeps and threaded file
# reads), so it is declared rather than relied on transitively through httpx/httpcore.
dependencies = ["anyio>=3.5", "httpx>=0.25,<1"]
[project.optional-dependencies]
dev = [
"pytest>=8",
"pytest-asyncio>=0.23",
"ruff>=0.6",
"mypy>=1.10",
"build>=1.2",
"twine>=5",
]
[project.urls]
Homepage = "https://tensic.ai"
Documentation = "https://github.com/tensicai/python-sdk#readme"
Repository = "https://github.com/tensicai/python-sdk"
Issues = "https://github.com/tensicai/python-sdk/issues"
# docs/INTERNALS.md is the contributor architecture guide, not a consumer API reference — the
# usage documentation a customer wants is the README (linked as ``Documentation`` above).
Architecture = "https://github.com/tensicai/python-sdk/blob/main/docs/INTERNALS.md"
Changelog = "https://github.com/tensicai/python-sdk/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/tensicai/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/tensicai"]
[tool.hatch.build.targets.sdist]
# The sdist ships the test suite, so it must also ship everything those tests read
# (.github/workflows/) and everything CONTRIBUTING.md tells you to run (Makefile).
include = [
".github",
"src",
"tests",
"examples",
"docs",
"README.md",
"CHANGELOG.md",
"CONTRIBUTING.md",
"LICENSE",
"Makefile",
"pyproject.toml",
]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
ignore = ["RUF012"]
[tool.ruff.lint.isort]
known-first-party = ["tensicai"]
[tool.ruff.lint.per-file-ignores]
"src/tensicai/types/__init__.py" = ["F403"]
[tool.mypy]
python_version = "3.10"
strict = true
files = ["src"]
warn_unreachable = true
show_error_codes = true
pretty = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
# examples/openai_compatible.py and the README show the official ``openai`` package, which is
# not a dependency of this project; treat it as untyped rather than failing on the import.
[[tool.mypy.overrides]]
module = "openai"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "-ra"
xfail_strict = true
filterwarnings = ["error::pytest.PytestUnraisableExceptionWarning"]