You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self = <[AttributeError("'Requirement' object has no attribute 'name'") raised in repr()] Requirement object at 0x7fc3a1427040>
requirement_string = 'name (>=2011k)'
def __init__(self, requirement_string: str) -> None:
try:
parsed = parse_requirement(requirement_string)
except ParserSyntaxError as e:
> raise InvalidRequirement(str(e)) from e
E packaging.requirements.InvalidRequirement: Expected closing RIGHT_PARENTHESIS
E name (>=2011k)
E ~~~~~~~^
The text was updated successfully, but these errors were encountered:
This is expected as 2100k is not a valid version number (see https://packaging.python.org/en/latest/specifications/version-specifiers/ for the spec). Starting in packaging 22 we stopped being permissive about this, hence the change in semantics (we raised a warning to try and let users know ahead of time that this change was coming).
Hi,
Thank you for all your hard work!
At some point we upgraded packaging from v21.3 to v22.0 and found a regression.
v21.3 works fine:
v23.0 and v22.0 are broken (last version that works is v21.3):
Test to reproduce the issue:
Output from the test on current main:
The text was updated successfully, but these errors were encountered: