Upgrade pydantic to 2.14.1 with a recompiled requirements-dev.txt
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 15/100
調査の方向性
The body says the issue is not open for contribution, so confirm that with maintainers before starting. The work touches requirements.in, requirements.txt and requirements-dev.txt, which must be recompiled with uv pip compile so typing-extensions agrees. Check the QTI models under contentcuration/contentcuration/utils/assessment/qti/ and run the tests in contentcuration/contentcuration/tests/utils/qti/. Done means uv pip sync succeeds and the pinned versions match.
索引モデルが issue の本文から書いたものです。
説明
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Dependabot PR #6371 bumped pydantic from 2.13.4 to 2.14.1, but its dependency install failed and it was closed unmerged. That PR regenerated only requirements.txt. requirements-dev.txt still pins the old typing-extensions, so the two lock files conflict.
Complexity: Low
Target branch: unstable
Context
requirements-dev.instarts with-c requirements.txt, sorequirements-dev.txtmust matchrequirements.txton every package they share. Dependabot regenerates onlyrequirements.txt.- These four packages move together in
requirements.txt, so they have to be upgraded as a set:pydantic2.13.4 → 2.14.1pydantic-core2.46.4 → 2.50.1 (pydanticpins it exactly)typing-extensions4.15.0 → 4.16.0typing-inspection0.4.2 → 0.4.4
requirements-dev.txtpinstyping-extensions==4.15.0(viaexceptiongroup,virtualenv), which conflicts with the 4.16.0 thatrequirements.txtneeds.pydanticis a production dependency. The QTI models incontentcuration/contentcuration/utils/assessment/qti/are built on it, and publishing converts exercises to QTI with them.- The 2.14 release lists two behaviour changes that can affect those models:
- Enum constructors now run in both validation modes. Enum-typed fields are in
constants.py,mathml/fields.pyandhtml/*.py. model_configis no longer mutated.XMLElementinbase.pysetsextra="forbid",validate_assignment=Trueandfrozen=True.
- Enum constructors now run in both validation modes. Enum-typed fields are in
- The 2.14 security advisories (GHSA-gj4f-r7mf-jjxh,
Fractionexponents; GHSA-955g-x97g-8mcp, multi-host URLs) don't affect Studio. Its pydantic models use noFractionand no multi-host URL types.
The Change
requirements.inshould pinpydantic==2.14.1.requirements.txtandrequirements-dev.txtshould both be recompiled withuv pip compile(the command is in each file's header), so they agree ontyping-extensionsand every other shared package.
Acceptance Criteria
-
uv pip sync requirements.txt requirements-dev.txtsucceeds on Python 3.10. -
requirements.txtpinspydantic==2.14.1,pydantic-core==2.50.1,typing-extensions==4.16.0andtyping-inspection==0.4.4. -
requirements-dev.txtpins the sametyping-extensionsversion asrequirements.txt. -
pytest contentcuration/contentcuration/tests/utils/qti/passes. - The full Python CI job runs and passes.
References
- Closed PR: #6371
- Release notes: https://github.com/pydantic/pydantic/releases/tag/v2.14.0, https://github.com/pydantic/pydantic/releases/tag/v2.14.1
AI usage
rtibblesbot (Claude Code) reviewed #6371, recommended closing it, and drafted this issue from that review and the lock files.
Filed from #6371's review.
- 主要言語
- Python
- スター
- 212
- フォーク
- 321
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
learningequality/studio のほかの issue
-
Community library status changes don't update `date_updated`対応中かも @ArpitaSamanta10 が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
learningequality/studio#6414 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
learningequality/studio#6410 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
learningequality/studio#6409 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6407 ·
メンテナーはふだん 1 日以内に返信
-
Stripe webhook accepts events when no webhook secret is configured対応中かも @adibmbrk が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6404 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
learningequality/studio の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
canonical/paas-charm#407 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
メンテナーはふだん 1 日以内に返信
-
enhancement tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
`read_nexus` entry point points to a function that no longer exists対応中かも @RubelMozumder が今日担当しました。 オープンannotator bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
FAIRmat-NFDI/pynxtools#876 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retrying対応中かも @yipinghuang1991 が今日担当しました。 オープンcomp/agent P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#156837 ·
メンテナーはふだん 1 日以内に返信