Merged
feat(version): Bump PyPTO version to 0.3.0 #6300
chengding888Add on Sep 15
feat(version): Bump PyPTO version to 0.3.0 #6300
Merged
chengding888Add on Sep 15
chengding888
chengding888Collaborators
Sep 15

将 PyPTO 版本从 0.2.1 升级至 0.3.0。

改动内容

  • pyproject.toml:version 由 0.2.1 更新为 0.3.0
  • docs/zh/install/build_and_install.md:CANN-PyPTO 版本映射表新增 9.2.0 → 0.3.0,保留历史映射(8.5.0 → 0.1.2、9.0.0 → 0.2.0)
  • scripts/package/pypto/scripts/pypto_custom_install.sh:whl 文件名由硬编码改为 pypto-*.whl 动态 glob
  • scripts/package/module/ascend/PyptoSo.xml:<file value> 由硬编码改为通配符 pypto-*.whl
  • .agents/skills/pypto-simulation/SKILL.md:pip show pypto 示例版本同步为 0.3.0

说明

打包脚本原本硬编码 whl 文件名版本号,每次发版需同步修改多处;本次改为动态匹配后,后续发版仅需修改 pyproject.toml 一处。

验证

python3 build_ci.py --clean --no_isolation 构建通过,产物:

  • whl:pypto-0.3.0-cp37-abi3-manylinux2014_aarch64.whl
  • run 包:cann-pypto_9.2.0_linux-aarch64.run(9.2.0 为 CANN 版本)
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for chengding888's contribution.)
chengding888chengding888Collaborators
Sep 15 Created pull request, commit fbde1a24
atomgit-bot
atomgit-bot
Sep 15 Comments:

变更摘要

该 PR 将 PyPTO 版本从 0.2.1 升级到 0.3.0,并同步更新了构建、CI、打包脚本中与该版本号相关的分支匹配逻辑和 whl 包文件名引用,以保证版本发布与自动化流程保持一致。

主要改动

  • pyproject.toml 版本号升级:将 version 从 0.2.1 更新为 0.3.0,作为本次版本发布的核心配置变更。
  • CI 脚本分支匹配更新:在 .gitcode/scripts/compile.sh 和 .gitcode/scripts/ut.sh 中,将 GIT_TARGET_BRANCH 的判断分支由 0.2.0 改为 0.3.0,使对应 CI 流水线能拉取新版本的 CANN 依赖包。
  • whl 包文件名/路径更新:将 scripts/package/module/ascend/PyptoSo.xml 和 scripts/package/pypto/scripts/pypto_custom_install.sh 中引用的安装包由 pypto-0.2.1-cp37-abi3-manylinux2014_$(ARCH).whl 更新为 pypto-0.3.0-cp37-abi3-manylinux2014_$(ARCH).whl,确保打包与安装逻辑匹配新版本。
  • setup.py 注释同步更新:更新了关于 pypi 源版本与打入 CANN 包的 PyPTO 版本比较的注释,将版本号由 0.2.1 改为 0.3.0,保持说明与当前版本一致。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 15 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 15 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 15 Comments:

CLA Signature Pass

chengding888, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
54 messages are collapsed here。 See more
huanglu
huangluCollaborators
Sep 15 Comments:

/lgtm

likedislike
Jie Yin
Jie YinCollaborators
Sep 15 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 15 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Sep 15 Merged pull request
chengding888chengding888Collaborators
Oct 20 Associated issue: [Task|任务跟踪]: PyPTO 版本升级至 0.3.0