diff --git a/crates/pep508-rs/src/lib.rs b/crates/pep508-rs/src/lib.rs index c1a8c43d2..e3b53747c 100644 --- a/crates/pep508-rs/src/lib.rs +++ b/crates/pep508-rs/src/lib.rs @@ -931,12 +931,16 @@ fn parse(cursor: &mut Cursor, working_dir: Option<&Path>) -> Result { cursor.next(); Some(VersionOrUrl::Url(parse_url(cursor, working_dir)?)) } + // name_req Some('(') => parse_version_specifier_parentheses(cursor)?, + // name_req Some('<' | '=' | '>' | '~' | '!') => parse_version_specifier(cursor)?, + // No requirements / any version Some(';') | None => None, Some(other) => { // Rewind to the start of the version specifier, to see if the user added a URL without @@ -963,6 +967,8 @@ fn parse(cursor: &mut Cursor, working_dir: Option<&Path>) -> Result) -> Result