Skip to content

Commit

Permalink
py3.12 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Nov 7, 2023
1 parent 5b5a8bc commit 9fef6ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.x']
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.x']
exclude:
# actions/setup-python no longer provides...
- os: ubuntu-latest
Expand Down Expand Up @@ -66,6 +66,7 @@ jobs:
cat <<EOF > runit.sh
#!/bin/sh
set -e -x
ls -d /opt/python
cd /io
export PATH="/opt/python/${{ matrix.pyver }}/bin:\$PATH"
which python
Expand Down
1 change: 1 addition & 0 deletions build_crasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import print_function

import setuptools # allow to monkey path in setuptools._distutils
from distutils.ccompiler import new_compiler
import os
import platform
Expand Down
5 changes: 4 additions & 1 deletion ci_core_dumper/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
import traceback
import resource
import subprocess as SP
from distutils.spawn import find_executable
from glob import glob
try:
from distutils.spawn import find_executable # < 3.12
except ImportError:
from shutil import which as find_executable # >= 3.3

from . import CommonDumper, _root_dir

Expand Down

0 comments on commit 9fef6ca

Please sign in to comment.