7f| ddlmZddlmZmZmZmZddlmZddl m Z ddl m Z dede de fd Zd e defd Z dded ee dedefdZd S))Optional) ArchiveInfo DirectUrlDirInfoVcsInfo)Link) path_to_url)vcs direct_urlnamereturnc,||dz}g}t|jtr'||jjd|jd|jjz }nvt|jtr6||jz }|jjr| |jjn&t|jtsJ||jz }|j r| d|j z|r|dd |zz }|S)z0Convert a DirectUrl to a pip requirement string.z @ +@z subdirectory=#&) validate isinstanceinforr url commit_idrhashappendr subdirectoryjoin)r r requirement fragmentss /builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/utils/direct_url_helpers.py%direct_url_as_pep440_direct_referencer s%,KI*/7++ &" Q QZ^ Q Qjo6O Q Q  JO[ 1 1&z~% ?  3   Z_1 2 2 2*/733333z~% D:+BBCCC1sSXXi0000  source_dircZtt|tdS)NT)editable)rr)rr r)r!s rdirect_url_for_editabler$ s2   # # d # # #   r NFlinklink_is_in_wheel_cachec|jrtj|j}|sJ||j\}}}|r|sJ|}n|sJ||}t|t|j |||j S| r(t|jt|j Sd}|j } | r | d|j}t|jt||j S)N)r rrequested_revision)rrr=)r)is_vcsr get_backend_for_schemeschemeget_url_rev_and_authurl_without_fragment get_revisionrrr subdirectory_fragmentis_existing_dirr hash_namerr) r%r!r& vcs_backendrr(_rrr2s rdirect_url_from_linkr5'si {- 0== {%0%E%E  %& & "  " = & % %%*II   :#00<r>s TTTTTTTTTTTT******000000!!!!!!iss. RW0 0 0 $SM0 JN0 0 0 0 0 0 0 r