We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85d51a8 commit 93833ddCopy full SHA for 93833dd
.github/workflows/pypi-package.yml
@@ -29,6 +29,15 @@ jobs:
29
- uses: actions/checkout@v4
30
with:
31
fetch-depth: 0
32
+ - name: Drop local version suffix for publishable builds
33
+ if: github.event_name == 'push'
34
+ run: |
35
+ if ! grep -q 'local_scheme = "no-local-version"' pyproject.toml; then
36
+ sed -i -E \
37
+ 's#raw-options = [{] version_scheme = "nipreps-calver" [}]#raw-options = { version_scheme = "nipreps-calver", local_scheme = "no-local-version" }#' \
38
+ pyproject.toml
39
+ fi
40
+ grep -n 'raw-options' pyproject.toml
41
- uses: hynek/build-and-inspect-python-package@v2
42
43
attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
0 commit comments