| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- """
- 223-236-template-6: BMAD Novel Translator
- A novel translation tool with glossary support and crash-safe state management.
- """
- from setuptools import setup, find_packages
- with open("README.md", "r", encoding="utf-8") as fh:
- long_description = fh.read()
- setup(
- name="bmad-novel-translator",
- version="0.1.0",
- author="BMAD Team",
- description="A novel translation tool with glossary support and crash-safe state management",
- long_description=long_description,
- long_description_content_type="text/markdown",
- packages=find_packages(where="src"),
- package_dir={"": "src"},
- classifiers=[
- "Development Status :: 3 - Alpha",
- "Intended Audience :: Developers",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.10",
- ],
- python_requires=">=3.10",
- install_requires=[
- "transitions>=0.9.0",
- "pyyaml>=6.0.1",
- ],
- extras_require={
- "dev": [
- "pytest>=7.4.0",
- "pytest-cov>=4.1.0",
- "pytest-asyncio>=0.23.0",
- ],
- # ML dependencies for translation service (optional)
- # Note: torch is large (~915MB). If already installed, skip via: pip install -e ".[mcp,dev]"
- "ml": [
- # "torch>=2.0.0", # Comment out to avoid large download, install separately if needed
- "transformers>=4.30.0",
- "sentencepiece>=0.1.99",
- ],
- "mcp": [
- "fastmcp>=0.1.0",
- "mcp>=1.0.0",
- "pydantic>=2.0",
- "uvicorn>=0.30.0",
- ],
- },
- entry_points={
- "console_scripts": [
- "novel-translator-mcp=mcp_server.server:main",
- ]
- },
- )
|