Skip to content

Commit

Permalink
The update needs to happen _inside_ the manylinux build container.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Finnie committed Aug 5, 2024
1 parent d19a68c commit d54499b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/distribute_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit d54499b

Please sign in to comment.