1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

rewrite deploy with macos

This commit is contained in:
Linlang
2024-12-19 21:37:55 +08:00
parent 59d28b8a11
commit abeb5cfbe0

View File

@@ -158,7 +158,9 @@ jobs:
from pathlib import Path
plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-1]
for whl_file in Path('./dist').glob('*.whl'):
new_name = whl_file.name.replace('universal2', plat_info)
parts = whl_file.stem.split('_', 3)
be_replaced = parts[-1]
new_name = whl_file.name.replace(be_replaced, plat_info)
new_whl_file = whl_file.with_name(new_name)
whl_file.rename(new_whl_file)
print(f'Renamed: {whl_file} -> {new_whl_file}')