Skip to content

Commit

Permalink
Disable of local version also needs to hapen for source distro
Browse files Browse the repository at this point in the history
  • Loading branch information
twomagpi committed Aug 5, 2024
1 parent d54499b commit ad2727e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/distribute_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ jobs:
fetch-depth: 500
fetch-tags: true

# 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
- name: Build sdist
run: pipx run build --sdist

Expand Down

0 comments on commit ad2727e

Please sign in to comment.