;KY*7 d dl mZ d dlmZ ddlmZ ddlmZ ddl m Z mZ ddlm Z ddlmZ G d d e Z G d d Zd S ) )annotations)Iterator )parse_requirement)ParserSyntaxError)Marker_normalize_extra_values)SpecifierSet)canonicalize_namec e Zd ZdZdS )InvalidRequirementzJ An invalid requirement was found, users should refer to PEP 508. N)__name__ __module____qualname____doc__ /builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/packaging/requirements.pyr r s r r c B e Zd ZdZddZdd Zdd ZddZdd ZddZ dS )RequirementzParse a requirement. Parse a given requirement string into its parts, such as name, specifier, URL, and extras. Raises InvalidRequirement on a badly-formed requirement string. requirement_stringstrreturnNonec t | }n/# t $ r"}t t | |d }~ww xY w|j | _ |j pd | _ t |j pg | _ t |j | _ d | _ |j >t j t | _ t |j | j _ d S d S N)_parse_requirementr r r nameurlsetextrasr specifiermarkerr __new__r _markers)selfr parsedes r __init__zRequirement.__init__" s 4'(:;;FF 4 4 4$SVV,,!3 4 %z1T #FM$7R 8 8'3F4D'E'E%)=$ .00DK#:6=#I#IDK %$s >9>r Iterator[str]c # K |V | j r/d t | j }d| dV | j rt | j V | j rd| j V | j rdV | j rd| j V d S d S )N,[]z @ z; )r! joinsortedr" r r r# )r&