浏览代码

Add Manylinux 2_24 and 2_28

Valentin Niess 3 年之前
父节点
当前提交
6bfb15b186
共有 2 个文件被更改,包括 27 次插入4 次删除
  1. 15 1
      .github/workflows/appimage.yml
  2. 12 3
      python_appimage/commands/build/manylinux.py

+ 15 - 1
.github/workflows/appimage.yml

@@ -14,7 +14,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        image: ['1', '2010', '2014']
+        image: ['1', '2010', '2014', '2_24', '2_28']
         arch: [x86_64, i686]
         tag: [cp27-cp27m, cp27-cp27mu, cp35-cp35m, cp36-cp36m, cp37-cp37m,
               cp38-cp38, cp39-cp39, cp310-cp310, cp311-cp311]
@@ -37,6 +37,20 @@ jobs:
             tag: cp27-cp27mu
           - image: '2014'
             tag: cp35-cp35m
+          - image: '2_24'
+            tag: cp27-cp27m
+          - image: '2_24'
+            tag: cp27-cp27mu
+          - image: '2_24'
+            tag: cp35-cp35m
+          - image: '2_28'
+            tag: cp27-cp27m
+          - image: '2_28'
+            tag: cp27-cp27mu
+          - image: '2_28'
+            tag: cp35-cp35m
+          - image: '2_28'
+            arch: i686
 
     steps:
     - uses: actions/checkout@v2

+ 12 - 3
python_appimage/commands/build/manylinux.py

@@ -19,6 +19,15 @@ def _unpack_args(args):
     return args.tag, args.abi, args.contained
 
 
+def _manylinux_tag(tag):
+    '''Format Manylinux tag
+    '''
+    if tag.startswith('2_'):
+        return 'manylinux_' + tag
+    else:
+        return 'manylinux' + tag
+
+
 def _get_appimage_name(abi, tag):
     '''Format the Python AppImage name using the ABI and OS tags
     '''
@@ -27,8 +36,8 @@ def _get_appimage_name(abi, tag):
     fullversion = desktop[13:-8]
 
     # Finish building the AppImage on the host. See below.
-    return 'python{:}-{:}-manylinux{:}.AppImage'.format(
-        fullversion, abi, tag)
+    return 'python{:}-{:}-{:}.AppImage'.format(
+        fullversion, abi, _manylinux_tag(tag))
 
 
 def execute(tag, abi, contained=False):
@@ -37,7 +46,7 @@ def execute(tag, abi, contained=False):
 
     if not contained:
         # Forward the build to a Docker image
-        image = 'quay.io/pypa/manylinux' + tag
+        image = 'quay.io/pypa/' + _manylinux_tag(tag)
         python = '/opt/python/' + abi + '/bin/python'
 
         pwd = os.getcwd()