← Back to issue list

deps: loosen pydantic dependency

View original Github issue

Metadata

Project
craft-parts
Number
#419
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

PR #419 by lengau merged (commit acf46ada), relaxing the pydantic pin from 1.9.0 to >=1.9.0 now that the upstream pydantic-yaml blocker was resolved; the original pin came from commit b42526df.

Resolution: closed resolved

Reason: The pull request itself was merged into main as commit acf46ada ('deps: loosen pydantic dependency'), a +2/-2 change to the dependency constraint that replaced the temporary pydantic==1.9.0 pin introduced by commit b42526df.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? ----- Pydantic was frozen at 1.9 due a pydantic-yaml dependency that has been resolved upstream. https://github.com/canonical/craft-parts/pull/221/commits/b42526df48de47857ce807336da3eed4ef14f017

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #419 by lengau merged (commit acf46ada), relaxing the pydantic pin from 1.9.0 to >=1.9.0 now that the upstream pydantic-yaml blocker was resolved; the original pin came from commit b42526df.
stealth/space-bunny-alpha — closed resolved Merged PR #419 removed the temporary Pydantic 1.9 pin after the upstream pydantic-yaml blocker was resolved, changing the constraint to pydantic>=1.9.0.
qwen/qwen3.6-35b-a3b — — Merged after approval and passing CI. Loosened the pydantic dependency constraint, removing the previous freeze at version 1.9 now that the upstream pydantic-yaml compatibility issue is resolved.
qwen3.6-35b-a3b-mtp-q6 — — Merged changes to loosen the pydantic dependency constraint. The version was previously pinned to 1.9 due to a pydantic-yaml compatibility issue, which has been resolved upstream, enabling broader version compatibility.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-parts#221 (confidence 80%)

    PR body cites this PR's commit b42526df as the change that pinned pydantic to 1.9.0, the constraint this PR loosens.

  • Caused By: canonical/craft-parts#159 (confidence 75%)

    Earlier PR that pinned pydantic-yaml and pydantic versions (commit 0226365f) to fix issue #158; the pydantic 1.9 pin originated from this pydantic-yaml incompatibility chain.

  • Related To: canonical/craft-parts#158 (confidence 70%)

    Issue #158 (YamlModel import error from pydantic_yaml) was the underlying blocker that forced the temporary pydantic pin later relaxed here.

Related issues

Issue Project State Summary Similarity
#49 deps: freeze pydantic-yaml < 1.0 craft-application merged Merged PR #49 as commit 97c620ab, capping pydantic-yaml below 1.0 to avoid potentially breaking dependency releases.
78%
#519 deps: freeze pydantic-yaml <1.0.0 (#498) craft-parts merged Merged PR #519 as cf61a4f6, cherry-picking 5b463227 from #498 to cap pydantic-yaml below 1.0.0 and avoid breaking API changes pending refactoring.
78%
#159 setup: pin pydantic-yaml and pydantic versions (CRAFT-718) craft-parts merged Merged in #159 via 0226365f, pinning pydantic-yaml 0.4.2 and pydantic 1.9.0 to restore compatibility and fix #158.
78%
#498 deps: freeze pydantic-yaml <1.0.0 craft-parts merged Merged PR #498 as 5b463227, capping pydantic-yaml below 1.0.0 to avoid breaking API changes pending the refactor tracked in #499.
77%
#89 deps: freeze pydantic <2.0 craft-store merged Merged PR #89 as commit 86e3c52, pinning pydantic below 2.0 to prevent further breakage; remaining test failures were attributed to #88.
74%
#971 chore(deps): update dependency pydantic-yaml to v0.9.0 charmcraft closed The pydantic-yaml 0.9.0 bump was closed unmerged after receiving no reviews or CI; a later 1.x migration completed in commit 22c1a49f via #1194.
73%
#347 requirements: freeze pydantic<2.0 craft-providers merged Merged #347 (commit ee9f32d), pinning pydantic<2.0 to avoid test failures caused by Pydantic v2 incompatibilities.
73%
#645 chore(deps): update dependency pydantic-yaml to v1 craft-parts closed Closed unmerged after 974 days; the dependency remained below v1 and was later removed by merged PR #811 (commit 1debce16).
72%
#1191 chore(deps): update dependency pydantic-yaml to v1 charmcraft closed pydantic-yaml 1.1.0 was not merged; PR #1191 was closed on 2023-07-26 because manual integration was required, and Renovate then ignored future 1.x updates.
72%
#1351 chore(deps): update dependency pydantic to v2 charmcraft closed Renovate PR bumping pydantic 1.10.13 -> 2.4.2 was closed unmerged by lengau ("will need its own project"). The upgrade later landed via PR #1777 (70078b03), merged to main in #1817 (394e6e55).
71%