Migrated to py 3.13+ and fixed discrepancy of the protocol spec of having flawed for the prices.#44
Open
itsklimov wants to merge 2 commits intoextrawest:mainfrom
Open
Migrated to py 3.13+ and fixed discrepancy of the protocol spec of having flawed for the prices.#44itsklimov wants to merge 2 commits intoextrawest:mainfrom
itsklimov wants to merge 2 commits intoextrawest:mainfrom
Conversation
Major migration to support Python 3.13 and 3.14 with full Pydantic v2 compatibility. Core Changes: - Migrate from Pydantic v1.10.12 to v2.12.4 - Update FastAPI (0.101.1 → 0.121.2) and httpx (0.24.1 → 0.28.1) - Add pydantic-settings for BaseSettings - Migrate 7 custom validators to Pydantic v2 core schema API - Fix all Optional fields to include default values (Pydantic v2 requirement) - Replace deprecated .dict() with .model_dump() across 38 files - Switch from pipenv to uv for faster dependency management Testing: - Add 27 unit tests for core validators (100% passing) - Add pytest-asyncio for async test support - Add pytest-cov for coverage measurement - Fix httpx AsyncClient API for v0.28 (ASGITransport) - All 207 tests passing (100% pass rate) Infrastructure: - Update CI/CD to test on Python 3.13 & 3.14 - Update Python requirement: >=3.10 → >=3.13 - Update pyproject.toml configurations - Add MIGRATION.md documentation Note: Number validation is now stricter per OCPI spec (rejects string numbers). See MIGRATION.md for complete details.
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.
Changing Price string to the float is a breaking change. See MIGRATION.md