ok
Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/ |
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/direct_url_helpers.pyc |
� Bu�_c @ s� d d l Z d d l m Z m Z m Z m Z m Z m Z d d l m Z d d l m Z y d d l m Z Wn e k r� e Z n Xe r� d d l m Z d d l m Z d d l m Z n e j e � Z d � Z d e d � Z d � Z d S( i����N( t DIRECT_URL_METADATA_NAMEt ArchiveInfot DirectUrlt DirectUrlValidationErrort DirInfot VcsInfo( t MYPY_CHECK_RUNNING( t vcs( t JSONDecodeError( t Optional( t Link( t Distributionc C s | j � | d } g } t | j t � rW | d j | j j | j | j j � 7} n| t | j t � r� | | j 7} | j j r� | j | j j � q� n8 t | j t � s� t � | j j s� t � | | j 7} | j r� | j d | j � n | r| d d j | � 7} n | S( s0 Convert a DirectUrl to a pip requirement string.s @ s {}+{}@{}s subdirectory=t #t &( t validatet isinstancet infoR t formatR t urlt commit_idR t hasht appendR t AssertionErrort editablet subdirectoryt join( t direct_urlt namet requirementt fragments( ( sW /opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/direct_url_helpers.pyt% direct_url_as_pep440_direct_reference s$ " c C s3 | j r� t j | j � } | s'