Files
Android-pyApi/setup.py
T
shuiyu1123 0f9b6fcc5d feat: 添加 Windows 真实实现层
- 新增 _windows_impl.py,包含 14 个 Windows 实现类
- 支持网络、蓝牙、传感器、音频、剪贴板、电源、位置、通知、显示、UI自动化、摄像头、进程管理、Shell 等功能
- 更新 README.md 添加 Windows 支持说明
- 更新 setup.py 添加 Windows 专用依赖
2026-06-26 21:25:12 +08:00

62 lines
1.8 KiB
Python

from setuptools import setup, find_packages
setup(
name="android-pyapi",
version="1.0.0",
description="Android API for Python — 在桌面/Linux 上原生运行 Android API",
long_description=open("README.md").read(),
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",
],
)