pyproject.toml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. [build-system]
  2. requires = ["setuptools>=61.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "tolan-backend"
  6. version = "1.0.0"
  7. description = "Tolan English Conversation Backend with AI Voice Chat"
  8. authors = [
  9. {name = "Tolan Team", email = "team@tolan.com"}
  10. ]
  11. license = {text = "MIT"}
  12. readme = "README.md"
  13. requires-python = ">=3.9"
  14. keywords = ["ai", "voice", "chat", "english", "websocket"]
  15. classifiers = [
  16. "Development Status :: 4 - Beta",
  17. "Intended Audience :: Education",
  18. "License :: OSI Approved :: MIT License",
  19. "Programming Language :: Python :: 3",
  20. "Programming Language :: Python :: 3.9",
  21. "Programming Language :: Python :: 3.10",
  22. "Programming Language :: Python :: 3.11",
  23. "Topic :: Education :: Computer Aided Instruction (CAI)",
  24. "Topic :: Multimedia :: Sound/Audio :: Speech",
  25. ]
  26. dependencies = [
  27. "fastapi>=0.104.1",
  28. "uvicorn[standard]>=0.24.0",
  29. "websockets>=12.0",
  30. "pydub>=0.25.1",
  31. "numpy>=1.24.3",
  32. "librosa>=0.10.1",
  33. "openai>=1.3.7",
  34. "pydantic>=2.5.0",
  35. "python-dotenv>=1.0.0",
  36. "structlog>=23.2.0",
  37. "aiohttp>=3.9.1",
  38. ]
  39. [project.optional-dependencies]
  40. dev = [
  41. "pytest>=7.4.3",
  42. "pytest-asyncio>=0.21.1",
  43. "black>=23.11.0",
  44. "flake8>=6.1.0",
  45. "mypy>=1.7.1",
  46. ]
  47. [project.urls]
  48. Homepage = "https://github.com/tolan-team/tolan"
  49. Repository = "https://github.com/tolan-team/tolan.git"
  50. Issues = "https://github.com/tolan-team/tolan/issues"
  51. [tool.setuptools.packages.find]
  52. where = ["src"]
  53. [tool.black]
  54. line-length = 88
  55. target-version = ['py39']
  56. include = '\.pyi?$'
  57. extend-exclude = '''
  58. /(
  59. # directories
  60. \.eggs
  61. | \.git
  62. | \.hg
  63. | \.mypy_cache
  64. | \.tox
  65. | \.venv
  66. | build
  67. | dist
  68. )/
  69. '''
  70. [tool.mypy]
  71. python_version = "3.9"
  72. warn_return_any = true
  73. warn_unused_configs = true
  74. disallow_untyped_defs = true
  75. disallow_incomplete_defs = true
  76. check_untyped_defs = true
  77. no_implicit_optional = true
  78. warn_redundant_casts = true
  79. warn_unused_ignores = true
  80. show_error_codes = true
  81. [tool.pytest.ini_options]
  82. asyncio_mode = "auto"
  83. testpaths = ["tests"]
  84. python_files = ["test_*.py", "*_test.py"]
  85. python_classes = ["Test*"]
  86. python_functions = ["test_*"]
  87. addopts = "-v --tb=short"