diff options
| author | Federico Caselli <cfederico87@gmail.com> | 2020-04-09 00:27:09 +0200 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2020-04-09 00:27:09 +0200 |
| commit | dbfef643124275b9e418acf5569feb17a3429707 (patch) | |
| tree | c8ccda537e5234a78a678993e45a2da72d8ced41 /.github | |
| parent | bf11ec3a10918bac956731430023eb308ee19c51 (diff) | |
| download | sqlalchemy-dbfef643124275b9e418acf5569feb17a3429707.tar.gz | |
remove tag_build from setup.cfg
Change-Id: I547aecb28cda29607371138bf3a0c559a786c818
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/create-wheels.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml index 1c695d001..05a9fa0ba 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 |
