summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-10-20 22:28:55 +0200
committerFederico Caselli <cfederico87@gmail.com>2021-10-20 22:28:55 +0200
commit822cf98ecc987fa5fe3c469f142d31464c0df8c7 (patch)
tree3228aa2174bd3cb9aed1aeeeb6d60162454f7224
parent17ba4274ec3523b0bff665b0fdf73149d0dc562e (diff)
downloadsqlalchemy-822cf98ecc987fa5fe3c469f142d31464c0df8c7.tar.gz
Fix wheels generation for python 3.10+
Change-Id: I0124bb1bb164fbf2eadf41be066773a2e316b3fe
-rw-r--r--.github/workflows/create-wheels.yaml13
1 files changed, 1 insertions, 12 deletions
diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml
index a5d3b1525..6dbfcfa8d 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`