From bda72b8bc0bc22fa06584bd3f3dc1f3c3615a104 Mon Sep 17 00:00:00 2001 From: Quentin Fuxa Date: Sun, 3 Aug 2025 16:32:31 +0200 Subject: [PATCH] setup.py to pyproject.toml. Remove <2.0.0 condition on numpy dep --- pyproject.toml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 54 --------------------------------------------- 2 files changed, 59 insertions(+), 54 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6284bee --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,59 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "whisperlivekit" +version = "0.2.4" +description = "Real-time, Fully Local Whisper's Speech-to-Text and Speaker Diarization" +readme = "README.md" +authors = [ + { name = "Quentin Fuxa" } +] +license = { file = "LICENSE" } +requires-python = ">=3.9" +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Topic :: Scientific/Engineering :: Artificial Intelligence", + "Topic :: Multimedia :: Sound/Audio :: Speech" +] +dependencies = [ + "fastapi", + "librosa", + "soundfile", + "faster-whisper", + "uvicorn", + "websockets" +] + +[project.optional-dependencies] +diarization = ["diart"] +vac = ["torch"] +sentence = ["mosestokenizer", "wtpsplit"] +whisper = ["whisper"] +whisper-timestamped = ["whisper-timestamped"] +mlx-whisper = ["mlx-whisper"] +openai = ["openai"] +simulstreaming = [ + "torch", + "tqdm", + "tiktoken", + 'triton>=2.0.0,<3; platform_machine == "x86_64" and (sys_platform == "linux" or sys_platform == "linux2")' +] + +[project.urls] +Homepage = "https://github.com/QuentinFuxa/WhisperLiveKit" + +[project.scripts] +whisperlivekit-server = "whisperlivekit.basic_server:main" + +[tool.setuptools] +packages = ["whisperlivekit", "whisperlivekit.diarization", "whisperlivekit.simul_whisper", "whisperlivekit.simul_whisper.whisper", "whisperlivekit.simul_whisper.whisper.assets", "whisperlivekit.simul_whisper.whisper.normalizers", "whisperlivekit.web", "whisperlivekit.whisper_streaming_custom"] + +[tool.setuptools.package-data] +whisperlivekit = ["web/*.html"] +"whisperlivekit.simul_whisper.whisper.assets" = ["*.tiktoken", "*.npz"] diff --git a/setup.py b/setup.py deleted file mode 100644 index aa4aad7..0000000 --- a/setup.py +++ /dev/null @@ -1,54 +0,0 @@ -from setuptools import setup, find_packages -setup( - name="whisperlivekit", - version="0.2.4.dev0", - description="Real-time, Fully Local Whisper's Speech-to-Text and Speaker Diarization", - long_description=open("README.md", "r", encoding="utf-8").read(), - long_description_content_type="text/markdown", - author="Quentin Fuxa", - url="https://github.com/QuentinFuxa/WhisperLiveKit", - packages=find_packages(), - install_requires=[ - "fastapi", - "librosa", - "soundfile", - "faster-whisper", - "uvicorn", - "websockets", - ], - extras_require={ - "diarization": ["diart"], - "vac": ["torch"], - "sentence": ["mosestokenizer", "wtpsplit"], - "whisper": ["whisper"], - "whisper-timestamped": ["whisper-timestamped"], - "mlx-whisper": ["mlx-whisper"], - "openai": ["openai"], - "simulstreaming": [ - "torch", - "tqdm", - "tiktoken", - "numpy<2.0.0", - "triton>=2.0.0,<3;platform_machine==\"x86_64\" and sys_platform==\"linux\" or sys_platform==\"linux2\"", - ], - }, - package_data={ - 'whisperlivekit': ['web/*.html'], - 'whisperlivekit.simul_whisper.whisper.assets': ['*.tiktoken', '*.npz'], - }, - entry_points={ - 'console_scripts': [ - 'whisperlivekit-server=whisperlivekit.basic_server:main', - ], - }, - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Topic :: Scientific/Engineering :: Artificial Intelligence", - "Topic :: Multimedia :: Sound/Audio :: Speech", - ], - python_requires=">=3.9", -)