# Kunpeng Porting API Client **Repository Path**: xzhouqd/kunpeng-porting-api-client ## Basic Information - **Project Name**: Kunpeng Porting API Client - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-08 - **Last Updated**: 2021-03-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Kunpeng Porting API Client

![](https://img.shields.io/badge/Python-3.8+-blue?style=for-the-badge) ![](https://img.shields.io/badge/Kunpeng%20Porting%20Advisor-V2.2.T3-red?style=for-the-badge)
### 介绍 鲲鹏代码迁移工具RPM包平台兼容检测API客户端 ### 软件架构 包括一个Gitee HTTP Webhook接收服务,自动执行检测服务,手动执行检测服务 ### 安装教程 1. 克隆本仓库 1. 配置接收服务相关配置项: - 复制config/account-template.json到config/account.json - 修改为可登录的用户名、密码及有效的鲲鹏代码迁移工具REST API基础路径 - 修改 server/server.py:11 中的host监听地址 - 修改 server/handler.py:56 中的结果报告地址(本机地址) ### 使用说明 0. 建议使用Python版本:Python 3.8,建议使用venv管理环境,避免httpx依赖与requests冲突,建议使用screen/tmux保持接收服务运行。 #### 自动服务使用 1. (在venv中)安装依赖库:`python3 -m pip install -r requirements.txt` 1. 启动接收服务:`python3 main.py` 1. 为鲲鹏移植仓库(gitee仓库)添加Push Commit POST webhook到监听URL:`http://ip[:port]/porting` #### 手动执行检查 1. (在venv中)安装依赖库:`python3 -m pip install -r requirements.txt` 1. 手动启动批量检查:`python3 manual_process.py -d /path/to/your/rpms/directory` 1. 手动启动单rpm检查:`python3 manual_process.py -f /path/to/your/package.rpm`