已关闭
[WIP][Feature][build]Support PyPI-compatible MindIE-SD wheel publishing #308
guowenna1创建于 5月25日关闭于 6月10日
[WIP][Feature][build]Support PyPI-compatible MindIE-SD wheel publishing #308
已关闭
guowenna1创建于 5月25日关闭于 6月10日
guowenna1成员
5月25日

Which issue(s) this PR fixes or accomplishes

Fixes #TBD

Purpose

This PR updates MindIE-SD wheel packaging logic for PyPI publishing.

Main changes:

  • Generate the MindIE-SD package version from the current torch version by default, following the torch-npu style version line.
  • Keep MINDIE_SD_VERSION_OVERRIDE support for explicit release version override.
  • Pin runtime dependencies to the build environment versions of torch and torch-npu.
  • Generate Requires-Python from the current Python minor version, for example >=3.11,<3.12.
  • Mark the wheel as a non-pure binary wheel.
  • Generate a PyPI-compatible manylinux platform tag instead of linux_aarch64, for example manylinux_2_38_aarch64.
  • Keep MINDIE_SD_PLAT_NAME, MINDIE_SD_TORCH_VERSION, MINDIE_SD_TORCH_NPU_VERSION, and MINDIE_SD_PYTHON_REQUIRES as build-time override knobs.

Test Plan

  • Verify default version generation from the current torch version.
  • Verify explicit version override with MINDIE_SD_VERSION_OVERRIDE.
  • Build wheel in the lala container.
  • Run twine check to validate PyPI metadata.
  • Inspect wheel METADATA and WHEEL files to confirm version, dependency, Python requirement, and platform tag.

Test Report

Verified in the lala container:

python3 setup.py --version
MINDIE_SD_VERSION_OVERRIDE=3.0.0 python3 setup.py --version
python3 -m twine check dist/*.whl
likedislike
当前Pull Request已关闭, 关闭人@guowenna1
Gguowenna1成员
5月25日 创建了 pull request,commit 96215ded
ascend-robot
ascend-robot成员
5月25日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here


PR Approval Progress

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
repo-Ascend/MindIE-SD ❌ (0/2)(You can also ask: weixin_44144262, betta18, wenjiali_sh, Semmer, LoganJane) ❌ (0/1)(You can also ask: mazhixin00_00, weixin_44144262, betta18, 蓝王力, 连斌)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

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

likedislike
ascend-robotascend-robot成员
5月25日 添加了label:ascend-cla/yes
ascend-robotascend-robot成员
5月25日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
5月25日 评论:

✅ 流水线任务触发成功(流水线编号: 1207),正在执行, 请稍候。 任务链接 点此跳转 ...

likedislike
ascend-robotascend-robot成员
5月25日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
5月25日 添加了label:ci-pipeline-failed
ascend-robot
ascend-robot成员
5月25日 评论:
流水线 PR-pipeline_MindIE-SD_gitcode#1207 [ commitID:b211fb5c ] 运行失败
>>>代码风格自动修复执行失败,具体请查看日志,不影响流水线执行及PR合入
阶段 任务名 状态 详情
编译构建 Build_linux_x86_abi1 🕚 >>>
Build_linux_arm_abi1 🕚 >>>
Build_linux_arm_abi0 🕚 >>>
恶意代码检查 Antipoison ✅ >>>
开源片段检查 SCA ✅ >>>
开发者测试 UT_linux_arm 🕚 >>>
PreSmoke 🕚 >>>
流水线 PR-pipeline_MindIE-SD_gitcode ❌ >>>
此流水线已支持下列评论快捷指令,仅PR创建者评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
ascend-robot
ascend-robot成员
5月25日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
5月25日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
5月25日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
5月25日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
5月25日 添加了label:docs-ci-pipeline-success
Gguowenna1成员
5月27日 设置为草稿状态
Gguowenna1成员
5月27日 修改标题为 “【WIP】update setup”,原标题为“update setup.py”
Gguowenna1成员
5月27日 修改标题为 “【WIP】[Feature][build]Support PyPI-compatible MindIE-SD wheel publishing”,原标题为“【WIP】update setup”
Gguowenna1成员
5月27日 修改了pull request 的描述
ascend-robot
ascend-robot成员
5月28日 评论:

The repo or branch is not access to PR-cooperate, please check the current repo https://gitcode.com/Ascend/MindIE-SD.git, branch=dev

likedislike
Gguowenna1成员
6月10日 关闭了 pull request