mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
The unified `hanzo` tool imports HanzoCloud from hanzo_tools.core, which hanzo-tools first shipped in 0.3.3 — but nothing in the dependency graph required it. hanzo-tools-api asked for `hanzo-tools-core>=0.1.0`, an empty shim whose own floor is hanzo-tools>=0.3.2, and 0.3.2 has no cloud.py at all. A resolver was therefore free to satisfy every constraint and still produce an install where `from hanzo_tools.core import HanzoCloud` raises ImportError. That is exactly what happened: the legacy-tool gate logged "unified hanzo tool not importable" and fell back, and the dev venv had to install hanzo-tools editable to get a working `hanzo`. Name the real dependency at the real floor: - hanzo-tools-api: hanzo-tools-core>=0.1.0 -> hanzo-tools>=0.3.4. It imports hanzo_tools.core directly, so it must depend on the package that owns it; the >=0.1.0 shim floor also still admitted the shadowing duplicate. - hanzo-tools-vector: hanzo-tools>=0.3.0 -> >=0.3.4 (cloud_vector.py). - hanzo-mcp: hanzo-tools>=0.3.2 -> >=0.3.4, hanzo-tools-api>=0.3.1 -> >=0.3.2. Metadata only, on versions not yet published. No version bumps. Co-authored-by: Hanzo Dev <[email protected]>
58 lines
1.6 KiB
TOML
58 lines
1.6 KiB
TOML
[project]
|
|
name = "hanzo-tools-api"
|
|
version = "0.3.2"
|
|
description = "Generic API tool for calling any REST API via OpenAPI specs - search, explore, and dynamically use ANY API"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
license = { text = "MIT" }
|
|
authors = [{ name = "Hanzo AI", email = "[email protected]" }]
|
|
keywords = ["hanzo", "mcp", "api", "openapi", "tools"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
]
|
|
|
|
dependencies = [
|
|
# hanzo_tool.py imports HanzoCloud from hanzo_tools.core, which canonical
|
|
# hanzo-tools owns and first shipped in 0.3.3. The old hanzo-tools-core dep
|
|
# named a shim whose floor (0.1.0) both allowed the shadowing duplicate and
|
|
# guaranteed nothing about HanzoCloud, so the unified tool failed to import.
|
|
"hanzo-tools>=0.3.4",
|
|
"httpx>=0.27.0",
|
|
"pydantic>=2.0",
|
|
"pyyaml>=6.0",
|
|
"aiofiles>=24.1.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.24.0",
|
|
"respx>=0.22.0", # Mock httpx requests
|
|
]
|
|
|
|
[project.entry-points."hanzo.tools"]
|
|
api = "hanzo_tools.api:TOOLS"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["hanzo_tools"]
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "B", "UP"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
asyncio_default_fixture_loop_scope = "function"
|