Skip to content

Commit

Permalink
update to pyo3 0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquessV committed Sep 6, 2023
1 parent 5cb37d0 commit 0651dfa
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 106 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish-quil-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ jobs:
- name: Update rustup
run: |
rustup self update
rustup toolchain install stable-gnu
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -112,7 +111,6 @@ jobs:
with:
target: ${{ matrix.target }}
args: -i python --release --manifest-path quil-py/Cargo.toml --out dist
rust-toolchain: stable-x86_64-pc-windows-gnu
- name: Install built wheel
run: |
pip install quil --find-links dist --force-reinstall --no-deps --no-index
Expand Down
64 changes: 35 additions & 29 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions quil-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ ndarray.workspace = true
quil-rs = { path = "../quil-rs", version = "0.21.0" }
strum.workspace = true
# pyo3 dependencies should be updated together
numpy = { version = "0.17.2" }
pyo3 = { version = "0.17" }
rigetti-pyo3 = "0.1.0"
numpy = { version = "0.19.0" }
pyo3 = { version = "0.19" }
rigetti-pyo3 = { git = "https://github.com/rigetti/rigetti-pyo3.git", branch = "29-update-pyo3-to-019" }

[build-dependencies]
pyo3-build-config = { version = "0.17" }
14 changes: 7 additions & 7 deletions quil-py/quil/expression/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Expression:
"""
...
@staticmethod
def parse(quil: str) -> Expression:
def parse(input: str) -> Expression:
"""
Parses an ``Expression`` from a string. Raises a ``ParseExpressionError`` if the string
isn't a valid Quil expression.
Expand All @@ -63,17 +63,17 @@ class Expression:
@staticmethod
def new_pi() -> "Expression": ...
@staticmethod
def from_address(memory_reference: MemoryReference) -> "Expression": ...
def from_address(inner: MemoryReference) -> "Expression": ...
@staticmethod
def from_function_call(function_call: FunctionCallExpression) -> "Expression": ...
def from_function_call(inner: FunctionCallExpression) -> "Expression": ...
@staticmethod
def from_infix(infix: InfixExpression) -> "Expression": ...
def from_infix(inner: InfixExpression) -> "Expression": ...
@staticmethod
def from_number(number: complex) -> "Expression": ...
def from_number(inner: complex) -> "Expression": ...
@staticmethod
def from_prefix(prefix: PrefixExpression) -> "Expression": ...
def from_prefix(inner: PrefixExpression) -> "Expression": ...
@staticmethod
def from_variable(variable: str) -> "Expression": ...
def from_variable(inner: str) -> "Expression": ...
def as_address(self) -> Optional[MemoryReference]: ...
def to_address(self) -> MemoryReference: ...
def as_function_call(self) -> Optional[FunctionCallExpression]: ...
Expand Down
Loading

0 comments on commit 0651dfa

Please sign in to comment.