Skip to content

Commit 6d4cb75

Browse files
authored
Define local versioning of setuptools-scm in global project parameters (#810)
1 parent ed704fb commit 6d4cb75

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ jobs:
1818
build:
1919
name: Build distribution
2020
runs-on: ubuntu-latest
21-
env:
22-
# This is to override the dynamic SCM version for publishing, see: https://setuptools-scm.readthedocs.io/en/latest/integrations/#publishing-to-pypi-from-cicd
23-
SETUPTOOLS_SCM_OVERRIDES_FOR_XDEM: '{"local_scheme": "no-local-version"}'
24-
2521
steps:
2622
- uses: actions/checkout@v5
2723
with:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ build-backend = "setuptools.build_meta"
1111
[tool.setuptools_scm]
1212
version_file = "xdem/_version.py"
1313
fallback_version = "0.0.1"
14+
# Use no-local-version by default for CI builds
15+
local_scheme = "no-local-version"
1416

1517
[tool.black]
1618
target_version = ['py310']

0 commit comments

Comments
 (0)