]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix wheels generation for python 3.10+
authorFederico Caselli <cfederico87@gmail.com>
Wed, 20 Oct 2021 20:28:55 +0000 (22:28 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 20 Oct 2021 20:28:55 +0000 (22:28 +0200)
Change-Id: I0124bb1bb164fbf2eadf41be066773a2e316b3fe

.github/workflows/create-wheels.yaml

index a5d3b1525f1c7484237c7527c6ddd70100975757..6dbfcfa8dc7ee2be8b10ddf1b660fa46dfa87c04 100644 (file)
@@ -159,7 +159,7 @@ jobs:
         # the command `echo "::set-output ...` is used to create an step output that can be used in following steps
         # this is from https://github.community/t5/GitHub-Actions/Using-the-output-of-run-inside-of-if-condition/td-p/33920
         run: |
-          version="${py_tag: 2:1}.${py_tag: 3:1}"
+          version="`echo $py_tag | sed --regexp-extended 's/cp([0-9])([0-9]+)-.*/\1.\2/g'`"
           echo $version
           echo "::set-output name=python-version::$version"
 
@@ -298,17 +298,6 @@ jobs:
       - name: Checkout repo
         uses: actions/checkout@v2
 
-      - name: Get python version
-        id: linux-py-version
-        env:
-          py_tag: ${{ matrix.python-version }}
-        # the command `echo "::set-output ...` is used to create an step output that can be used in following steps
-        # this is from https://github.community/t5/GitHub-Actions/Using-the-output-of-run-inside-of-if-condition/td-p/33920
-        run: |
-          version="${py_tag: 2:1}.${py_tag: 3:1}"
-          echo $version
-          echo "::set-output name=python-version::$version"
-
       - name: Remove tag_build from setup.cfg
         # sqlalchemy has `tag_build` set to `dev` in setup.cfg. We need to remove it before creating the weel
         # otherwise it gets tagged with `dev0`