Skip to content

Commit

Permalink
Python 3.12 support for Speedict & Update Speedict to v2.7.0 (#92)
Browse files Browse the repository at this point in the history
* Add `DbClosedError` (#88)

* Add DbClosedError

* Fix test

* Clean up clippy lint for iter()

* add python 3.12

* Update pyproject.toml

* update to speedict v2.7.0

* update doc & fixes

---------

Co-authored-by: Chris Tam <[email protected]>
  • Loading branch information
Congyuwang and GodTamIt authored Nov 11, 2023
1 parent 42b75c4 commit 7b5d37a
Show file tree
Hide file tree
Showing 10 changed files with 486 additions and 606 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
py_version: [3.7, 3.8, 3.9, "3.10", "3.11"]
py_version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
fail-fast: false
matrix:
target: [x64, x86]
py_version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]
py_version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
rustup-components: rustfmt
target: ${{ matrix.target }}
manylinux: 2_28
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12'
container: messense/manylinux_2_28-cross:${{ matrix.target }}
- name: Install built wheel and test
if: matrix.target == 'x86_64'
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
rustup-components: rustfmt
target: ${{ matrix.target }}
manylinux: 2014
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12'
container: congyuwang/manylinux2014:${{ matrix.target }}
- name: Install built wheel and test
if: matrix.target == 'x86_64'
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
rustup-components: rustfmt
target: ${{ matrix.target }}
manylinux: 2_28
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12'
container: congyuwang/manylinux_2_28-cross:${{ matrix.target }}
- uses: uraimo/run-on-arch-action@v2
if: matrix.target != 'ppc64'
Expand All @@ -192,7 +192,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
needs: [ windows, manylinux_2_28, manylinux2014, macos, linux-cross ]
needs: [windows, manylinux_2_28, manylinux2014, macos, linux-cross]
steps:
- uses: actions/download-artifact@v2
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: PR check

on:
pull_request:
branches: [ main, speedict ]
branches: [main, speedict]

jobs:
macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
py_version: [3.7, 3.8, 3.9, "3.10", "3.11"]
py_version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
fail-fast: false
matrix:
target: [x64, x86]
py_version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]
py_version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
rustup-components: rustfmt
target: ${{ matrix.target }}
manylinux: 2_28
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12'
container: messense/manylinux_2_28-cross:${{ matrix.target }}
- name: Install built wheel and test
if: matrix.target == 'x86_64'
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
rustup-components: rustfmt
target: ${{ matrix.target }}
manylinux: 2014
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12'
container: congyuwang/manylinux2014:${{ matrix.target }}
- name: Install built wheel and test
if: matrix.target == 'x86_64'
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
rustup-components: rustfmt
target: ${{ matrix.target }}
manylinux: 2_28
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11'
args: --release --out dist --interpreter '3.7 3.8 3.9 3.10 3.11 3.12'
container: congyuwang/manylinux_2_28-cross:${{ matrix.target }}
- uses: uraimo/run-on-arch-action@v2
if: matrix.target != 'ppc64'
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ name = "speedict"
crate-type = ["cdylib"]

[dependencies]
speedb = { git = "https://github.com/Congyuwang/rust-rocksdb", tag = "speedict-v2.4.1" }
libspeedb-sys = { git = "https://github.com/Congyuwang/rust-rocksdb", tag = "speedict-v2.4.1" }
speedb = { git = "https://github.com/Congyuwang/rust-rocksdb", tag = "speedict-v2.7.0" }
libspeedb-sys = { git = "https://github.com/Congyuwang/rust-rocksdb", tag = "speedict-v2.7.0" }
pyo3-log = "0.8"
log = "0.4"
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion docs/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7b5d37a

Please sign in to comment.