Skip to content

Commit

Permalink
rewrite deploy with macos
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed Dec 19, 2024
1 parent 01d2011 commit 22ca863
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,16 @@ jobs:
replaced = f'{sys_ver_info}_0_{plat_info}'
print(replaced)
for whl_file in Path('./dist').glob('*.whl'):
if 'universal2' in whl_file.stem:
parts = whl_file.stem.split('_')
print(parts)
be_replaced = '_'.join(parts[1:])
print(be_replaced)
new_name = whl_file.name.replace(be_replaced, replaced)
print(new_name)
new_whl_file = whl_file.with_name(new_name)
print(new_whl_file)
whl_file.rename(new_whl_file)
print(f'Renamed: {whl_file} -> {new_whl_file}')
parts = whl_file.stem.split('_')
print(parts)
be_replaced = '_'.join(parts[1:])
print(be_replaced)
new_name = whl_file.name.replace(be_replaced, replaced)
print(new_name)
new_whl_file = whl_file.with_name(new_name)
print(new_whl_file)
whl_file.rename(new_whl_file)
print(f'Renamed: {whl_file} -> {new_whl_file}')
"
- name: Build 2
if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }}
Expand Down

0 comments on commit 22ca863

Please sign in to comment.