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: make tket2 group rather than extra #128

Merged
merged 1 commit into from
Jan 19, 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
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: poetry run pytest

- name: Install tket2 dependencies
run: poetry install --extras=pytket
run: poetry install --with pytket

- name: Rerun `py(...)` expression tests with tket2 installed
run: poetry run pytest tests/integration/test_py.py tests/error/test_py_errors.py
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ poetry run pytest -v
You have to install extra dependencies to test automatic circuit conversion from `pytket`:

```sh
poetry install --extras=pytket
poetry install --with pytket
poetry run pytest -v # Now rerun tests
```

Expand Down
7 changes: 2 additions & 5 deletions poetry.lock

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

13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ graphviz = "^0.20.1"
networkx = "^3.2.1"
pydantic = "^2.5.3"
typing-extensions = "^4.9.0"
pytket = { version = "^1.24.0", optional = true }
tket2-py = { git = "https://github.com/CQCL/tket2.git", optional = true, rev = "9e941f3" }

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
Expand All @@ -28,10 +26,15 @@ pytket = "*"
optional = true

[tool.poetry.group.validation.dependencies]
guppyval = {path = "validator"}
guppyval = { path = "validator" }

[tool.poetry.extras]
pytket = ["pytket", "tket2-py"]

[tool.poetry.group.pytket]
optional = true

[tool.poetry.group.pytket.dependencies]
pytket = { version = "^1.24.0" }
tket2-py = {git = "https://github.com/CQCL/tket2.git", rev = "9e941f3"}


[build-system]
Expand Down