Upgrade Python from 3.11 to 3.14
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 34
- フォーク
- 7
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MobilityData/mobility-feed-api のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MobilityData/mobility-feed-api#1927 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
MobilityData/mobility-feed-api#1846 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
MobilityData/mobility-feed-api#1755 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MobilityData/mobility-feed-api#1647 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MobilityData/mobility-feed-api#836 ·
メンテナーはふだん 2 日以内に返信
MobilityData/mobility-feed-api の issue をすべて見る
似ている issue
-
backend enhancement priority:P3
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
geolens-io/geolens#4161 ·
メンテナーはふだん 1 日以内に返信
-
pkg:clai2
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
pydantic/pydantic-ai#14845 ·
メンテナーはふだん 1 日以内に返信
-
Add a languageオープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
LearningCircuit/local-deep-research#9272 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
patrickballard/wheelgap#783 ·