mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
feat: use uv for building package
This commit is contained in:
32
pyproject.toml
Normal file
32
pyproject.toml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
[project]
|
||||||
|
urls = { repository = "https://github.com/m-bain/whisperx" }
|
||||||
|
authors = [{ name = "Max Bain" }]
|
||||||
|
name = "whisperx"
|
||||||
|
version = "3.3.1"
|
||||||
|
description = "Time-Accurate Automatic Speech Recognition using Whisper."
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.9, <3.13"
|
||||||
|
license = { text = "BSD-2-Clause" }
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
"ctranslate2>=4.5.0",
|
||||||
|
"faster-whisper>=1.1.1",
|
||||||
|
"nltk>=3.9.1",
|
||||||
|
"onnxruntime==1.19",
|
||||||
|
"pandas>=2.2.3",
|
||||||
|
"pyannote-audio>=3.3.2",
|
||||||
|
"torch>=2.5.1",
|
||||||
|
"torchaudio>=2.5.1",
|
||||||
|
"transformers>=4.48.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
whisperx = "whisperx.transcribe:cli"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools"]
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
packages = ["whisperx"]
|
||||||
|
include-package-data = true
|
@ -1,8 +0,0 @@
|
|||||||
torch>=2
|
|
||||||
torchaudio>=2
|
|
||||||
faster-whisper==1.1.0
|
|
||||||
ctranslate2<4.5.0
|
|
||||||
transformers
|
|
||||||
pandas
|
|
||||||
setuptools>=65
|
|
||||||
nltk
|
|
33
setup.py
33
setup.py
@ -1,33 +0,0 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
import pkg_resources
|
|
||||||
from setuptools import find_packages, setup
|
|
||||||
|
|
||||||
with open("README.md", "r", encoding="utf-8") as f:
|
|
||||||
long_description = f.read()
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="whisperx",
|
|
||||||
py_modules=["whisperx"],
|
|
||||||
version="3.3.1",
|
|
||||||
description="Time-Accurate Automatic Speech Recognition using Whisper.",
|
|
||||||
long_description=long_description,
|
|
||||||
long_description_content_type="text/markdown",
|
|
||||||
python_requires=">=3.9, <3.13",
|
|
||||||
author="Max Bain",
|
|
||||||
url="https://github.com/m-bain/whisperx",
|
|
||||||
license="BSD-2-Clause",
|
|
||||||
packages=find_packages(exclude=["tests*"]),
|
|
||||||
install_requires=[
|
|
||||||
str(r)
|
|
||||||
for r in pkg_resources.parse_requirements(
|
|
||||||
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
|
|
||||||
)
|
|
||||||
]
|
|
||||||
+ [f"pyannote.audio==3.3.2"],
|
|
||||||
entry_points={
|
|
||||||
"console_scripts": ["whisperx=whisperx.transcribe:cli"],
|
|
||||||
},
|
|
||||||
include_package_data=True,
|
|
||||||
extras_require={"dev": ["pytest"]},
|
|
||||||
)
|
|
Reference in New Issue
Block a user