관리-도구
편집 파일: direct_url_helpers.pyc
� �Rec @ 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( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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'