Upgrade Python from 3.11 to 3.14
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
Línea de trabajo
Start with the dependency table in the issue and the pinned versions in the project's requirements files, then bump the listed packages on Python 3.11 first, as the issue's first step asks. The generated modules feeds_gen and user_service_gen and the sqlacodegen models will need regenerating and their diffs reviewed. Done means the test suite passes on 3.11 and 3.14 under -W error::DeprecationWarning, and the change is deployed through dev and QA. The issue is a multi-PR plan, so coordinate with maintainers before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the problem
The API, CI and Cloud Functions run on Python 3.11, which is security-only and reaches end of life in October 2027.
Proposed solution
Upgrade to Python 3.14 (supported until October 2030; Cloud Run functions python314 runtime is GA).
Expected improvements: interpreter speedups from 3.12 to 3.14, incremental garbage collection, compression.zstd, asyncio introspection, clearer error messages.
Breaking-change risks:
-
Dependencies below their first 3.14-compatible version:
Package Current Minimum pydantic2.11.7 2.12.0 fastapi0.111.0 0.118.3 starlette0.37.2 0.48.0 SQLAlchemy2.0.23 2.0.45 psycopg2-binary2.9.6 2.9.11 pandasunpinned / ~=2.2.32.3.3 numpyunpinned 2.3.2 shapelyunpinned 2.1.2 fastapi-filter,sqlacodegenandgeoalchemy2not yet confirmed. -
Language changes (3.12 to 3.14): removed modules (
distutils,imp, PEP 594), deferred annotations (PEP 649),forkserveras the Linuxmultiprocessingdefault,asyncio.get_event_loop()changes. -
Generated code (
feeds_gen,user_service_gen,sqlacodegenmodels) may change with new dependency versions. -
Cloud Functions buildpack installs with
uvby default forpython314.
Validation plan:
- Upgrade dependencies to the minimums above on Python 3.11 first, in a separate PR.
- Run test suites with
-W error::DeprecationWarningand search for removed APIs. - Regenerate generated code and review the diff.
- Run CI on 3.11 and 3.14 during the transition.
- Deploy to dev, then QA, running integration tests on each before production.
Alternatives you've considered
- 3.15: Cloud Run functions runtime still in Preview; library wheel coverage incomplete.
- 3.12 / 3.13: support ends earlier (2028-10 / 2029-10).
Additional context
- Lenguaje dominante
- Python
- Estrellas
- 34
- Forks
- 7
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 21
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 MobilityData/mobility-feed-api
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MobilityData/mobility-feed-api#1927 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
MobilityData/mobility-feed-api#1846 ·
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
MobilityData/mobility-feed-api#1755 · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MobilityData/mobility-feed-api#1647 ·
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MobilityData/mobility-feed-api#836 ·
Los mantenedores suelen responder en 2 días
Todos los issues de MobilityData/mobility-feed-api
Issues similares
-
backend enhancement priority:P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
geolens-io/geolens#4161 ·
Los mantenedores suelen responder en 1 día
-
pkg:clai2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
pydantic/pydantic-ai#14845 ·
Los mantenedores suelen responder en 1 día
-
Add a languageAbiertogood first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
LearningCircuit/local-deep-research#9272 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
patrickballard/wheelgap#783 ·