mirror of
https://github.com/ansible/awx.git
synced 2026-04-01 16:25:08 -02:30
Fix CI: Pin setuptools_scm<10 to fix api-lint build failure setuptools-scm 10.0.5 (with its new vcs-versioning dependency) requires a [tool.setuptools_scm] or [tool.vcs-versioning] section in pyproject.toml. AWX intentionally omits this section because it uses a custom version resolution via setup.cfg (version = attr: awx.get_version). The new major version of setuptools-scm treats the missing section as a fatal error when building the sdist in tox's isolated build, causing the linters environment to fail. Pinning to <10 restores compatibility with the existing version resolution strategy. Failing run: https://github.com/ansible/awx/actions/runs/23744310714 Branch: devel Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
408 B
TOML
14 lines
408 B
TOML
[build-system]
|
|
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2,<10"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
# Do not uncomment the line below. We need to be able to override the version via a file, and this
|
|
# causes the "version" key in setup.cfg to be ignored.
|
|
# [tool.setuptools_scm]
|
|
|
|
[tool.black]
|
|
line-length = 160
|
|
fast = true
|
|
skip-string-normalization = true
|
|
extend-exclude = "awx_collection"
|