Skip to content

Commit

Permalink
chore: adjust pyo3 setting
Browse files Browse the repository at this point in the history
  • Loading branch information
grieve54706 committed Nov 29, 2024
1 parent 9065118 commit ed3a4d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
10 changes: 0 additions & 10 deletions wren-core-py/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions wren-core-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ name = "wren_core_py"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.23.2", features = [
"extension-module",
"generate-import-lib",
] }
pyo3 = { version = "0.23.2", features = ["extension-module"] }
wren-core = { path = "../wren-core/core" }
base64 = "0.22.1"
serde_json = "1.0.117"
Expand All @@ -25,3 +22,7 @@ tokio = "1.40.0"

[build-dependencies]
pyo3-build-config = "0.23.2"

[features]
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]
4 changes: 2 additions & 2 deletions wren-core-py/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ install:
poetry install --no-root

build *args:
poetry run maturin build {{args}}
poetry run maturin build {{ args }}

develop:
poetry run maturin develop

test: develop
cargo test
cargo test --no-default-features
poetry run pytest
1 change: 1 addition & 0 deletions wren-core-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module-name = "wren_core"
include = [{ path = "Cargo.lock", format = "sdist" }]
exclude = ["tests/**", "target/**"]
locked = true
features = ["pyo3/extension-module"]

[build-system]
requires = ["maturin>=1.0,<2.0"]
Expand Down

0 comments on commit ed3a4d7

Please sign in to comment.