-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (81 loc) · 2.28 KB
/
pyproject.toml
File metadata and controls
92 lines (81 loc) · 2.28 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "hawk-sdk"
# Version is read dynamically from the VERSION file at the repo root —
# the single source of truth used by release tooling, CI, and the runtime
# `hawk.__version__` constant.
dynamic = ["version"]
description = "Python SDK for the Hawk daemon API"
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Hawk Contributors" },
]
keywords = ["hawk", "sdk", "ai", "agent"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"eval-type-backport>=0.2.0; python_version < '3.10'",
"httpx>=0.25.0",
"pydantic>=2.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"respx>=0.21",
"ruff>=0.4.0",
"mypy>=1.0,<2",
]
# Read the package version from the repo-root VERSION file at build time.
# This keeps Python package metadata, runtime `__version__`, and release
# tooling all in sync from a single source.
[tool.hatch.version]
source = "regex"
path = "VERSION"
pattern = "^(?P<version>[^\\s]+)"
[tool.hatch.build.targets.wheel]
packages = ["src/hawk"]
# Ship the VERSION file inside the package so `_version.py` can read it at
# runtime even after install.
force-include = { "VERSION" = "hawk/VERSION" }
[tool.hatch.build.targets.sdist]
include = [
"src/hawk",
"VERSION",
"README.md",
"LICENSE",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "--strict-markers --tb=short -q"
[tool.ruff]
target-version = "py39"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "SIM", "TCH", "RUF"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["hawk"]
[tool.mypy]
python_version = "3.9"
strict = true
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["opentelemetry.*"]
ignore_missing_imports = true