Commit 43b1b51
committed
feat: Add Python 3.14 support and fix scheduler shutdown
This commit adds support for Python 3.14 to the library, removes Python 3.7 and 3.8 from the nox sessions, and updates the GitHub Actions workflow.
It also includes a fix for an `AttributeError` in the `ThreadScheduler.shutdown` method that occurred in Python 3.14. The fix refactors the shutdown logic to use the `cancel_futures=True` argument, which is available in Python 3.9+ and is the correct way to handle this.
The following changes were made:
- Added a 3.14 trove classifier in `setup.py`.
- Added a `grpcio` version constraint for Python 3.14 in `setup.py`.
- Added a 3.14 presubmit configuration file in `.kokoro/samples`.
- Added a `testing/constraints-3.14.txt` file.
- Updated the `CONTRIBUTING.rst` and `README.rst` files to include 3.14.
- Updated `owlbot.py` to include "3.14" in `unit_test_python_versions`.
- Updated `noxfile.py` to include "3.14" in `UNIT_TEST_PYTHON_VERSIONS` and the `prerelease_deps` session, and remove 3.7/3.8.
- Updated `.github/sync-repo-settings.yaml` to include 3.14.
- Updated `.github/workflows/unittest.yml` to include 3.14 and remove 3.7/3.8.
- Fixed a flaky test in `tests/unit/pubsub_v1/publisher/test_publisher_client.py`.
- Fixed an `AttributeError` in `google/cloud/pubsub_v1/subscriber/scheduler.py` that occurred in Python 3.14.
- Fixed `NameError` and `ValueError` bugs in `samples/snippets/publisher.py`.
- Removed Python 3.7 and 3.8 from `CONTRIBUTING.rst`, `README.rst`, and `owlbot.py`.
- Fixed a `ValueError` in the `prerelease_deps` nox session.1 parent 69233d1 commit 43b1b51
2 files changed
+7
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 236 | + | |
242 | 237 | | |
243 | 238 | | |
244 | 239 | | |
| |||
448 | 443 | | |
449 | 444 | | |
450 | 445 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 446 | + | |
457 | 447 | | |
458 | 448 | | |
459 | 449 | | |
| |||
465 | 455 | | |
466 | 456 | | |
467 | 457 | | |
| 458 | + | |
468 | 459 | | |
469 | 460 | | |
470 | 461 | | |
| |||
0 commit comments