setup: pin pydantic-yaml and pydantic versions (CRAFT-718)
Metadata
Current evaluation
Merged in #159 via 0226365f, pinning pydantic-yaml 0.4.2 and pydantic 1.9.0 to restore compatibility and fix #158.
Resolution: closed resolved
Reason: PR #159 was merged as 9b90997e and restored compatibility with the versions required by craft-parts. The change fixed the YamlModel import failure tracked in #158.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Pin dependencies with API changes to allow craft-parts to run correctly.
Code will be updated to the current API in a separate PR. Pylint will
be unpinned after warnings issued by newer versions are addressed.
Fixes #158.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged in #159 via 0226365f, pinning pydantic-yaml 0.4.2 and pydantic 1.9.0 to restore compatibility and fix #158. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #159 (commit 0226365f), pinning pydantic-yaml 0.4.2 and pydantic 1.9.0 to restore compatibility and resolve #158. | |
| qwen/qwen3.6-35b-a3b | — | — | Pins pydantic-yaml and pydantic versions to resolve API compatibility issues and fix #158. The change is temporary pending separate API updates. Approved and merged after passing CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Pinned pydantic-yaml and pydantic versions to resolve API compatibility issues and fix #158. Full API updates and pylint unpinning will be addressed in subsequent pull requests. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-parts#158
(confidence 100%)
The dependency incompatibility reported in #158 was fixed by this merged PR.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #160 release: craft-parts 1.1.1 | craft-parts | merged | Merged craft-parts 1.1.1 in #160, pinning pydantic and pydantic-yaml dependency versions. | |
| #419 deps: loosen pydantic dependency | craft-parts | merged | 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. | |
| #765 Update dependencies, specially unpinning pydantic now that craft-parts is up to it | charmcraft | merged | Merged into main as 45e0e48c (change c3b28ffa), updating dependencies and unpinning pydantic after craft-parts compatibility was released in 1.1.2. | |
| #488 packaging: pin Pydantic to <2.0.0 | craft-parts | merged | Merged PR #488 via dbd1b89c, pinning Pydantic <2.0.0 so craft-parts remained compatible until Pydantic 2 support was completed. | |
| #499 Update to pydantic-yaml >=1.0.0 | craft-parts | closed | The pydantic-yaml 1.x migration was bypassed when PR #811 removed the unnecessary dependency in commit 1debce16, after PR #498 had temporarily frozen it below 1.0. | |
| #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. | |
| #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. | |
| #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. | |
| #1194 Update to pydantic-yaml >= 1.0 | charmcraft | closed | pydantic-yaml 1.x integration was completed in commit 22c1a49f during Charmcraft's Pydantic 2 migration, after PR #1191 was closed unmerged. | |
| #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. |