pbls/requirements.txt
2026-09-25 12:35:32 +08:00

49 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PBL Agent OS 验证原型(Phase 0/1)—— 应用依赖声明
# 平台基础依赖(ahserver / sqlor / apppublic / appbase / rbac)由机构私有源提供,
# 通过 --index-url 指向内网 pypi;缺失时 build.sh 会 fail-fast 报错而非静默跳过。
# [deploy_test R5 修复] 原 --extra-index-url http://10.20.30.41:8081/... 在目标机 192.168.16.3
# 实测 connect timeout(5 次重试全失败 → build.sh BUILD_RC=1,部署卡在依赖安装)。
# 平台基础包改由机构 wheelhouse 离线供给(--find-links 相对本文件定位 WS/wheelhouse),
# 第三方包走公网 pypi.org(目标机实测 HTTP=200 可达)。
--find-links ../../wheelhouse
# ---- 平台基础框架(必需,硬门禁 6.5)----
ahserver>=1.2.0
sqlor>=2.1.2
apppublic>=5.3.2
appbase>=1.0.0
rbac>=1.0.0
bricks_for_python>=0.0.5 # 前端积木(.ui/.bui 渲染 + load_pybricks)
# [deploy_test R5 修复] 移除 pybricks>=1.1.0:load_pybricks 实际由 bricks_for_python.init 提供,
# wheelhouse 无此包,公网同名包为 LEGO 机器人库(误装风险)——幻影依赖。
accounting>=0.1.0
# ---- DB 驱动(mariadb 方言,显式 TCP,禁 socket)----
PyMySQL>=1.1.0
# [deploy_test R5 修复] 移除 mysqlclient>=2.2.0:需 mysql_config(目标机实测 which mysql_config 无输出,
# pbl 无 sudo 装不了 mariadb-devel)。DB 驱动由 PyMySQL + aiomysql 承担(sqlor/ahserver 传递依赖)。
SQLAlchemy>=2.0.0
# ---- 业务模块(本项目新建 15 个 pbl_*,本地路径安装)----
# 由 build.sh 以 pip install -e modules/{模块} 方式安装,不发布到公共源
# pbl_common / pbl_appcodes / pbl_governance / pbl_blueprint / pbl_template
# pbl_validation / pbl_compiler / pbl_agent_runtime / pbl_evidence / pbl_assessment
# pbl_domain_ext / pbl_scense_ext / pbl_runtime_ext / pbl_kdb_ext / pbl_analytics
# ---- 通用运行时依赖 ----
requests>=2.31.0
python-dateutil>=2.8.2
pytz>=2024.1
jsonschema>=4.21.0
PyYAML>=6.0.1
hashlib-additional>=1.0.1 ; python_version < "3.0"
# ---- 前端/模板处理(website.processors: .tmpl/.ui/.dspy)----
Mako>=1.3.0
Jinja2>=3.1.0
# ---- 部署与自检 ----
psutil>=5.9.0
setuptools>=68.0.0
wheel>=0.42.0