Skip to content

Commit 7e76dd8

Browse files
authored
Python 3.13 Support (#708)
1 parent 6eef487 commit 7e76dd8

File tree

13 files changed

+13972
-53
lines changed

13 files changed

+13972
-53
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,6 @@ jobs:
203203
3.10.0,
204204
3.10.15,
205205
3.11.0,
206-
3.11.1,
207-
3.11.2,
208-
3.11.3,
209-
3.11.4,
210-
3.11.5,
211-
3.11.6,
212-
3.11.7,
213-
3.11.8,
214-
3.11.9,
215206
3.11.10,
216207
3.12.0,
217208
3.12.1,
@@ -221,31 +212,14 @@ jobs:
221212
3.12.5,
222213
3.12.6,
223214
3.12.7,
215+
3.13.0,
224216
]
225217
# TODO: also test windows
226218
os: [ubuntu-20.04, macos-13]
227219
# some versions of python can't be tested on GHA with osx because of SIP:
228220
exclude:
229221
- os: macos-13
230222
python-version: 3.11.0
231-
- os: macos-13
232-
python-version: 3.11.1
233-
- os: macos-13
234-
python-version: 3.11.2
235-
- os: macos-13
236-
python-version: 3.11.3
237-
- os: macos-13
238-
python-version: 3.11.4
239-
- os: macos-13
240-
python-version: 3.11.5
241-
- os: macos-13
242-
python-version: 3.11.6
243-
- os: macos-13
244-
python-version: 3.11.7
245-
- os: macos-13
246-
python-version: 3.11.8
247-
- os: macos-13
248-
python-version: 3.11.9
249223
- os: macos-13
250224
python-version: 3.11.10
251225
- os: macos-13

ci/update_python_test_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ def get_github_python_versions():
3838

3939
# for older versions of python, don't test all patches
4040
# (just test first and last) to keep the test matrix down
41-
if major == 2 or minor <= 10:
41+
if major == 2 or minor <= 11:
4242
patches = [patches[0], patches[-1]]
4343

44-
if major == 3 and minor >= 13:
44+
if major == 3 and minor > 13:
4545
continue
4646

4747
versions.extend(f"{major}.{minor}.{patch}" for patch in patches)

src/coredump.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::binary_parser::{parse_binary, BinaryInfo};
1515
use crate::config::Config;
1616
use crate::dump::print_trace;
1717
use crate::python_bindings::{
18-
v2_7_15, v3_10_0, v3_11_0, v3_12_0, v3_3_7, v3_5_5, v3_6_6, v3_7_0, v3_8_0, v3_9_5,
18+
v2_7_15, v3_10_0, v3_11_0, v3_12_0, v3_13_0, v3_3_7, v3_5_5, v3_6_6, v3_7_0, v3_8_0, v3_9_5,
1919
};
2020
use crate::python_data_access::format_variable;
2121
use crate::python_interpreters::InterpreterState;
@@ -313,6 +313,11 @@ impl PythonCoreDump {
313313
minor: 12,
314314
..
315315
} => self._get_stack::<v3_12_0::_is>(config),
316+
Version {
317+
major: 3,
318+
minor: 13,
319+
..
320+
} => self._get_stack::<v3_13_0::_is>(config),
316321
_ => Err(format_err!(
317322
"Unsupported version of Python: {}",
318323
self.version

src/python_bindings/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pub mod v2_7_15;
22
pub mod v3_10_0;
33
pub mod v3_11_0;
44
pub mod v3_12_0;
5+
pub mod v3_13_0;
56
pub mod v3_3_7;
67
pub mod v3_5_5;
78
pub mod v3_6_6;

0 commit comments

Comments
 (0)