- 修复 setup.py 中 README.md 读取的编码问题 (UTF-8) - 修复 system.py 中 errno 常量在 Windows 上不存在的问题 - 使用 getattr 安全获取平台特定的 errno 常量 - 测试全部通过 (24/24 能力可用)
65 lines
1.9 KiB
Python
65 lines
1.9 KiB
Python
from setuptools import setup, find_packages
|
|
from pathlib import Path
|
|
|
|
long_description = Path("README.md").read_text(encoding="utf-8")
|
|
|
|
setup(
|
|
name="android-pyapi",
|
|
version="1.0.0",
|
|
description="Android API for Python — 在桌面/Linux 上原生运行 Android API",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
license="MIT",
|
|
author="shuiyu1123",
|
|
url="https://gitee.com/shuiyu1123/Android-pyApi",
|
|
packages=find_packages(),
|
|
python_requires=">=3.8",
|
|
install_requires=[
|
|
# 核心依赖(全部可选,缺失时自动降级)
|
|
],
|
|
extras_require={
|
|
"linux": [
|
|
"psutil",
|
|
"requests",
|
|
"Pillow",
|
|
"opencv-python",
|
|
"numpy",
|
|
],
|
|
"windows": [
|
|
"psutil",
|
|
"requests",
|
|
"Pillow",
|
|
"opencv-python",
|
|
"numpy",
|
|
"pyautogui",
|
|
"pyperclip",
|
|
"screeninfo",
|
|
"pywin32",
|
|
"wmi",
|
|
"pycaw",
|
|
"comtypes",
|
|
"win10toast",
|
|
],
|
|
"dev": [
|
|
"pytest",
|
|
"pytest-cov",
|
|
],
|
|
},
|
|
classifiers=[
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: MacOS",
|
|
"Operating System :: Microsoft :: Windows",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: System :: Hardware",
|
|
],
|
|
)
|