← Back to issue list

build(deps): constrain setuptools-scm due to cyclic dependency

View original Github issue

Metadata

Project
rockcraft
Number
#1158
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1158 as commit 01ecfcd3, adding a setuptools-scm constraint to work around pypa/setuptools-scm#1302 and unblock dependency synchronization.

Resolution: closed resolved

Reason: PR #1158 was approved and merged as commit 01ecfcd3. Its dependency changes avoid the upstream cyclic-dependency problem that affected resolution.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Workaround for https://github.com/pypa/setuptools-scm/issues/1302 Snap build not tested yet, but it works with `UV_PYTHON=3.12 UV_PYTHON_DOWNLOADS=never UV_NO_BINARY=1 uv sync --frozen --no-dev --no-editable --no-cache` Describe your changes. --- - [ ] I've followed the [contribution guidelines](https://github.com/canonical/rockcraft/blob/main/CONTRIBUTING.md). - [ ] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [ ] I've successfully run `make lint && make test`. - [ ] I've added or updated any relevant documentation.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1158 as commit 01ecfcd3, adding a setuptools-scm constraint to work around pypa/setuptools-scm#1302 and unblock dependency synchronization.
stealth/space-bunny-alpha — closed resolved Merged as commit 01ecfcd3, excluding setuptools-scm 10.0.2 and 10.0.3 to work around the cyclic-dependency failure in pypa/setuptools-scm#1302.
stealth/space-bunny-alpha — closed resolved Merged PR #1158 in commit 01ecfcd3, excluding setuptools-scm 10.0.2 and 10.0.3 from builds to avoid an upstream cyclic dependency.
stealth/space-bunny-alpha — closed resolved Merged PR #1158 (commit 01ecfcd3) added setuptools-scm build constraint "!=10.0.2,!=10.0.3" in pyproject.toml and uv.lock, working around upstream setuptools-scm#1302 cyclic build dependency.
stealth/space-bunny-alpha — closed resolved Merged PR #1158 in commit 01ecfcd3, excluding setuptools-scm 10.0.2 and 10.0.3 from builds to avoid an upstream cyclic-dependency failure.
stealth/space-bunny-alpha — closed resolved Merged PR #1158 in commit 01ecfcd3, excluding setuptools-scm 10.0.2 and 10.0.3 to work around an upstream cyclic dependency.
stealth/space-bunny-alpha — closed resolved Merged PR #1158 in commit 01ecfcd3, adding a setuptools-scm constraint to work around an upstream cyclic dependency.
stealth/space-bunny-alpha — closed resolved Merged in #1158 (01ecfcd3), constraining setuptools-scm to work around the cyclic dependency reported in pypa/setuptools-scm#1302.
qwen/qwen3.6-35b-a3b — — Merged a minimal dependency constraint to resolve a cyclic setuptools-scm issue. Approved by a reviewer and validated by CI, the change successfully implements a workaround for the upstream bug.
qwen3.6-35b-a3b-mtp-q6 — — Merged a PR constraining the setuptools-scm dependency to resolve a cyclic dependency issue. The change implements a workaround for upstream setuptools-scm issue #1302, ensuring stable local dependency resolution.

Update history

No update history recorded yet.

Related work

  • Related To: setuptools-scm#1302 (confidence 100%)

    Upstream cyclic-dependency issue explicitly cited as the reason for the workaround.

  • Related To: rockcraft#1157 (confidence 90%)

    Immediately preceding constraint for setuptools-scm, merged as commit 3e5b3347.

Related issues

Issue Project State Summary Similarity
#2602 build(deps): constrain setuptools-scm due to cyclic dependency charmcraft merged Merged PR #2602 (commit f9c9ad06) adding a temporary setuptools-scm version constraint to work around the cyclic dependency in pypa/setuptools-scm#1302. The pin was later removed by #2615.
93%
#306 build(deps): constrain setuptools-scm due to cyclic dependency imagecraft merged Merged as fca3ff4, adding a temporary setuptools-scm constraint to work around pypa/setuptools-scm#1302's cyclic-dependency bug; #309 later removed the pin after the upstream fix.
90%
#105 build(deps): constrain setuptools-scm due to cyclic dependency debcraft merged Merged in commit 30bdea8, temporarily constraining setuptools-scm to work around pypa/setuptools-scm#1302; debcraft#110 later removed the constraint.
89%
#6123 build(deps): constrain setuptools-scm due to cyclic dependency snapcraft merged PR #6123 by lengau merged as commit 22682ed3c, adding a temporary setuptools-scm pin to work around pypa/setuptools-scm#1302 cyclic dependency. Later reverted by #6131 (d7872467d).
89%
#1157 build: constrain setuptools-scm rockcraft merged Merged PR #1157 (3e5b3347) constrained setuptools-scm below 10.0.2, preventing the upstream build hang seen when building Pydantic.
81%
#309 build(deps): unpin setuptools-scm imagecraft merged Merged #309 in commit b1e78bf, removing the setuptools-scm pin after the upstream cyclic-dependency bug was fixed.
78%
#1164 build(deps): unpin setuptools-scm rockcraft closed PR #1164 proposed removing the setuptools-scm workaround after the upstream bug was fixed, but closed unmerged with review pending and no recorded resolution; the constraint remains.
78%
#6130 build: constrain setuptools-scm<10.0.2 snapcraft closed Closed unmerged. The <10.0.2 constraint was made moot when setuptools-scm 10.0.5+ fixed pypa/setuptools-scm#1302 (#1330); PR #6131 (commit d7872467d) then removed the earlier pin from #6123 entirely.
75%
#6131 build(deps): unpin setuptools-scm snapcraft merged Merged #6131 in commit d7872467d, removing the setuptools-scm pin after the upstream fix landed in setuptools-scm 10.0.5.
74%
#281 build(deps): update dependency setuptools to v75 craft-cli merged Merged PR #281 updated setuptools from 70.1.0 to 75.1.0; merged as commit ae19849.
72%