Upgrade pydantic to 2.14.1 with a recompiled requirements-dev.txt
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 15/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
❌ 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.
- Lenguaje dominante
- Python
- Estrellas
- 212
- Forks
- 321
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 14
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de learningequality/studio
-
Community library status changes don't update `date_updated`Posiblemente ocupada @ArpitaSamanta10 la tomó hoy. Abiertocommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
learningequality/studio#6414 · 8 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
DEV: backend
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
learningequality/studio#6410 ·
Los mantenedores suelen responder en 1 día
-
DEV: backend
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
learningequality/studio#6409 ·
Los mantenedores suelen responder en 1 día
-
DEV: backend
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
learningequality/studio#6407 ·
Los mantenedores suelen responder en 1 día
-
Stripe webhook accepts events when no webhook secret is configuredPosiblemente ocupada @adibmbrk la tomó hoy. Abiertocommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
learningequality/studio#6404 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de learningequality/studio
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
canonical/paas-charm#407 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
Los mantenedores suelen responder en 1 día
-
enhancement tooling
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
`read_nexus` entry point points to a function that no longer existsPosiblemente ocupada @RubelMozumder la tomó hoy. Abiertoannotator bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
FAIRmat-NFDI/pynxtools#876 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[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 retryingPosiblemente ocupada @yipinghuang1991 la tomó hoy. Abiertocomp/agent P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NousResearch/hermes-agent#156837 ·
Los mantenedores suelen responder en 1 día