-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (70 loc) · 1.99 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (70 loc) · 1.99 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
[project]
name = "opencode-py"
version = "0.8.0"
description = "Python SDK for Opencode — the open source AI coding agent"
readme = "README.md"
long_description_content_type = "text/markdown"
license = { text = "MIT" }
keywords = ["opencode", "ai", "sdk", "coding-agent", "llm", "python-sdk"]
authors = [
{ name = "Sergey Kislyakov", email = "s.kislyakov84@gmail.com" },
]
requires-python = ">=3.10"
dependencies = [
"httpx>=0.27.0",
"typing-extensions>=4.6.0",
"pydantic>=2.0.0",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.21",
"httpx>=0.27.0",
"build>=1.0",
"twine>=4.0",
"ruff>=0.5.0",
"mypy>=1.10.0",
]
[project.urls]
Homepage = "https://github.com/skislyakow/opencode-py"
Repository = "https://github.com/skislyakow/opencode-py"
Documentation = "https://github.com/skislyakow/opencode-py"
Changelog = "https://github.com/skislyakow/opencode-py/blob/main/CHANGELOG.md"
[project.scripts]
opencode-py = "opencode.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/opencode"]
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
[tool.ruff.lint.per-file-ignores]
"src/opencode/_response_models.py" = ["N815"]
"src/opencode/_stream_events.py" = ["N815"]
"tests/*" = ["E501"]
[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
files = "src/opencode"
[[tool.mypy.overrides]]
module = "tests.*"
disable_error_code = "untyped-decorator"
[tool.pytest.ini_options]
testpaths = ["tests"]