pyproject.toml•2.93 kB
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools-scm>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "binance-mcp"
version = "1.0.0"
description = "基于ccxt的Binance交易所MCP服务"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "Binance MCP Team"}
]
keywords = ["binance", "cryptocurrency", "trading", "mcp", "ai-agent"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ccxt>=4.0.0",
"fastmcp>=1.0.0",
"click>=8.0.0",
"cryptography>=3.4.0",
"requests>=2.28.0",
"aiohttp>=3.8.0",
"pydantic>=1.10.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"black>=22.0.0",
"flake8>=5.0.0",
"mypy>=1.0.0",
"pre-commit>=2.20.0",
"sphinx>=5.0.0",
"sphinx-rtd-theme>=1.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"responses>=0.23.0",
]
[project.scripts]
binance-mcp = "binance_mcp.cli:cli"
[project.urls]
Homepage = "https://github.com/shanrichard/binance-mcp"
Documentation = "https://github.com/shanrichard/binance-mcp#readme"
Repository = "https://github.com/shanrichard/binance-mcp"
"Bug Tracker" = "https://github.com/shanrichard/binance-mcp/issues"
# 代码格式化配置
[tool.black]
line-length = 100
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
# 类型检查配置
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
# 测试配置
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"--strict-markers",
"--disable-warnings",
]
testpaths = [
"tests",
]
markers = [
"slow: marks tests as slow",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
# 覆盖率配置
[tool.coverage.run]
source = ["binance_mcp"]
omit = [
"*/tests/*",
"*/test_*",
"setup.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]