Your IP : 18.118.164.100


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyc

�
�Rec@sydZddlZddlZddlmZddlmZddlm	Z	e	r�ddl
mZmZm
Z
mZmZmZmZed�ZndZejd	�Zd
ddd
dgZdefd��YZdd�Zdd�Zd�Zd�Zdefd��YZd
efd��YZ defd��YZ!e	r_ee e!efZ"nd
efd��YZ#dS(s	 PEP 610 i����N(tsix(tparse(tMYPY_CHECK_RUNNING(tAnytDicttIterabletOptionaltTypetTypeVartUniontTsdirect_url.jsons.^\$\{[A-Za-z0-9-_]+\}(:\$\{[A-Za-z0-9-_]+\})?$t	DirectUrltDirectUrlValidationErrortDirInfotArchiveInfotVcsInfocBseZRS((t__name__t
__module__(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyRscCsl||kr|S||}tjr;|tkr;tj}nt||�shtdj|||���n|S(s3Get value from dictionary and verify expected type.s-{!r} has unexpected type for {} (expected {})(RtPY2tstrtstring_typest
isinstanceRtformat(tdt
expected_typetkeytdefaulttvalue((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt_get"s
cCs=t||||�}|dkr9tdj|���n|S(Ns{} must have a value(RtNoneRR(RRRRR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt
_get_required3scCsyg|D]}|dk	r|^q}|s:td��nt|�dkr[td��n|ddk	sqt�|dS(Ns/missing one of archive_info, dir_info, vcs_infois1more than one of archive_info, dir_info, vcs_infoi(RRtlentAssertionError(tinfostinfo((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt_exactly_one_of;s%cKsd�|j�D�S(s Make dict excluding None values.cSs+i|]!\}}|dk	r||�qS(N(R(t.0tktv((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pys
<dictcomp>Ms	(titems(tkwargs((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt_filter_noneJscBs8eZdZdddd�Zed��Zd�ZRS(tvcs_infocCs1||_||_||_||_||_dS(N(tvcstrequested_revisiont	commit_idtresolved_revisiontresolved_revision_type(tselfR+R-R,R.R/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt__init__Ss
				cCsq|dkrdS|dt|td�dt|td�dt|td�dt|td�dt|td��S(NR+R-R,R.R/(RRRR(tclsR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt
_from_dictascCs4td|jd|jd|jd|jd|j�S(NR+R,R-R.R/(R)R+R,R-R.R/(R0((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt_to_dictns				N(RRtnameRR1tclassmethodR3R4(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyRPs
cBs2eZdZdd�Zed��Zd�ZRS(tarchive_infocCs
||_dS(N(thash(R0R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR1|scCs)|dkrdS|dt|td��S(NR8(RRR(R2R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR3�scCstd|j�S(NR8(R)R8(R0((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR4�sN(RRR5RR1R6R3R4(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyRyscBs2eZdZed�Zed��Zd�ZRS(tdir_infocCs
||_dS(N(teditable(R0R:((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR1�scCs/|dkrdS|dt|tddt��S(NR:R(RRtbooltFalse(R2R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR3�scCstd|jpd�S(NR:(R)R:R(R0((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR4�s(RRR5R<R1R6R3R4(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR
�s	cBseeZdd�Zd�Zed��Zd�Zed��Z	d�Z
ed��Zd�ZRS(	cCs||_||_||_dS(N(turlR"tsubdirectory(R0R=R"R>((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR1�s		cCssd|kr|S|jdd�\}}t|jt�r\|jjdkr\|dkr\|Stj|�ro|S|S(Nt@itgit(tsplitRR"RR+t
ENV_VAR_REtmatch(R0tnetloct	user_passtnetloc_no_user_pass((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt_remove_auth_from_netloc�scCsRtj|j�}|j|j�}tj|j||j|j|j	f�}|S(s�url with user:password part removed unless it is formed with
        environment variables as specified in PEP 610, or it is ``git``
        in the case of a git URL.
        (
turllib_parseturlsplitR=RGRDt
urlunsplittschemetpathtquerytfragment(R0tpurlRDtsurl((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pytredacted_url�s
$cCs|j|j��dS(N(t	from_dicttto_dict(R0((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pytvalidate�scCstdt|td�dt|td�dttjt|td��tjt|td��t	jt|td��g��S(NR=R>R"R7R9R*(
RRRRR#RR3tdictR
R(R2R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyRR�scCs8td|jd|j�}|jj�||jj<|S(NR=R>(R)RQR>R"R4R5(R0tres((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyRS�s
	cCs|jtj|��S(N(RRtjsontloads(R2ts((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt	from_json�scCstj|j�dt�S(Nt	sort_keys(RWtdumpsRStTrue(R0((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pytto_json�sN(
RRRR1RGtpropertyRQRTR6RRRSRZR^(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyR�s				($t__doc__RWtretpip._vendorRtpip._vendor.six.moves.urllibRRHtpip._internal.utils.typingRttypingRRRRRRR	R
tDIRECT_URL_METADATA_NAMEtcompileRBt__all__t	ExceptionRRRRR#R)tobjectRRR
tInfoTypeR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/direct_url.pyt<module>s44			)

?>