sparkle/pyproject.toml
fiser_jun 4745f264b2
2026-08-04 14:34:00 +08:00

45 lines
997 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[project]
name = "sparkle-engine"
version = "0.1.0"
description = "SparkleApple Silicon 上流式 MoE 推理Qwen3-Next-80B 8bit"
readme = "README.md"
# 仓库自带 native_moe_ext*.cpython-314*.so须与扩展 ABI 一致
requires-python = "==3.14.*"
dependencies = [
"fastapi>=0.115",
"mlx>=0.31",
"mlx-lm>=0.31",
"numpy>=2.0",
"textual>=0.80",
"uvicorn>=0.30",
]
[project.scripts]
sparkle = "mlx_streaming.cli:main"
# 仅重编 native / 跑单测时需要;日常推理用已有 .venv + .so 即可
[dependency-groups]
dev = [
"httpx>=0.27",
"nanobind>=2.12.0",
"pytest>=8",
"pytest-asyncio>=0.23",
]
[[tool.uv.index]]
# 清华 PyPI 镜像
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["mlx_streaming"]
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["mlx_streaming/tests"]
asyncio_mode = "auto"