From: Federico Caselli Date: Wed, 20 Oct 2021 20:28:55 +0000 (+0200) Subject: Fix wheels generation for python 3.10+ X-Git-Tag: rel_1_4_27~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=822cf98ecc987fa5fe3c469f142d31464c0df8c7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix wheels generation for python 3.10+ Change-Id: I0124bb1bb164fbf2eadf41be066773a2e316b3fe --- diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml index a5d3b1525f..6dbfcfa8dc 100644 --- a/.github/workflows/create-wheels.yaml +++ b/.github/workflows/create-wheels.yaml @@ -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`