mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 16:56:54 +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,18 +131,22 @@ jobs:
|
|||||||
make build
|
make build
|
||||||
- name: Rename 1
|
- name: Rename 1
|
||||||
run: |
|
run: |
|
||||||
make build
|
|
||||||
python -c "
|
python -c "
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-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}'
|
||||||
|
print(replaced)
|
||||||
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:
|
||||||
parts = whl_file.stem.split('_')
|
parts = whl_file.stem.split('_')
|
||||||
|
print(parts)
|
||||||
be_replaced = '_'.join(parts[1:])
|
be_replaced = '_'.join(parts[1:])
|
||||||
|
print(be_replaced)
|
||||||
new_name = whl_file.name.replace(be_replaced, replaced)
|
new_name = whl_file.name.replace(be_replaced, replaced)
|
||||||
|
print(new_name)
|
||||||
new_whl_file = whl_file.with_name(new_name)
|
new_whl_file = whl_file.with_name(new_name)
|
||||||
|
print(new_whl_file)
|
||||||
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