from setuptools import setup, find_packages
import os

# قراءة README
long_desc = ""
if os.path.exists("README_PYPI.md"):
    with open("README_PYPI.md", "r", encoding="utf-8") as f:
        long_desc = f.read()

# قراءة المتطلبات
install_requires = []
if os.path.exists("requirements.txt"):
    with open("requirements.txt", "r") as f:
        install_requires = [line.strip() for line in f if line.strip() and not line.startswith("#")]

setup(
    name="seismo-framework",
    version="1.0.7",
    author="Samir Baladi",
    author_email="gitdeeper@gmail.com",
    description="Advanced Seismic Data Analysis and Monitoring Framework",
    long_description=long_desc,
    long_description_content_type="text/markdown",
    url="https://gitlab.com/gitdeeper3/seismo",
    packages=find_packages(exclude=["tests", "tests.*"]),
    install_requires=install_requires,
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.8",
    include_package_data=True,
)
