Skip to content

Commit

Permalink
Remove extra deps
Browse files Browse the repository at this point in the history
The feature is not supported for dev-deps. c.f. python-poetry/poetry#1145 (comment)
  • Loading branch information
ikanago committed Feb 14, 2022
1 parent 2c40d3d commit d3807f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Install dependencies
if: steps.cached-poetry-deps.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --extras "benchmark"
run: poetry install --no-interaction --no-root

- name: Install library
run: poetry install --no-interaction
Expand All @@ -51,5 +51,4 @@ jobs:
- name: Benchmark
if: ${{ github.event_name == 'pull_request' }}
run: |
python -m pip install -r benchmarks/requirements.txt
make benchmark
2 changes: 1 addition & 1 deletion poetry.lock

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

7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ Sphinx = "^4.3.0"
sphinx-book-theme = "^0.1.7"
ipykernel = "^6.5.0"
myst-nb = "^0.13.1"
pytest-benchmark = {version = "^3.4.1", optional = true}
PennyLane = {version = "^0.21.0", optional = true}

[tool.poetry.extras]
benchmark = ["pytest-benchmark", "PennyLane"]
pytest-benchmark = "^3.4.1"
PennyLane = "^0.21.0"

[tool.isort]
default_section = "THIRDPARTY"
Expand Down

0 comments on commit d3807f4

Please sign in to comment.