diff --git a/pyproject.toml b/pyproject.toml index 47d40429bb..e444acaa7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/tox.ini b/tox.ini index d0fe3a0424..8da6dd0839 100644 --- a/tox.ini +++ b/tox.ini @@ -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 = @@ -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