Commit 1b976a1
authored
chore(proto-plus): update Python version and clean up enums.py (#16912)
This PR updates `proto-plus` to establish Python 3.10 as the minimum
supported version, dropping support for Python 3.9 and below.
### Changes
* Configuration: Updated `pyproject.toml` and `noxfile.py` to require
Python 3.10+ and remove references to Python 3.9.
* Code: Refactored `repeated.py` to use the walrus operator (PEP 572).
Documentation: Updated a traceback example in `docs/fields.rst` to
reference Python 3.10.
* Cleanup: Replaced a stale comment regarding Python 3.7 features in
proto/enums.py with a tracked TODO referencing Issue #16911.
> [!note]
> Also includes a conditional in the `run_single_test.sh` file to manage
the chicken OR the egg problem of managing failing tests when a
`unit-3.9` nox session is not present. Because we are migrating
handwritten libs one at a time, we are in a transition period were we
must still test for 3.9 in libraries that still support it but cannot
have a failing presubmit in libraries that don't support it.
### Blocking
- [x] This PR is blocked by PR #169101 parent 1e4f3a7 commit 1b976a1
6 files changed
Lines changed: 12 additions & 10 deletions
File tree
- ci
- packages/proto-plus
- docs
- proto
- marshal/collections
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
0 commit comments