Skip to content

Commit

Permalink
fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
nclack committed May 8, 2023
1 parent 6e41aff commit afba01d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 14 deletions.
38 changes: 30 additions & 8 deletions Cargo.lock

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

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ authors = ["Nathan Clack <nclack@chanzuckerberg.com>"]
version = "0.1.0"
edition = "2021"

[package.metadata.maturin]
python-source = "python"

[lib]
name = "acquire"
crate-type = ["cdylib"]
Expand All @@ -27,5 +24,5 @@ serde = { version = "1.0", features = ["derive"] }
pythonize = "0.18"

[build-dependencies]
bindgen = "0.64"
bindgen = "0.65"
cmake = "0.1"
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ acquire-python = [
"acquire.pyi",
]

[tool.maturin]
python-source = "python"
python-packages = ["acquire"]
include = ["**/*/*.so", "**/*/*.dll"]

[tool.black]
target-version = ['py39', 'py310', 'py311']
line-length = 79
Expand Down
2 changes: 0 additions & 2 deletions src/camera.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::process::Output;

use crate::{
capi,
components::{macros::impl_plain_old_dict, Direction, SampleType, Trigger},
Expand Down

0 comments on commit afba01d

Please sign in to comment.