Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pytest failing to find tket2 in CI #367

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 53 additions & 53 deletions poetry.lock

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

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ python-source = "tket2-py"
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
features = ["pyo3/extension-module"]

[tool.pytest]
pythonpath = "tket2-py"

[tool.pytest.ini_options]
# Lark throws deprecation warnings for `src_parse` and `src_constants`.
filterwarnings = "ignore::DeprecationWarning:lark.*"
Expand Down
4 changes: 2 additions & 2 deletions tket2-py/tket2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from . import passes, circuit, optimiser, pattern, rewrite
from . import circuit, ops, optimiser, passes, pattern, rewrite

__all__ = [circuit, optimiser, passes, pattern, rewrite]
__all__ = ["circuit", "ops", "optimiser", "passes", "pattern", "rewrite"]