diff --git a/.github/workflows/reusable-release-skill.yaml b/.github/workflows/reusable-release-skill.yaml index 44844e5..b2ade4b 100644 --- a/.github/workflows/reusable-release-skill.yaml +++ b/.github/workflows/reusable-release-skill.yaml @@ -113,6 +113,12 @@ jobs: "copy_dir('tests', os.path.join(PACKAGE, 'tests'), common_ignore)" \ "copy_dir('evals', os.path.join(PACKAGE, 'evals'), common_ignore)" \ '' \ + "req_src = os.path.abspath('requirements.txt')" \ + "req_dst = os.path.join(PACKAGE, 'requirements.txt')" \ + 'if os.path.isfile(req_src):' \ + " shutil.copy2(req_src, req_dst)" \ + " print('Copied requirements.txt')" \ + '' \ "print('Package top-level entries:')" \ 'for name in sorted(os.listdir(PACKAGE)):' \ " print(' -', name)" \ diff --git a/tools/release.ps1 b/tools/release.ps1 index 05eb0ec..baa4c95 100644 --- a/tools/release.ps1 +++ b/tools/release.ps1 @@ -32,6 +32,7 @@ - 复制 assets/ - 复制 tests/ - 复制 evals/(除 scripts 外均为明文;若目录不存在则跳过;复制时排除常见缓存与运行产物) + - 若根目录存在 requirements.txt,则复制到包根(明文,不 PyArmor) 本脚本在打 tag 前会做一次 scripts/ 结构自检,避免子目录未提交却仍发布。 #>