Миграция на Python 3.14#14
Merged
Merged
Conversation
added 2 commits
May 30, 2026 16:22
- requirements: numpy 2.4.6 / pandas 3.0.3 / pillow 12.2.0 / contourpy 1.3.3 (версии с cp314-wheels, без сборки из исходников) - CI tests.yml: python-version 3.14, mypy-cache key py3.14 - pyproject: ruff target-version py314, mypy python_version 3.14 - conftest: pytest_unconfigure форсит os._exit после прогона. Под pytest-asyncio часть aiosqlite-воркеров остаётся на закрытых event-loop и не закрывается dispose() из нового loop; на 3.14 эти non-daemon потоки вешали процесс после summary (CI step не завершался). 519 passed на 3.14, процесс выходит чисто.
- README: бейдж и таблица стека -> Python 3.14 - .claude/CLAUDE.md: Python 3.14, aiogram 3.28 - dependabot.yml: снят ignore numpy>=2.3 / contourpy>=1.3.3 (были из-за Python 3.10, на 3.14 не нужны). SQLAlchemy и aiofiles оставлены — там mypy и конфликт с aiogram.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Перевод проекта на Python 3.14.
Что внутри
tests.yml):python-version: 3.14, обновлён ключ mypy-кэша.py314, mypy3.14.pytest_unconfigureосвобождает ресурсы и форситos._exitс кодом pytest. Прод не затронут (один loop, штатное закрытие).Локально на 3.14: pip install из wheels, ruff/mypy зелёные, 519 passed, процесс выходит чисто.
Не вливать в main, пока прод на 3.10
Job
deployсрабатывает на push в main и пойдёт на прод. Сначала поднять Python 3.14 на сервере (deadsnakes) и пересоздать venv, потом мерж.Тех-долг (не в этом PR)
db.sqlite3через глобальныйasync_session— нужна изоляция (DI/подмена engine).core/utils.py:401(strptime().replace(year=)) — сломается на 3.15.