zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
U
H=®d…(ã    @s<ddlmZddlZddlZddlZddlmZddlmZddl    m
Z
ddl m Z m Z ddlmZmZddlmZdd    lmZmZdd
lmZmZdd lmZer dd lmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$dd l%m&Z&ddl    m'Z'm(Z(e"ee$e)e(fe*ee)fZ+e ,e-¡Z.ddd„Z/dd„Z0Gdd„de1ƒZ2dS)é)Úabsolute_importN)Úsix)Úcanonicalize_name)ÚRequirementParseError)Ú
BadCommandÚInstallationError)Úinstall_req_from_editableÚinstall_req_from_line)Ú
COMMENT_RE)Ú%direct_url_as_pep440_direct_referenceÚdist_get_direct_url)Údist_is_editableÚget_installed_distributions)ÚMYPY_CHECK_RUNNING)    ÚIteratorÚOptionalÚListÚ    ContainerÚSetÚDictÚTupleÚIterableÚUnion)Ú
WheelCache)Ú DistributionÚ RequirementF©c     cs´|pg}|D]}    d |    ¡Vq i}
t|d||dD]b} zt | ¡} Wn8tk
r|} zt d| | ¡WY¢q2W5d} ~ XYnX|rŠ| jrŠq2| |
| j<q2|rzt    ƒ}t
  t ¡}|D]€}t |ƒl}|D]^}| ¡rî| ¡ d¡sî| d¡r| ¡}||krÆ| |¡|VqÆ| d¡s(| d¡rn| d¡rF|d    d… ¡}n|tdƒd… ¡ d
¡}t||d }ntt d |¡ ¡|d }|js¬t d || ¡¡t d¡qÆt|jƒ}||
krþ||jsìt d|t d |¡ ¡|j¡n||j |¡qÆt|
|ƒ ¡V|
|=||j |¡qÆW5QRXq°t |¡D]4\}}t|ƒdkr>t d|d t t    |ƒƒ¡¡q>dVt |
 !¡dd„dD] }|j|krŽt|ƒ ¡VqŽdS)Nz-f {}r)Ú
local_onlyÚskipÚ    user_onlyÚpathsz6Could not generate requirement for distribution %r: %sú#) z-rz --requirementz-fz --find-linksz-iz --index-urlz--prez--trusted-hostz--process-dependency-linksz--extra-index-urlz --use-featurez-ez
--editableéú=)ÚisolatedÚzWSkipping line in requirement file [%s] because it's not clear what it would install: %sz9  (add #egg=PackageName to the URL to avoid this warning)zBRequirement file [%s] contains %s, but package %r is not installedéz+Requirement %s included multiple times [%s]z, z7## The following requirements were added by pip freeze:cSs
|j ¡S©N)ÚnameÚlower)ÚxrrúVD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/operations/freeze.pyÚ<lambda>ªózfreeze.<locals>.<lambda>)Úkey)"ÚformatrÚFrozenRequirementÚ    from_distrÚloggerÚwarningÚeditableÚcanonical_nameÚsetÚ collectionsÚ defaultdictÚlistÚopenÚstripÚ
startswithÚrstripÚaddÚlenÚlstriprr    r
Úsubr(ÚinforÚappendÚstrrÚ    iteritemsÚjoinÚsortedÚvalues)Ú requirementÚ
find_linksrrr r$Ú wheel_cacheZexclude_editablerÚlinkZ installationsÚdistÚreqÚexcZemitted_optionsZ    req_filesZ req_file_pathÚreq_fileÚlineZline_reqZline_req_canonical_namer(ÚfilesZ installationrrr+Úfreeze*s´ ü
þ
 
 
 
 ÿþ 
 þþýÿÿ
 ûÿ ÿÿÿ
 rSc
CsNt|ƒsddgfStj tj |j¡¡}ddlm}m}|     |¡}|dkrv| 
¡}t   d||¡d  |¡g}|d|fSz| ||j¡}Wn”|k
rÂ| 
¡}d  t|ƒj|¡g}|d|fYStk
rît  d    ||j¡ddgfYStk
r}zt  d
|¡W5d}~XYnX|dk    r2|dgfSt  d |¡d g}dd|fS) zk
    Compute and return values (req, editable, comments) for use in
    FrozenRequirement.from_dist().
    NFr)ÚvcsÚRemoteNotFoundErrorz1No VCS found for editable requirement "%s" in: %rz/# Editable install with no version control ({})Tz)# Editable {} install with no remote ({})zPcannot determine version of editable source in %s (%s command not found in path)zYError when trying to get requirement for VCS system %s, falling back to uneditable formatz-Could not determine repository location of %sz-## !! Could not determine repository location)r ÚosÚpathÚnormcaseÚabspathÚlocationÚpip._internal.vcsrTrUÚget_backend_for_dirÚas_requirementr2Údebugr/Úget_src_requirementÚ project_nameÚtypeÚ__name__rr3r(r)rMrZrTrUÚ vcs_backendrNÚcommentsrOrrr+Úget_requirement_info¯sZ
 
þÿ
ÿÿüþ
 
ÿrec@s*eZdZd    dd„Zedd„ƒZdd„ZdS)
r0rcCs&||_t|ƒ|_||_||_||_dSr')r(rr5rNr4rd)Úselfr(rNr4rdrrr+Ú__init__îs
 
zFrozenRequirement.__init__cCsXt|ƒ\}}}|dkr6|s6t|ƒ}|r6t||jƒ}g}|dkrF| ¡}||j|||dS)N)rd)rer r r`r])ÚclsrMrNr4rdÚ
direct_urlrrr+r1ös ÿzFrozenRequirement.from_distcCs4|j}|jrd |¡}d t|jƒt|ƒg¡dS)Nz-e {}Ú
)rNr4r/rFr9rdrD)rfrNrrr+Ú__str__ s
zFrozenRequirement.__str__N)r)rbÚ
__module__Ú __qualname__rgÚ classmethodr1rkrrrr+r0ís
 
r0)    NNFFNFNFr)3Ú
__future__rr7ÚloggingrVÚ pip._vendorrZpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrÚpip._internal.exceptionsrrÚpip._internal.req.constructorsrr    Zpip._internal.req.req_filer
Ú&pip._internal.utils.direct_url_helpersr r Úpip._internal.utils.miscr rÚpip._internal.utils.typingrÚtypingrrrrrrrrrÚpip._internal.cacherrrrDÚboolZRequirementInfoÚ    getLoggerrbr2rSreÚobjectr0rrrr+Ú<module>s>      , 
÷
>