Skip to content

Commit

Permalink
fix: make tket2 group rather than extra
Browse files Browse the repository at this point in the history
pypi doesn't allow git dependencies in extras
  • Loading branch information
ss2165 committed Jan 19, 2024
1 parent e3da1ec commit 4a68646
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
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

0 comments on commit 4a68646

Please sign in to comment.