Skip to content

Commit 7e838ad

Browse files
committed
Workaround for setuptool-scm v8 regression
1 parent c411c42 commit 7e838ad

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs
4-
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
4+
"setuptools_scm[toml] >= 7.0.5, != 8.0.0", # required for "no-local-version" scheme
55

66
]
77
build-backend = "setuptools.build_meta"

tox.ini

+5-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ setenv =
185185
description =
186186
Build package, verify metadata, install package and assert behavior when ansible is missing.
187187
deps =
188-
build >= 0.9.0
189-
twine >= 4.0.1
188+
setuptools_scm>=7.0.3,!=8.0.0
189+
build >= 1.0.3
190+
twine >= 4.0.2
190191
skip_install = true
191192
# Ref: https://twitter.com/di_codes/status/1044358639081975813
192193
commands_pre =
@@ -202,6 +203,8 @@ commands =
202203
python3 -m twine check --strict {toxinidir}/dist/*
203204
# Install the wheel
204205
sh -c 'python3 -m pip install "ansible-lint[lock] @ file://$(echo {toxinidir}/dist/*.whl)"'
206+
# Check if tool can display its version (validates setuptools-scm integration)
207+
ansible-lint --version
205208
# Uninstall it
206209
python3 -m pip uninstall -y ansible-lint
207210

0 commit comments

Comments
 (0)