| 1 | import sys |
| 2 | from pathlib import Path |
| 3 | |
| 4 | from setuptools import setup, find_packages |
| 5 | |
| 6 | package_dir = Path(__file__).parent / "mlx_vlm" |
| 7 | with open(package_dir / "requirements.txt") as fid: |
| 8 | requirements = [l.strip() for l in fid.readlines()] |
| 9 | |
| 10 | sys.path.append(str(package_dir)) |
| 11 | from version import __version__ |
| 12 | |
| 13 | setup( |
| 14 | name="mlx-vlm", |
| 15 | version=__version__, |
| 16 | description="Vision LLMs on Apple silicon with MLX and the Hugging Face Hub", |
| 17 | long_description=open("README.md", encoding="utf-8").read(), |
| 18 | long_description_content_type="text/markdown", |
| 19 | readme="README.md", |
| 20 | author_email="prince.gdt@gmail.com", |
| 21 | author="MLX Contributors", |
| 22 | url="https://github.com/Blaizzy/mlx-vlm", |
| 23 | license="MIT", |
| 24 | install_requires=requirements, |
| 25 | packages=find_packages(), |
| 26 | python_requires=">=3.8", |
| 27 | ) |