Support Python 3.14 - #59
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Python 3.14 compatibility by making TensorFlow optional on 3.14+ (where wheels are unavailable) and ensuring TensorFlow-dependent code paths fail early with actionable errors, while keeping a TensorFlow-free path usable (acoustic 3.0 via ONNX/PT).
Changes:
- Add a runtime guard that raises a clear
ValueErrorwhentf/pbbackends are requested without TensorFlow. - Add a dedicated pytest module for issue #55 to validate the “no TensorFlow installed” surface and error behavior.
- Update packaging metadata, tox envs, CI matrix, and docs/changelog to include Python 3.14 and describe the supported subset.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/birdnet/model_loader.py | Adds _validate_tf_backend_runtime() and applies it to public load entrypoints to fail early when TF isn’t installed. |
| src/birdnet_tests/issues/test_issue55.py | Adds tests that run only when TensorFlow is absent to validate import + expected failures/successes. |
| README.md | Documents Python 3.14 limitations and recommended ONNX/PT usage. |
| pyproject.toml | Lifts the <3.14 cap, gates TF deps to <3.14, adds no_tf marker, and adds py314 tox env. |
| CHANGELOG.md | Records partial Python 3.14 support and the TF-free surface behavior. |
| .github/workflows/ci.yml | Expands CI matrix to Python 3.14 and runs a dedicated tox -e py314 job path. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.