Skip to content

Commit

Permalink
Python 3.13 Support (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred authored Oct 30, 2024
1 parent 6eef487 commit 7e76dd8
Show file tree
Hide file tree
Showing 13 changed files with 13,972 additions and 53 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,6 @@ jobs:
3.10.0,
3.10.15,
3.11.0,
3.11.1,
3.11.2,
3.11.3,
3.11.4,
3.11.5,
3.11.6,
3.11.7,
3.11.8,
3.11.9,
3.11.10,
3.12.0,
3.12.1,
Expand All @@ -221,31 +212,14 @@ jobs:
3.12.5,
3.12.6,
3.12.7,
3.13.0,
]
# TODO: also test windows
os: [ubuntu-20.04, macos-13]
# some versions of python can't be tested on GHA with osx because of SIP:
exclude:
- os: macos-13
python-version: 3.11.0
- os: macos-13
python-version: 3.11.1
- os: macos-13
python-version: 3.11.2
- os: macos-13
python-version: 3.11.3
- os: macos-13
python-version: 3.11.4
- os: macos-13
python-version: 3.11.5
- os: macos-13
python-version: 3.11.6
- os: macos-13
python-version: 3.11.7
- os: macos-13
python-version: 3.11.8
- os: macos-13
python-version: 3.11.9
- os: macos-13
python-version: 3.11.10
- os: macos-13
Expand Down
4 changes: 2 additions & 2 deletions ci/update_python_test_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def get_github_python_versions():

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

if major == 3 and minor >= 13:
if major == 3 and minor > 13:
continue

versions.extend(f"{major}.{minor}.{patch}" for patch in patches)
Expand Down
7 changes: 6 additions & 1 deletion src/coredump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::binary_parser::{parse_binary, BinaryInfo};
use crate::config::Config;
use crate::dump::print_trace;
use crate::python_bindings::{
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,
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,
};
use crate::python_data_access::format_variable;
use crate::python_interpreters::InterpreterState;
Expand Down Expand Up @@ -313,6 +313,11 @@ impl PythonCoreDump {
minor: 12,
..
} => self._get_stack::<v3_12_0::_is>(config),
Version {
major: 3,
minor: 13,
..
} => self._get_stack::<v3_13_0::_is>(config),
_ => Err(format_err!(
"Unsupported version of Python: {}",
self.version
Expand Down
1 change: 1 addition & 0 deletions src/python_bindings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pub mod v2_7_15;
pub mod v3_10_0;
pub mod v3_11_0;
pub mod v3_12_0;
pub mod v3_13_0;
pub mod v3_3_7;
pub mod v3_5_5;
pub mod v3_6_6;
Expand Down
Loading

0 comments on commit 7e76dd8

Please sign in to comment.