From 78a1312c3b9af3b424b1680486434fbc9a656899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 2 Jan 2024 20:25:17 +0100 Subject: [PATCH] Fix dependency on `coverage` to be conditional to `test` extra (#606) Fix the Poetry dependency specification to include `coverage` in the `test` extra. Otherwise, `optional = true` is ignored and an unconditional dependency is created. Furthermore, using `optional` without an `extra` is considered incorrect and may cause Poetry to error out in the future, cf.: https://github.com/python-poetry/poetry/issues/2357 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cf0d9394..29eb619b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,7 @@ check-manifest = {version = "^0.45", optional = true} [tool.poetry.extras] test = ["pytest", "pytest-cov", "tox", "factory-boy", "flake8", - "check-manifest"] + "check-manifest", "coverage"] yaml-plugin = ["ruamel.yaml"] art-plugin = ["Pillow", "pylast", "requests"]