Skip to content

Commit ceba9a5

Browse files
committed
.
1 parent 674ba8d commit ceba9a5

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/deploy.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ jobs:
115115
- uses: actions/checkout@v4
116116
- uses: actions/setup-python@v5
117117
with:
118-
python-version: '3.11'
118+
python-version: '3.12'
119119
- name: Update version in Cargo.toml
120120
run: |
121+
pip3 install toml
121122
python3 scripts/update_version_in_cargo_toml.py ${{ github.event.inputs.version_tag }}
122123
- name: Build wheels
123124
uses: PyO3/maturin-action@v1
@@ -145,10 +146,11 @@ jobs:
145146
- uses: actions/checkout@v4
146147
- uses: actions/setup-python@v5
147148
with:
148-
python-version: '3.11'
149+
python-version: '3.12'
149150
architecture: ${{ matrix.platform.target }}
150151
- name: Update version in Cargo.toml
151152
run: |
153+
pip3 install toml
152154
python3 scripts/update_version_in_cargo_toml.py ${{ github.event.inputs.version_tag }}
153155
- name: Build wheels
154156
uses: PyO3/maturin-action@v1
@@ -175,9 +177,10 @@ jobs:
175177
- uses: actions/checkout@v4
176178
- uses: actions/setup-python@v5
177179
with:
178-
python-version: '3.11'
180+
python-version: '3.12'
179181
- name: Update version in Cargo.toml
180182
run: |
183+
pip3 install toml
181184
python3 scripts/update_version_in_cargo_toml.py ${{ github.event.inputs.version_tag }}
182185
- name: Build wheels
183186
uses: PyO3/maturin-action@v1
@@ -197,9 +200,10 @@ jobs:
197200
- uses: actions/checkout@v4
198201
- uses: actions/setup-python@v5
199202
with:
200-
python-version: '3.11'
203+
python-version: '3.12'
201204
- name: Update version in Cargo.toml
202205
run: |
206+
pip3 install toml
203207
python3 scripts/update_version_in_cargo_toml.py ${{ github.event.inputs.version_tag }}
204208
- name: Build sdist
205209
uses: PyO3/maturin-action@v1

scripts/update_version_in_cargo_toml.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import errno
1313
import functools
14-
import json
1514
import os
1615
import re
1716
import subprocess

0 commit comments

Comments
 (0)