From 69d23bfa397b1a93440c48b0511417338ecc7d3c Mon Sep 17 00:00:00 2001 From: Catherine Date: Wed, 4 Oct 2023 16:16:32 +0000 Subject: [PATCH] plugin: fix type error setting `requirement.marker`. --- software/glasgow/support/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/glasgow/support/plugin.py b/software/glasgow/support/plugin.py index e8e32c270..d4747f619 100644 --- a/software/glasgow/support/plugin.py +++ b/software/glasgow/support/plugin.py @@ -18,7 +18,7 @@ def _requirements_for_optional_dependencies(distribution, depencencies): for requirement in requirements: if requirement.marker and requirement.marker.evaluate({"extra": dependency}): requirement = packaging.requirements.Requirement(str(requirement)) - requirement.marker = "" + requirement.marker = None selected_requirements.add(requirement) return selected_requirements