Skip to content

Commit 3536926

Browse files
authored
feat: add python 3.12 support (#34)
* feat: add python 3.12 support * Fix a clippy warning
1 parent fd2d7c8 commit 3536926

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/dll.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ jobs:
3131
- uses: actions/setup-python@v4
3232
with:
3333
python-version: "3.11"
34+
- uses: actions/setup-python@v4
35+
with:
36+
python-version: "3.12-dev"
3437
- name: Copy pythonXY.dll
3538
shell: bash
3639
run: |
3740
set -e
38-
for VER in 3.7 3.8 3.9 3.10 3.11; do
41+
for VER in 3.7 3.8 3.9 3.10 3.11 3.12; do
3942
VER_NUM=$(echo $VER | sed 's/\.//')
4043
PREFIX=$(py -$VER -c "import sys; print(sys.base_prefix, end='')")
4144
cp "$PREFIX/python$VER_NUM.dll" .

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: actions/checkout@v3
3535
- uses: goto-bus-stop/setup-zig@v1
3636
with:
37-
version: 0.9.1
37+
version: 0.10.1
3838
- name: Run tests with zig
3939
run: ZIG_COMMAND=zig cargo test --verbose
4040
zigwheel:
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/checkout@v3
4545
- uses: actions/setup-python@v4
4646
with:
47-
python-version: "3.10"
47+
python-version: "3.11"
4848
- name: Install ziglang package
4949
run: pip install ziglang
5050
- name: Run tests with python -m ziglang

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ impl DllToolCommand {
446446
/// and falls back to the default MinGW-w64 arch prefixes.
447447
fn get_mingw_dlltool(arch: &str) -> Result<Command> {
448448
if let Ok(user_dlltool) = env::var("PYO3_MINGW_DLLTOOL") {
449-
Ok(Command::new(&user_dlltool))
449+
Ok(Command::new(user_dlltool))
450450
} else {
451451
let prefix_dlltool = match arch {
452452
// 64-bit MinGW-w64 (aka `x86_64-pc-windows-gnu`)

0 commit comments

Comments
 (0)