Skip to content

Commit a21a3ad

Browse files
authored
allow prerelease versions in marker evaluation
Fixes #522
1 parent 35c50dc commit a21a3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/markers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def _eval_op(lhs: str, op: Op, rhs: str) -> bool:
192192
except InvalidSpecifier:
193193
pass
194194
else:
195-
return spec.contains(lhs)
195+
return spec.contains(lhs, prereleases=True)
196196

197197
oper: Optional[Operator] = _operators.get(op.serialize())
198198
if oper is None:

0 commit comments

Comments
 (0)