From d3807f46d37627268a33bf855b999c6621fac832 Mon Sep 17 00:00:00 2001 From: ikanago Date: Mon, 14 Feb 2022 06:23:39 +0000 Subject: [PATCH] Remove extra deps The feature is not supported for dev-deps. c.f. https://github.com/python-poetry/poetry/issues/1145#issuecomment-808580990 --- .github/workflows/unittest.yml | 3 +-- poetry.lock | 2 +- pyproject.toml | 7 ++----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 5a724e15..810452a9 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -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 @@ -51,5 +51,4 @@ jobs: - name: Benchmark if: ${{ github.event_name == 'pull_request' }} run: | - python -m pip install -r benchmarks/requirements.txt make benchmark diff --git a/poetry.lock b/poetry.lock index 3265259f..b1807a83 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1886,7 +1886,7 @@ benchmark = [] [metadata] lock-version = "1.1" python-versions = ">=3.7.1,<3.11" -content-hash = "cc661a84db9fa1b4aa874eccaaaba5e782557def8151e3a1d312e3dbad6eaa71" +content-hash = "fe3833a9328dc0635e7929e1e41aac21d0bb1b05a48d812add4a61d742a1fd85" [metadata.files] alabaster = [ diff --git a/pyproject.toml b/pyproject.toml index c6c45737..a9aa4cc4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"