2024-05-02 00:00:02 +08:00
|
|
|
# Copyright © 2024 Apple Inc.
|
|
|
|
|
|
|
|
import sys
|
|
|
|
from pathlib import Path
|
|
|
|
|
2024-05-20 21:05:33 +08:00
|
|
|
from setuptools import find_namespace_packages, setup
|
2024-05-02 00:00:02 +08:00
|
|
|
|
|
|
|
package_dir = Path(__file__).parent / "mlx_whisper"
|
|
|
|
|
|
|
|
with open(package_dir / "requirements.txt") as fid:
|
|
|
|
requirements = [l.strip() for l in fid.readlines()]
|
|
|
|
|
|
|
|
sys.path.append(str(package_dir))
|
|
|
|
|
2024-09-04 04:16:21 +08:00
|
|
|
from _version import __version__
|
2024-05-02 00:00:02 +08:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name="mlx-whisper",
|
|
|
|
version=__version__,
|
|
|
|
description="OpenAI Whisper on Apple silicon with MLX and the Hugging Face Hub",
|
|
|
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
readme="README.md",
|
|
|
|
author_email="mlx@group.apple.com",
|
|
|
|
author="MLX Contributors",
|
|
|
|
url="https://github.com/ml-explore/mlx-examples",
|
|
|
|
license="MIT",
|
|
|
|
install_requires=requirements,
|
2024-05-20 21:05:33 +08:00
|
|
|
packages=find_namespace_packages(),
|
2024-05-02 00:00:02 +08:00
|
|
|
include_package_data=True,
|
|
|
|
python_requires=">=3.8",
|
2024-08-17 01:35:44 +08:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
|
|
|
"mlx_whisper = mlx_whisper.cli:main",
|
|
|
|
]
|
|
|
|
},
|
2024-05-02 00:00:02 +08:00
|
|
|
)
|