Python AppImages updater

This commit is contained in:
Valentin Niess
2023-11-10 14:57:55 +01:00
parent e249fdebdb
commit 4fcdf2cba1
2 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
def format_appimage_name(abi, version, tag):
'''Format the Python AppImage name using the ABI, python version and OS tags
'''
return 'python{:}-{:}-{:}.AppImage'.format(
version, abi, format_tag(tag))
def format_tag(tag):
'''Format Manylinux tag
'''
if tag.startswith('2_'):
return 'manylinux_' + tag
else:
return 'manylinux' + tag