From 9356254b81c73d2a75234d56662a515163143344 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 7 Dec 2022 17:36:46 -0600 Subject: [PATCH] fix specifier handling --- .github/actions/install-minimums/create_constraints_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/install-minimums/create_constraints_file.py b/.github/actions/install-minimums/create_constraints_file.py index 540cdb5..a528e30 100644 --- a/.github/actions/install-minimums/create_constraints_file.py +++ b/.github/actions/install-minimums/create_constraints_file.py @@ -19,7 +19,7 @@ for req in reqs: r = Requirement(req) for specifier in r.specifier: - if "!" in specifier: + if "!" in specifier.operator: continue if "~" in specifier.operator or ">" in specifier.operator: spec = str(specifier).replace("~", "=")