Skip to content

Commit

Permalink
Workaround for setuptool-scm v8 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Sep 20, 2023
1 parent c411c42 commit 7e838ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
"setuptools_scm[toml] >= 7.0.5, != 8.0.0", # required for "no-local-version" scheme

]
build-backend = "setuptools.build_meta"
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ setenv =
description =
Build package, verify metadata, install package and assert behavior when ansible is missing.
deps =
build >= 0.9.0
twine >= 4.0.1
setuptools_scm>=7.0.3,!=8.0.0
build >= 1.0.3
twine >= 4.0.2
skip_install = true
# Ref: https://twitter.com/di_codes/status/1044358639081975813
commands_pre =
Expand All @@ -202,6 +203,8 @@ commands =
python3 -m twine check --strict {toxinidir}/dist/*
# Install the wheel
sh -c 'python3 -m pip install "ansible-lint[lock] @ file://$(echo {toxinidir}/dist/*.whl)"'
# Check if tool can display its version (validates setuptools-scm integration)
ansible-lint --version
# Uninstall it
python3 -m pip uninstall -y ansible-lint

Expand Down

0 comments on commit 7e838ad

Please sign in to comment.