#!/usr/bin/env python3
from setuptools import setup, find_packages

setup(
    name="nanopy-oracle",
    version="1.3.9",
    author="NanoPy Team",
    author_email="dev@nanopy.chain",
    description="AI-powered oracle for NanoPy Network - bridge ML models to blockchain",
    long_description="""# NanoPy Oracle

AI-powered oracle for NanoPy blockchain. Bridge machine learning models to on-chain smart contracts.

## Install

```bash
pip install nanopy-oracle
```

## Usage

```bash
# Run sentiment analysis oracle
nanopy-oracle --provider sentiment --private-key YOUR_KEY

# Run with custom model
nanopy-oracle --provider ai --model your_model.pkl --private-key YOUR_KEY
```

## Providers

- `sentiment` - Text sentiment analysis (positive/negative/neutral)
- `price` - Crypto price feeds (CoinGecko)
- `ai` - Custom ML model inference

## Features

- Python-native ML integration (PyTorch, scikit-learn, transformers)
- Multi-network support (L1 + L2)
- Signed oracle updates
- Configurable update intervals
- MetaMask wallet integration (no private key exposure)
- Web UI with wallet signing
""",
    long_description_content_type="text/markdown",
    url="https://github.com/nanopy/nanopy-oracle",
    packages=find_packages(),
    include_package_data=True,
    package_data={
        "nanopy_oracle": ["static/*"],
    },
    python_requires=">=3.8",
    install_requires=[
        "aiohttp>=3.8.0",
        "click>=8.0.0",
        "rich>=12.0.0",
        "eth-account>=0.8.0",
        "eth-utils>=2.0.0",
    ],
    extras_require={
        "ai": ["transformers", "torch"],
        "ml": ["scikit-learn", "numpy"],
    },
    entry_points={
        "console_scripts": [
            "nanopy-oracle=nanopy_oracle.main:cli",
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
    ],
    keywords="blockchain oracle nanopy ai ml machine-learning",
)
