Skip to content

Commit

Permalink
allow prerelease versions in marker evaluation
Browse files Browse the repository at this point in the history
Fixes  #522
  • Loading branch information
graingert committed Mar 16, 2022
1 parent 35c50dc commit a21a3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/markers.py
Expand Up @@ -192,7 +192,7 @@ def _eval_op(lhs: str, op: Op, rhs: str) -> bool:
except InvalidSpecifier:
pass
else:
return spec.contains(lhs)
return spec.contains(lhs, prereleases=True)

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

0 comments on commit a21a3ad

Please sign in to comment.