setup.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. """
  2. 223-236-template-6: BMAD Novel Translator
  3. A novel translation tool with glossary support and crash-safe state management.
  4. """
  5. from setuptools import setup, find_packages
  6. with open("README.md", "r", encoding="utf-8") as fh:
  7. long_description = fh.read()
  8. setup(
  9. name="bmad-novel-translator",
  10. version="0.1.0",
  11. author="BMAD Team",
  12. description="A novel translation tool with glossary support and crash-safe state management",
  13. long_description=long_description,
  14. long_description_content_type="text/markdown",
  15. packages=find_packages(where="src"),
  16. package_dir={"": "src"},
  17. classifiers=[
  18. "Development Status :: 3 - Alpha",
  19. "Intended Audience :: Developers",
  20. "Programming Language :: Python :: 3",
  21. "Programming Language :: Python :: 3.10",
  22. ],
  23. python_requires=">=3.10",
  24. install_requires=[
  25. "transitions>=0.9.0",
  26. "pyyaml>=6.0.1",
  27. ],
  28. extras_require={
  29. "dev": [
  30. "pytest>=7.4.0",
  31. "pytest-cov>=4.1.0",
  32. ],
  33. "ml": [
  34. "torch>=2.0.0",
  35. "transformers>=4.30.0",
  36. "sentencepiece>=0.1.99",
  37. ],
  38. },
  39. )