From: Federico Caselli Date: Wed, 8 Apr 2020 22:27:09 +0000 (+0200) Subject: remove tag_build from setup.cfg X-Git-Tag: rel_1_4_0b1~395^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbfef643124275b9e418acf5569feb17a3429707;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git remove tag_build from setup.cfg Change-Id: I547aecb28cda29607371138bf3a0c559a786c818 --- diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml index 1c695d001f..05a9fa0ba5 100644 --- a/.github/workflows/create-wheels.yaml +++ b/.github/workflows/create-wheels.yaml @@ -52,6 +52,19 @@ jobs: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.architecture }} + - 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` + shell: pwsh + # This is equivalent to the sed commands: + # `sed -i '/tag_build=dev/d' setup.cfg` + # `sed -i '/tag_build = dev/d' setup.cfg` + + # `-replace` uses a regexp match + # alternative form: `(get-content setup.cfg) | foreach-object{$_ -replace "tag_build.=.dev",""} | set-content setup.cfg` + run: | + (cat setup.cfg) | %{$_ -replace "tag_build.=.dev",""} | set-content setup.cfg + - name: Create wheel # create the wheel using --no-use-pep517 since locally we have pyproject # this flag should be removed once sqlalchemy supports pep517 @@ -64,6 +77,8 @@ jobs: - name: Install wheel # install the created wheel without using the pypi index run: | + pip install -U pip + pip --version pip install -f dist --no-index sqlalchemy - name: Check c extensions @@ -149,6 +164,19 @@ jobs: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.architecture }} + - 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` + shell: pwsh + # This is equivalent to the sed commands: + # `sed -i '/tag_build=dev/d' setup.cfg` + # `sed -i '/tag_build = dev/d' setup.cfg` + + # `-replace` uses a regexp match + # alternative form: `(get-content setup.cfg) | foreach-object{$_ -replace "tag_build.=.dev",""} | set-content setup.cfg` + run: | + (cat setup.cfg) | %{$_ -replace "tag_build.=.dev",""} | set-content setup.cfg + - name: Create python PEP 425 tag for manylinux build id: linux-py-version env: @@ -184,6 +212,8 @@ jobs: - name: Install wheel # install the created wheel without using the pypi index run: | + pip install -U pip + pip --version pip install -f wheelhouse --no-index sqlalchemy - name: Check c extensions