mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-17 17:34:35 +08:00
rewrite deploy with macos
This commit is contained in:
6
.github/workflows/python-publish.yml
vendored
6
.github/workflows/python-publish.yml
vendored
@@ -131,7 +131,7 @@ jobs:
|
|||||||
make build
|
make build
|
||||||
python -c "
|
python -c "
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
plat_info = '${{ matrix.buildplat[1] }}'.split('_')[-1]
|
plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-1]
|
||||||
sys_ver_info = '${{ matrix.buildplat[0] }}'.split('-')[-1]
|
sys_ver_info = '${{ matrix.buildplat[0] }}'.split('-')[-1]
|
||||||
replaced = f'{sys_ver_info}_0_{plat_info}'
|
replaced = f'{sys_ver_info}_0_{plat_info}'
|
||||||
for whl_file in Path('./dist').glob('*.whl'):
|
for whl_file in Path('./dist').glob('*.whl'):
|
||||||
@@ -149,10 +149,10 @@ jobs:
|
|||||||
make build
|
make build
|
||||||
python -c "
|
python -c "
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
plat_info = '${{ matrix.buildplat[1] }}'.split('_')[-1]
|
plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-1]
|
||||||
for whl_file in Path('./dist').glob('*.whl'):
|
for whl_file in Path('./dist').glob('*.whl'):
|
||||||
if 'universal2' in whl_file.stem:
|
if 'universal2' in whl_file.stem:
|
||||||
new_name = whl_file.name.replace('universal2', 'plat_info')
|
new_name = whl_file.name.replace('universal2', plat_info)
|
||||||
new_whl_file = whl_file.with_name(new_name)
|
new_whl_file = whl_file.with_name(new_name)
|
||||||
whl_file.rename(new_whl_file)
|
whl_file.rename(new_whl_file)
|
||||||
print(f'Renamed: {whl_file} -> {new_whl_file}')
|
print(f'Renamed: {whl_file} -> {new_whl_file}')
|
||||||
|
|||||||
Reference in New Issue
Block a user