Skip to content
Snippets Groups Projects
Select Git revision
  • c75e3f49c334b8994a39b584ad75ee86a1faf329
  • main default protected
2 results

pyproject.toml

Blame
  • pyproject.toml 2.75 KiB
    [tool.poetry]
    name = "whisper-asr-webservice"
    version = "1.8.0-dev"
    description = "Whisper ASR Webservice is a general-purpose speech recognition webservice."
    homepage = "https://github.com/ahmetoner/whisper-asr-webservice/"
    license = "https://github.com/ahmetoner/whisper-asr-webservice/blob/main/LICENCE"
    authors = ["Ahmet Öner", "Besim Alibegovic"]
    readme = "README.md"
    packages = [{ include = "app" }]
    
    [tool.poetry.scripts]
    whisper-asr-webservice = "app.webservice:start"
    
    [[tool.poetry.source]]
    name = "pytorch"
    url = "https://download.pytorch.org/whl/cpu"
    priority = "explicit"
    
    [tool.poetry.dependencies]
    python = "^3.10"
    uvicorn = { extras = ["standard"], version = "^0.34.0" }
    tqdm = "^4.67.1"
    python-multipart = "^0.0.20"
    ffmpeg-python = "^0.2.0"
    fastapi = "^0.115.6"
    llvmlite = "^0.43.0"
    numba = "^0.60.0"
    openai-whisper = "^20240930"
    faster-whisper = "^1.1.0"
    torch = [
      { markers = "sys_platform == 'darwin' and platform_machine == 'arm64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_11_0_arm64.whl" },
      { markers = "sys_platform == 'linux' and platform_machine == 'arm64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_11_0_arm64.whl" },
      { markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_10_9_x86_64.whl" },
      { markers = "sys_platform == 'linux' and platform_machine == 'aarch64'", url = "https://download.pytorch.org/whl/torch-1.13.1-cp310-cp310-manylinux2014_aarch64.whl" },
      { markers = "sys_platform == 'linux' and platform_machine == 'x86_64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp310-cp310-linux_x86_64.whl" },
      { markers = "sys_platform == 'win' and platform_machine == 'amd64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp310-cp310-win_amd64.whl" },
    ]
    
    [tool.poetry.dev-dependencies]
    pytest = "^8.3.4"
    ruff = "^0.8.3"
    black = "^24.10.0"
    mkdocs = "^1.6.1"
    mkdocs-material = "^9.5.49"
    pymdown-extensions = "^10.12"
    
    [build-system]
    requires = ["poetry-core>=1.0.0"]
    build-backend = "poetry.core.masonry.api"
    
    [tool.black]
    skip-string-normalization = true
    line-length = 120
    
    [tool.ruff]
    # Same as Black.
    line-length = 120
    
    [tool.ruff.lint]
    select = [
      "E", # pycodestyle errors (settings from FastAPI, thanks, @tiangolo!)
      "W", # pycodestyle warnings
      "F", # pyflakes
      "I", # isort
      "C", # flake8-comprehensions
      "B", # flake8-bugbear
    ]
    ignore = [
      "E501", # line too long, handled by black
      "C901", # too complex
    ]
    
    [tool.ruff.lint.isort]
    order-by-type = true
    relative-imports-order = "closest-to-furthest"
    extra-standard-library = ["typing"]
    section-order = [
      "future",
      "standard-library",
      "third-party",
      "first-party",
      "local-folder",
    ]
    known-first-party = []