pyproject.toml•3.4 kB
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "mcp-server-wechat"
description = "MCP Server for WeChat Official Account Articles"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "MCP Server WeChat Contributors"}
]
maintainers = [
{name = "MCP Server WeChat Contributors"}
]
keywords = ["mcp", "wechat", "article", "parser"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
requires-python = ">=3.8"
dependencies = [
"mcp>=1.0.0",
"playwright>=1.40.0",
"beautifulsoup4>=4.12.0",
"markdown>=3.5.0",
"pydantic>=2.0.0",
"aiohttp>=3.9.0",
"python-dotenv>=1.0.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"black>=23.0.0",
"flake8>=6.0.0",
"isort>=5.12.0",
"mypy>=1.7.0",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pre-commit>=3.5.0",
]
[project.urls]
Homepage = "https://github.com/your-username/mcp-server-wechat"
Documentation = "https://github.com/your-username/mcp-server-wechat/docs"
Repository = "https://github.com/your-username/mcp-server-wechat.git"
"Bug Tracker" = "https://github.com/your-username/mcp-server-wechat/issues"
[project.scripts]
mcp-server-wechat = "mcp_server_wechat.server:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
write_to = "src/mcp_server_wechat/_version.py"
[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310', 'py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["mcp_server_wechat"]
[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.mypy.overrides]]
module = [
"playwright.*",
"beautifulsoup4.*",
"markdown.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/test_*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]