From d54499b9b78ff11aa0939f5ec2d7c756e604d195 Mon Sep 17 00:00:00 2001 From: Thomas Finnie Date: Mon, 5 Aug 2024 20:42:40 +0100 Subject: [PATCH] The update needs to happen _inside_ the manylinux build container. --- .github/workflows/distribute_package.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/distribute_package.yml b/.github/workflows/distribute_package.yml index ea0b247..06ec3c4 100644 --- a/.github/workflows/distribute_package.yml +++ b/.github/workflows/distribute_package.yml @@ -66,14 +66,6 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - # setuptools_scm workaround for https://github.com/pypa/setuptools_scm/issues/455 - - name: Disable local version identifier on develop CI - if: github.ref == 'refs/heads/dev' - run: | - echo 'local_scheme = "no-local-version"' >> pyproject.toml - git diff --color=always - git update-index --assume-unchanged pyproject.toml - # Used to host cibuildwheel - uses: actions/setup-python@v5 with: @@ -87,7 +79,9 @@ jobs: env: CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.platform_id }}* CIBW_TEST_COMMAND: python -W default -m unittest discover --start-directory {project}/tests - + # setuptools_scm workaround for https://github.com/pypa/setuptools_scm/issues/455 + CIBW_BEFORE_BUILD: ${{ github.ref == 'refs/heads/dev' && 'echo ''local_scheme = "no-local-version"'' >> pyproject.toml\n git diff --color=always\n git update-index --assume-unchanged pyproject.toml\n' || '' }} + # Upload the results - uses: actions/upload-artifact@v4 with: