Commit 470f57b
authored
Drop Python 3.9 support (#545)
## Summary
Removes support for Python 3.9, which has reached end-of-life, and
updates all configuration and documentation to reflect Python 3.10+ as
the minimum supported version. This simplifies dependency constraints
and aligns with current Python support lifecycle.
## Changes
### Configuration Updates
- Updated `pyproject.toml`:
- Changed `requires-python` from `">=3.9"` to `">=3.10"`
- Removed `"Programming Language :: Python :: 3.9"` trove classifier
- Updated Ruff `target-version` from `"py39"` to `"py310"`
- Updated Black `target-version` from `["py39"]` to `["py310"]`
- Simplified dependency constraints by removing Python 3.9-specific
conditions:
- `pandas-stubs`: Removed Python 3.8-3.9 fallback, now uses single
version constraint
- `numpy`: Removed Python 3.8-3.9 fallback, now uses single version
constraint
- `pytest-benchmark`: Simplified condition from `python_version>='3.9'
and python_version<'4.0'` to `python_version<'4.0'`
- `sphinx`: Simplified condition from `python_version>='3.9' and
python_version<'3.11'` to `python_version<'3.11'`
- `myst-parser`: Removed Python 3.9-3.10 fallback, now uses single
version constraint
- `grpcio`: Simplified condition from `python_version>='3.8' and
python_version<'3.11'` to `python_version<'3.11'`
- `pandas`: Simplified condition from `python_version>='3.9' and
python_version<'3.13'` to `python_version<'3.13'`
### Documentation Updates
- Updated `README.md`: Changed prerequisites from "Python 3.9 and
greater" to "Python 3.10 and greater", and updated tested versions from
"3.9 to 3.13" to "3.10 to 3.13"
- Updated `docs/index.rst`: Changed prerequisites from "Python 3.9 and
greater" to "Python 3.10 and greater", and updated tested versions from
"3.9 to 3.13" to "3.10 to 3.13"
- Updated `docs/upgrading.md`: Added breaking change note in the 7.x
section documenting the removal of Python 3.9 support
## Breaking Changes
1 parent 0815012 commit 470f57b
4 files changed
+41
-534
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | | - | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 65 | + | |
| 66 | + | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
77 | | - | |
| 74 | + | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
85 | | - | |
| 82 | + | |
86 | 83 | | |
87 | | - | |
88 | | - | |
| 84 | + | |
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
| |||
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
127 | | - | |
| 123 | + | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
| |||
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | | - | |
| 160 | + | |
0 commit comments