Repository navigation
Conversation
…ests Tests fail a job with math.sqrt(-1) and compared its stored message with "math domain error". Python 3.14 reworded it to "expected a nonnegative input, got -1.0", so nine tests failed there; they now take the message from the running Python. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <claessen@seita.nl>
Widen requires-python to <3.15, add the trove classifiers, re-lock, and test on 3.13 and 3.14 in CI. The lock installs exactly the same packages on 3.11 and 3.12 as before; it only adds wheels for 3.13 and 3.14 (and numpy 2.3.5 for Intel Macs on 3.14). The agent docs now name the 3.11-3.14 matrix (and coverage on 3.12, as the workflow has it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
|
📖 2 files modified Preview · build overview · flexmeasures · built Dec. 5, 2026, 7:10 p.m. UTC |
This branch has not been deployed
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.
Description
requires-pythonfrom>=3.11, <3.13to>=3.11, <3.15, add the 3.13 and 3.14 trove classifiers, and re-lockuv.lock(with uv 0.12.7, asrequired-versionasks).lint-and-test.yml(matrix[ "3.11", "3.12", "3.13", "3.14" ]); coverage,.python-version, the Dockerfile and Read the Docs stay on 3.12.math.sqrt(-1)'sValueError("math domain error" became "expected a nonnegative input, got -1.0"), which nine job-failure tests compared verbatim. They now ask the running Python for it (math_sqrt_error_message()inflexmeasures/tests/utils.py). Only tests change; FlexMeasures code needed nothing..github/agents/name the new matrix (and coverage on 3.12, as the workflow already has it).documentation/changelog.rst(Infrastructure / Support), and the v1.2.0 warning about dropping 3.10 now says which versions are supported.The lock installs exactly the same packages on 3.11 and 3.12 as before (compared with
uv exportper version); it only adds the cp313/cp314 wheels, plus numpy 2.3.5 for Intel Macs on 3.14 (numpy 2.2.6, which Intel Macs get elsewhere, has no 3.14 wheel).Look & Feel
Full CI test command (incl. doctests), Postgres 17.4, run locally:
requires-python)Deprecation warnings: the same 51 distinct warning sites on 3.12, 3.13 and 3.14, so none announce a break specific to the new versions.
timely-beliefs 5.0.0 passes its own suite on 3.13 and 3.14 as it is (424 passed each), so no timely-beliefs PR has to go first.
How to test
uv sync --python 3.14 --group test uv run --python 3.14 pytest flexmeasures/cli/tests/test_jobs.py flexmeasures/data/tests/test_job_failures.py flexmeasures/ui/tests/test_tasks_views.pyFurther Improvements
Related Items
Follow-up named in #2839 (drop Python 3.10): "We could add Python 3.13 support, which is out since Oct 2024, and 3.14."
Sign-off
🤖 Generated with Claude Code