Skip to content

Commit

Permalink
chore: Remove guppy test dependency (#516)
Browse files Browse the repository at this point in the history
Removes the dependency on the guppy package, to avoid dependency cycles.
The lowering tests here are being moved to the guppy project instead.
  • Loading branch information
aborgna-q authored Jul 30, 2024
1 parent eca258b commit 3e67379
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 162 deletions.
131 changes: 60 additions & 71 deletions poetry.lock

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

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ mypy = "^1.11.0"
hypothesis = "^6.108.5"
graphviz = "^0.20"
pre-commit = "^3.8.0"
guppylang = {git = "https://github.com/CQCL/guppylang", branch = "doug/hugr-0.10.0"}

[build-system]
requires = ["maturin~=1.7"]
Expand Down
7 changes: 6 additions & 1 deletion tket2-py/examples/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
"""Some utility functions for the example notebooks."""

from typing import TYPE_CHECKING, Any
from tket2.passes import lower_to_pytket
from tket2.circuit import Tk2Circuit

from guppylang.definition.function import RawFunctionDef
if TYPE_CHECKING:
try:
from guppylang.definition.function import RawFunctionDef # type: ignore[import-untyped, import-not-found, unused-ignore] # noqa: F401
except ImportError:
RawFunctionDef = Any


# We need to define this helper function for now. It will be included in guppy in the future.
Expand Down
Loading

0 comments on commit 3e67379

Please sign in to comment.