Skip to content

Commit

Permalink
Add optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Mills committed Mar 18, 2024
1 parent 159531b commit 8d9a43b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Build qermit
if: github.event_name == 'pull_request'
run: |
pip install -e . -v
pip install -e .[tests] -v
- name: Test qermit
if: github.event_name == 'pull_request'
run: |
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Build qermit
if: github.event_name == 'pull_request'
run: |
pip install -e . -v
pip install -e .[tests] -v
- name: Test qermit
if: github.event_name == 'pull_request'
run: |
Expand All @@ -68,7 +68,7 @@ jobs:
- name: Build qermit
if: github.event_name == 'pull_request'
run: |
pip install -e . -v
pip install -e .[tests] -v
- name: Test qermit
if: github.event_name == 'pull_request'
run: |
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
uses: actions/checkout@v2
- name: Build qermit
run: |
pip install .
pip install .[tests]
cd tests
- name: Run mypy
if: github.event_name == 'pull_request'
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ readme = "README.md"
python = ">=3.10, <3.13"
pytket-qiskit = "^0.50.0"
matplotlib = "^3.8.3"

pytest = "^8.1.1"
mypy = "^1.9.0"
flake8 = "^7.0.0"
sphinx = "^7.2.6"
pytest-cov = "^4.1.0"
sphinx-book-theme = "^1.1.2"
qiskit-ibm-provider = "^0.10.0"
pytket-quantinuum = "^0.30.0"

pytket-quantinuum = {version="^0.30.0", optional=True}

[tool.poetry.extras]
tests = ["pytest", "mypy", "flake8", "pytest-cov", "qiskit-ibm-provider", "pytket-quantinuum"]
docs = ["sphinx", "sphinx-book-theme"]

0 comments on commit 8d9a43b

Please sign in to comment.