Reenable pyo3 in the workspace list (#170)

* Enable pyo3 back.

* Adapt the CI.
This commit is contained in:
Laurent Mazare 2023-07-14 19:54:38 +01:00 committed by GitHub
parent d1f6fad84a
commit d1f5d44c04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --workspace --exclude candle-kernels
args: --workspace
test:
name: Test Suite
@ -43,7 +43,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --workspace --exclude candle-kernels
args: --workspace
fmt:
name: Rustfmt
@ -75,4 +75,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-default-features --workspace --exclude candle-kernels --tests --examples -- -D warnings
args: --workspace --tests --examples -- -D warnings

View File

@ -4,12 +4,12 @@ members = [
"candle-examples",
"candle-hub",
"candle-nn",
"candle-pyo3",
"candle-transformers",
"candle-wasm-example",
]
exclude = [
"candle-kernels",
"candle-pyo3",
]
[profile.release-with-debug]

View File

@ -1,4 +1,5 @@
From the top level directory run:
```
cargo build --release --package candle-pyo3 --no-default-features && cp -f target/release/libcandle.so candle.so
cargo build --release --package candle-pyo3 && cp -f ./target/release/libcandle.so candle.so
PYTHONPATH=. python3 candle-pyo3/test.py
```