Skip to content

Commit 647ad3d

Browse files
authored
chore: Attempt at making execute_llvm editable in local uv development (#737)
This is an attempt at avoiding `uv` from caching `execute_llvm` and reflecting new changes to the package. As part of this I updated various dependencies: - `maturin 1.4 -> 1.7.7`, since [this issue](https://www.github.com/PyO3/maturin/issues/2346) seemed related. - `pyo3 0.19 -> 0.23`, and updated the bindings syntax. The change that actually worked was removing the unversioned "execute_llvm" entry in the main package's dependencies. Since we manually install it using `maturin develop`, it now ensures that changes get re-compiled and reflected on the python runtime. drive-by: Update `execute_llvm` to read packages instead of hugrs, so we can pass it guppys with quantum primitives.
1 parent db86f98 commit 647ad3d

File tree

8 files changed

+122
-127
lines changed

8 files changed

+122
-127
lines changed

Cargo.lock

Lines changed: 41 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ missing_docs = "warn"
2222
debug_assert_with_mut_call = "warn"
2323

2424
[workspace.dependencies]
25-
pyo3 = "0.19.0"
25+
pyo3 = "0.23.3"
2626
serde_json = "1.0.111"
2727
cargo_toml = "0.20.4"
2828
thiserror = "2.0.6"

execute_llvm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "execute_llvm"
3-
version = "0.2.1"
3+
version = "0.2.3"
44
edition.workspace = true
55
homepage.workspace = true
66
repository.workspace = true
@@ -15,7 +15,7 @@ name = "execute_llvm"
1515
crate-type = ["cdylib"]
1616

1717
[dependencies]
18-
hugr = {workspace = true, features = ["llvm"]}
18+
hugr = { workspace = true, features = ["llvm"] }
1919
inkwell.workspace = true
2020
pyo3.workspace = true
2121
serde_json.workspace = true

execute_llvm/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ classifiers = [
1010
dynamic = ["version"]
1111

1212
[build-system]
13-
requires = ["maturin>=1.3,<2.0"]
13+
requires = ["maturin>=1.7.7,<2.0"]
1414
build-backend = "maturin"
1515

1616
[tool.maturin]

0 commit comments

Comments
 (0)