Skip to content

Commit

Permalink
moving pecos-python into pecos-rslib + more PHIREngine Python functio…
Browse files Browse the repository at this point in the history
…nality
  • Loading branch information
ciaranra committed Jan 27, 2025
1 parent 175a4bd commit 5477d05
Show file tree
Hide file tree
Showing 15 changed files with 226 additions and 339 deletions.
22 changes: 10 additions & 12 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
resolver = "2"
members = [
"python/pecos-rslib/rust",
"crates/pecos*",
"crates/benchmarks",
]
Expand Down Expand Up @@ -42,7 +43,7 @@ pecos-engines = { version = "0.1.1", path = "crates/pecos-engines" }
pecos-qec = { version = "0.1.1", path = "crates/pecos-qec" }
pecos = { version = "0.1.1", path = "crates/pecos" }
pecos-cli = { version = "0.1.1", path = "crates/pecos-cli" }
pecos-python = { version = "0.1.1", path = "crates/pecos-python" }
pecos-rslib = { version = "0.1.1", path = "python/pecos-rslib/rust"}

[profile.release]
codegen-units = 1
Expand All @@ -57,3 +58,6 @@ style = "warn"
pedantic = "warn"
# restriction = "warn"
cargo = "warn"

[workspace.metadata.commands]
test-py = ["./scripts/setup-env.sh", "cargo", "test", "-p", "pecos-python"]
1 change: 0 additions & 1 deletion crates/pecos-python/LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions crates/pecos-python/README.md

This file was deleted.

187 changes: 0 additions & 187 deletions crates/pecos-python/build.rs

This file was deleted.

3 changes: 2 additions & 1 deletion python/pecos-rslib/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# PECOS/python/pecos-rslib/pyproject.toml
[project]
name = "pecos-rslib"
version = "0.6.0.dev8"
Expand All @@ -20,7 +21,7 @@ build-backend = "maturin"
features = ["pyo3/extension-module"]
python-source = "src"
module-name = "pecos_rslib._pecos_rslib"
manifest-path = "../../crates/pecos-python/Cargo.toml"
manifest-path = "rust/Cargo.toml"

[tool.uv.sources]
pecos-rslib = { workspace = true }
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# PECOS/python/pecos-rslib/rust/Cargo.toml
[package]
name = "pecos-python"
name = "pecos-rslib"
version.workspace = true
edition.workspace = true
authors.workspace = true
Expand All @@ -12,22 +13,14 @@ description = "Allows running Rust code in Python."
publish = false

[lib]
crate-type = ["cdylib", "lib"]
name = "pecos_rslib"
crate-type = ["cdylib", "rlib"]

[dependencies]
pyo3 = { workspace=true, features = ["extension-module", "auto-initialize"] }
pecos = { workspace = true }
parking_lot = "0.12.3"
once_cell = "1.19.0"
pyo3-build-config = "0.23.4"
serde_json = "1.0.137"

#[dev-dependencies]
#serde_json = "1.0.137"

[build-dependencies]
pyo3-build-config = "0.23"
serde_json = "1"

[lints]
workspace = true
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
// or implied. See the License for the specific language governing permissions and limitations under
// the License.

mod phir_bridge;
// PECOS/python/pecos-rslib/rust/src/lib.rs

pub mod phir_bridge;
mod sparse_sim;
#[cfg(test)]
mod test_phir_bridge;

use sparse_sim::SparseSim;

Expand Down
Loading

0 comments on commit 5477d05

Please sign in to comment.