Support Python 3.14#1725
Conversation
Test results 8 files 1 584 suites 2m 43s ⏱️ Results for commit 75a04b5. ♻️ This comment has been updated with latest results. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1725 +/- ##
=======================================
Coverage 88.55% 88.56%
=======================================
Files 145 145
Lines 7061 7064 +3
=======================================
+ Hits 6253 6256 +3
Misses 808 808 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This fails on: Your code, @stveit. I looked for solutions and found this: |
|
Finishing this is blocked because: There's problems with the direct dependency pydantic on python 3.14. pydantic needs It seems only argus depends on pydantic so worst case we could try switching to |
|
Yes, pydantic is partially built in rust for speed. The problem was likely pip-compile's conservative nature, trying to preserve existing pins from the lockfile. This caused it to keep running on an older version of pydantic-core which had no published binary wheels for Python 3.14. Upgrading the library to a newer version gave us access to the pre-built wheels and voila, no rust compiler needed. |
b1f64b7 to
03ca9df
Compare
This is a "surgical" update of pydantic using: ``` tox run -e upgrade-deps -- -P pydantic -P pydantic-core -P rpds-py -P typing-extensions -P typing-inspection ```
|



Scope and purpose
Fixes #1786
Blocked by pydantic depending on some rust stuff depending on cargo depending on lock-file formats.
Test and run on Python 3.14.
Depends on #1724
This pull request
Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to Argus can be found in the
Development docs.
[ ] Added/amended tests for new/changed code[ ] Linted/formatted the code with ruff and djLint, easiest by using pre-commit[ ] If this results in changes in the UI: Added screenshots of the before and after[ ] If this results in changes to the database model: Updated the ER diagram