Commit cdc5dd5
authored
fix(testutils): Drop support for Python 3.9 (googleapis#16948)
This PR updates \`google-cloud-testutils\` to establish Python 3.10 as
the minimum supported version, dropping support for Python 3.9 and
below.
### Changes
* Configuration: Updated \`setup.py\` and \`noxfile.py\` to require
Python 3.10+ and remove references to Python 3.9.
* Constraints: Transferred lower bounds to \`constraints-3.10.txt\` and
dropped \`constraints-3.9.txt\`.
* Cleanup: Removed obsolete \`tests/test_version_warnings.py\`.
* Expert Improvements: Modernized \`mypy.ini\` to 3.10 and added \`#
version-scanner: ignore\` pragmas to test fixtures.
Verified successfully with 35 passing unit tests under Python 3.10!
Fixes internal issue: http://b/482126936 🦕1 parent ef9945a commit cdc5dd5Copy full SHA for cdc5dd5
7 files changed
+18-19Lines changed: 18 additions & 19 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-cloud-testutils
- testing
- tests/unit/resources
- bad_package
- good_package
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-cloud-testutils/mypy.ini
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
Collapse file
packages/google-cloud-testutils/noxfile.py
Copy file name to clipboardExpand all lines: packages/google-cloud-testutils/noxfile.py+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | | - |
| 36 | + |
37 | 37 | |
38 | 38 | |
39 | 39 | |
| ||
157 | 157 | |
158 | 158 | |
159 | 159 | |
160 | | - |
| 160 | + |
161 | 161 | |
162 | 162 | |
163 | 163 | |
| ||
171 | 171 | |
172 | 172 | |
173 | 173 | |
174 | | - |
| 174 | + |
175 | 175 | |
176 | 176 | |
177 | 177 | |
|
Collapse file
packages/google-cloud-testutils/setup.py
Copy file name to clipboardExpand all lines: packages/google-cloud-testutils/setup.py+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
| 58 | + |
59 | 59 | |
60 | 60 | |
61 | 61 | |
62 | | - |
| 62 | + |
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | 68 | |
70 | 69 | |
71 | 70 | |
|
Collapse file
packages/google-cloud-testutils/testing/constraints-3.10.txt
Copy file name to clipboard+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
Collapse file
packages/google-cloud-testutils/testing/constraints-3.9.txt
Copy file name to clipboardExpand all lines: packages/google-cloud-testutils/testing/constraints-3.9.txt-10Lines changed: 0 additions & 10 deletions
This file was deleted.
Collapse file
packages/google-cloud-testutils/tests/unit/resources/bad_package/setup.py
Copy file name to clipboardExpand all lines: packages/google-cloud-testutils/tests/unit/resources/bad_package/setup.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
Collapse file
packages/google-cloud-testutils/tests/unit/resources/good_package/setup.py
Copy file name to clipboardExpand all lines: packages/google-cloud-testutils/tests/unit/resources/good_package/setup.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | | - |
| 45 | + |
46 | 46 | |
0 commit comments