import os
from setuptools import setup, find_packages

# 读取README.md文件
with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

# 直接指定依赖项
requirements = [
    "requests>=2.28.0",
    "cryptography>=41.0.0",
    "cachetools>=5.0.0",
    "redis>=4.0.0"
]

setup(
    name="senweaver-oauth",
    version="0.1.0",
    author="senweaver",
    description="强大、灵活且易用的OAuth授权集成组件",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/senweaver/senweaver-oauth",
    project_urls={
        "Bug Tracker": "https://github.com/senweaver/senweaver-oauth/issues",
        "Documentation": "https://www.senweaver.com/",
    },
    classifiers=[
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    packages=find_packages(),
    python_requires=">=3.7",
    install_requires=requirements,
) 