Skip to content

Commit

Permalink
drop 3.7 and fixes for 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
iiSeymour committed May 13, 2024
1 parent 02a56ee commit e8c0879
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rustup default 1.78.0
free -h
cargo build --jobs 1 --config net.git-fetch-with-cli=true

for PYBIN in /opt/python/cp3[7891]*/bin; do
for PYBIN in /opt/python/cp3[891]*/bin; do
"${PYBIN}/pip" install maturin
"${PYBIN}/maturin" build -F python -i "${PYBIN}/python" --release
done
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ ndarray-stats = "0.5"
ndarray = { version = "0.15.3", features = ["serde"] }

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

proc-macro2 = "1.0.82"

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub fn js_viterbi_search(
/// Python
#[cfg(feature = "python")]
fn seq_to_vec(seq: &PySequence) -> PyResult<Vec<String>> {
Ok(seq.tuple()?.iter().map(|x| x.to_string()).collect())
Ok(seq.to_tuple()?.iter().map(|x| x.to_string()).collect())
}

/// Perform a Viterbi search decode on an RNN output.
Expand Down

0 comments on commit e8c0879

Please sign in to comment.