55 lines
1.6 KiB
Python
Executable File
55 lines
1.6 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
LoongApps Agent Setup Script
|
|
用于检测 Python 依赖和构建 deb 包
|
|
"""
|
|
|
|
from setuptools import setup, find_packages
|
|
import sys
|
|
|
|
# 检查 Python 版本
|
|
if sys.version_info < (3, 6):
|
|
sys.exit('Python 3.6 or later is required')
|
|
|
|
# 定义依赖
|
|
install_requires = [
|
|
# PySide6 用于图形化安装界面
|
|
'python3-pyside6',
|
|
]
|
|
|
|
setup(
|
|
name='loongapps-agent',
|
|
version='1.0.0',
|
|
description='Loongson Application Agent',
|
|
long_description='''
|
|
Loongapps-agent 是一个本地代理服务,用于通过自定义协议
|
|
管理龙芯应用的安装和卸载。
|
|
|
|
特性:
|
|
- 自定义协议处理器 (loongapps://)
|
|
- 本地 HTTP API 服务
|
|
- Systemd 服务集成(使用 python3-systemd)
|
|
- 图形化安装界面
|
|
''',
|
|
author='Loongson',
|
|
author_email='support@loongson.com',
|
|
url='https://www.loongson.com',
|
|
license='Proprietary',
|
|
packages=[], # 我们使用自定义安装路径,不打包 Python 包
|
|
install_requires=install_requires,
|
|
python_requires='>=3.6',
|
|
classifiers=[
|
|
'Development Status :: 4 - Beta',
|
|
'Intended Audience :: End Users/Desktop',
|
|
'License :: Other/Proprietary',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Programming Language :: Python :: 3.9',
|
|
'Programming Language :: Python :: 3.10',
|
|
'Programming Language :: Python :: 3.11',
|
|
'Operating System :: POSIX :: Linux',
|
|
],
|
|
)
|