Upgrade Python from 3.11 to 3.14
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 34
- Forks
- 7
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 22
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobilityData/mobility-feed-api
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MobilityData/mobility-feed-api#1927 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MobilityData/mobility-feed-api#1846 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
MobilityData/mobility-feed-api#1755 · 1 reaction ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#1647 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#836 ·
Maintainers usually reply within 2 days
All issues in MobilityData/mobility-feed-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OStrama/weishaupt_modbus#216 ·
-
bug follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Retire stale Python-parity labels in Rust ingress and auth testsPossibly taken @github-actions claimed this today. Openfactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JoshCLWren/comic-pile#5874 · 2 comments ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area: community lane: free-agent priority: P1 roadmap type: task
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
velella-sh/offing#1046 ·
Maintainers usually reply within 1 day