mirror of
https://github.com/zap-proto/spec.git
synced 2026-10-30 15:04:03 +00:00
config.py imported the stdlib 'tomllib' unconditionally, but that module only exists in 3.11+. On 3.10 the import crashed at package-import time, breaking ALL test collection (pytest exit 2) despite requires-python>=3.10. Use tomli as 'tomllib' on <3.11 (identical API; tomllib is tomli upstream) and declare 'tomli>=2.0; python_version < 3.11' as a runtime dependency. Green now on 3.10 / 3.11 / 3.12: ruff + mypy clean, 129 passed, ~91% cov.
78 lines
1.9 KiB
TOML
78 lines
1.9 KiB
TOML
[project]
|
|
name = "zap-schema"
|
|
version = "1.0.0"
|
|
description = "ZAP - Zero-Copy Application Protocol for AI agent communication"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
authors = [{ name = "Hanzo AI", email = "[email protected]" }]
|
|
requires-python = ">=3.10"
|
|
keywords = ["zap", "rpc", "mcp", "ai-agents", "protocol"]
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Software Development :: Libraries",
|
|
"Topic :: System :: Networking",
|
|
]
|
|
dependencies = [
|
|
"anyio>=4.0",
|
|
"httpx>=0.27",
|
|
"tomli>=2.0; python_version < '3.11'",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
# Optional post-quantum crypto backends. The crypto module degrades gracefully
|
|
# when these are absent; installing them enables the real ML-KEM/ML-DSA paths.
|
|
crypto = [
|
|
"cryptography>=43.0",
|
|
"pqcrypto>=0.4.0",
|
|
]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.24",
|
|
"pytest-cov>=5.0",
|
|
"ruff>=0.8",
|
|
"mypy>=1.13",
|
|
"zap-schema[crypto]",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://zap-proto.github.io/zap"
|
|
Documentation = "https://zap-proto.github.io/zap/docs"
|
|
Repository = "https://github.com/zap-proto/zap"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/zap_schema"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "W", "UP"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
strict = true
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
pythonpath = ["src"]
|
|
|
|
[tool.coverage.run]
|
|
source = ["src/zap_schema"]
|
|
branch = true
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 80
|
|
show_missing = true
|