from setuptools import setup, find_packages import os import re # Read version from __init__.py with open(os.path.join('mistral_ocr', '__init__.py'), 'r') as f: version_match = re.search(r"__version__\s*=\s*['\"]([^'\"]*)['\"]", f.read()) version = version_match.group(1) if version_match else '0.1.0' # Read long description from README.md with open('README.md', 'r', encoding='utf-8') as f: long_description = f.read() setup( name="mistral-ocr", version=version, description="A CLI tool for performing OCR on documents using Mistral AI", long_description=long_description, long_description_content_type="text/markdown", author="Mistral OCR Team", url="https://github.com/yourusername/mistral-ocr-python", packages=find_packages(), install_requires=[ "requests>=2.25.0", ], entry_points={ "console_scripts": [ "mistral-ocr=mistral_ocr.__main__:main", ], }, classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: Text Processing", "Topic :: Utilities", ], python_requires=">=3.7", )