Skip to content

Commit e8c0879

Browse files
committed
drop 3.7 and fixes for 3.12
1 parent 02a56ee commit e8c0879

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build-wheels.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rustup default 1.78.0
88
free -h
99
cargo build --jobs 1 --config net.git-fetch-with-cli=true
1010

11-
for PYBIN in /opt/python/cp3[7891]*/bin; do
11+
for PYBIN in /opt/python/cp3[891]*/bin; do
1212
"${PYBIN}/pip" install maturin
1313
"${PYBIN}/maturin" build -F python -i "${PYBIN}/python" --release
1414
done

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: macos-latest
4444
strategy:
4545
matrix:
46-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
46+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
4747
steps:
4848
- uses: actions/checkout@v3
4949
- uses: actions-rs/toolchain@v1

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ndarray-stats = "0.5"
1313
ndarray = { version = "0.15.3", features = ["serde"] }
1414

1515
# python build
16-
pyo3 = { version = "0.14", features = ["extension-module"], optional = true }
17-
numpy = { version = "0.14.1", optional = true }
16+
pyo3 = { version = "0.19.2", features = ["extension-module"], optional = true }
17+
numpy = { version = "0.19.0", optional = true }
1818

1919
proc-macro2 = "1.0.82"
2020

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub fn js_viterbi_search(
142142
/// Python
143143
#[cfg(feature = "python")]
144144
fn seq_to_vec(seq: &PySequence) -> PyResult<Vec<String>> {
145-
Ok(seq.tuple()?.iter().map(|x| x.to_string()).collect())
145+
Ok(seq.to_tuple()?.iter().map(|x| x.to_string()).collect())
146146
}
147147

148148
/// Perform a Viterbi search decode on an RNN output.

0 commit comments

Comments
 (0)