The Requirement class in the packaging library has two related bugs:
The Requirement class in the packaging library has two related bugs:: a task in repo2rlenv-swe-gen (Harbor dataset). When parsing a malformed requirement string like "demo===x,y" , the requirement parser accepts the arbitrary-equality token and comma, but the subsequent SpecifierSet construction…
The task
When parsing a malformed requirement string like `"demo===x,y"`, the requirement parser accepts the arbitrary-equality token and comma, but the subsequent `SpecifierSet` construction rejects the bare `"y"` specifier. This causes an `InvalidSpecifier` exception to propagate out of `Requirement(...)` instead of being…
Part of FineEnvs/repo2rlenv-swe-gen.