chore: include skill requirements in release package
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 21s

This commit is contained in:
2026-05-29 17:36:46 +08:00
parent abe02f26cf
commit 9d4068e4af
2 changed files with 7 additions and 0 deletions

View File

@@ -113,6 +113,12 @@ jobs:
"copy_dir('tests', os.path.join(PACKAGE, 'tests'), common_ignore)" \ "copy_dir('tests', os.path.join(PACKAGE, 'tests'), common_ignore)" \
"copy_dir('evals', os.path.join(PACKAGE, 'evals'), 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:')" \ "print('Package top-level entries:')" \
'for name in sorted(os.listdir(PACKAGE)):' \ 'for name in sorted(os.listdir(PACKAGE)):' \
" print(' -', name)" \ " print(' -', name)" \

View File

@@ -32,6 +32,7 @@
- 复制 assets/ - 复制 assets/
- 复制 tests/ - 复制 tests/
- 复制 evals/(除 scripts 外均为明文;若目录不存在则跳过;复制时排除常见缓存与运行产物) - 复制 evals/(除 scripts 外均为明文;若目录不存在则跳过;复制时排除常见缓存与运行产物)
- 若根目录存在 requirements.txt则复制到包根明文不 PyArmor
本脚本在打 tag 前会做一次 scripts/ 结构自检,避免子目录未提交却仍发布。 本脚本在打 tag 前会做一次 scripts/ 结构自检,避免子目录未提交却仍发布。
#> #>