Edit File: req_file.pyc
� ��abc�����������@@��s2��d��Z��d�d�l�m�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l �m �Z�d�d�l�m �Z �d�d�l�Z�d�d�l�m�Z�d�d�l�m�Z�d�d�l�m�Z�d�d �l�m�Z�d�d �l�m�Z�d�g�Z�e�j�d�e�j���Z�e�j�d ���Z�e�j�e�j�e�j�e�j �e�j!�e�j"�e�j#�e�j$�e�j%�e�j&�e�j'�e�j(�e�j)�e�j*�e�j+�e�j,�e�j-�e�j.�e�j/�e�j0�e�j1�g�Z2�e�j3�e�j4�e�j5�g�Z6�g��e6�D]�Z7�e7����j8�^�q�Z9�d�d�d�d�e;�d�d���Z<�d����Z=�d�d�d�d�d�e;�d���Z>�d����Z?�d����Z@�d����ZA�d����ZB�d����ZC�d�S(���s��� Requirements file parsing i����(���t���absolute_importN(���t���parse(���t���filterfalse(���t���get_file_content(���t���InstallRequirement(���t���RequirementsFileParseError(���t���RemovedInPip10Warning(���t ���cmdoptionst���parse_requirementss���^(http|https|file):s���(^|\s)+#.*$c���������c@��s����|�d�k�r�t�d�����n��t�|��d�|�d�|��\�}�}�t�|�|���} �xQ�| �D]I�\�} �}�t�|�|��| �|�|�|�|�|�d�|��}�x�|�D]�} �| �Vq��WqO�Wd�S(���s���Parse a requirements file and yield InstallRequirement instances. :param filename: Path or url of requirements file. :param finder: Instance of pip.index.PackageFinder. :param comes_from: Origin description of requirements. :param options: cli options. :param session: Instance of pip.download.PipSession. :param constraint: If true, parsing a constraint file rather than requirements file. :param wheel_cache: Instance of pip.wheel.WheelCache sC���parse_requirements() missing 1 required keyword argument: 'session't ���comes_fromt���sessiont ���constraintN(���t���Nonet ���TypeErrorR���t ���preprocesst���process_line(���t���filenamet���finderR ���t���optionsR ���R���t���wheel_cachet���_t���contentt ���lines_enumt���line_numbert���linet���req_itert���req(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR���@���s���� c���������C@��sC���t��|��j����d�d��}�t�|���}�t�|���}�t�|�|���}�|�S(���s����Split, filter, and join lines, and return a line iterator :param content: the content of the requirements file :param options: cli options t���starti���(���t ���enumeratet ���splitlinest ���join_linest���ignore_commentst ���skip_regex(���R���R���R���(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR���a���s ����c ���������c@��sT��t�����} �| �j����} �d�| �_�|�r3�|�j�| �_�n��t�|����\�}�}�t�j�d�k��rf�|�j�d���}�n��| �j �t �j�|���| ���\�} �}�d�|�r��d�n�d�|�|�f�}�|�rM|�r��|�j�n�t �}�|�r��t�j�|�| ���n��i��}�x>�t�D]6�}�|�| �j�k�r��| �j�|�r��| �j�|�|�|�<q��q��Wt�j�|�|�d�|�d �|�d �|�d�|��Vn| �j�r�|�re|�j�n�t �}�|�rz|�j�n�d�}�t�j�| �j�d�d �|�d�|�d�|�d �|�d�|��Vn�| �j�s�| �j�r�| �j�r�| �j�d�}�t �}�n�| �j�d�}�t�}�t�j�|���rt�j�|�|���}�n3�t�j�|���sQt�j�j �t�j�j!�|���|���}�n��t"�|�|�|�|�|�d�|�d�|��} �x�| �D]�}�|�Vq|Wn�| �j#�r�| �j#�|�_#�n�|�rP| �j$�r�t%�j&�d�t'���n��| �j(�r�t%�j&�d�t'���n��| �j)�r�t%�j&�d�t'���n��| �j�r| �j�g�|�_*�n��| �j+�t �k�rIt �|�_+�t,�j-�j.�|�j���n��| �j/�t�k�rdg��|�_*�n��| �j0�r�|�j*�j1�| �j0���n��| �j2�r�| �j2�d�}�t�j�j!�t�j�j3�|�����}�t�j�j �|�|���}�t�j�j4�|���r�|�}�n��|�j2�j5�|���n��| �j6�rt�|�_7�n��| �j8�r$t�|�_8�n��| �j9�rP|�j:�j1�d����| �j9�D����qPn��d�S(���s#��Process a single requirements line; This can result in creating/yielding requirements, or updating the finder. For lines that contain requirements, the only options that have an effect are from SUPPORTED_OPTIONS_REQ, and they are scoped to the requirement. Other options from SUPPORTED_OPTIONS may be present, but are ignored. For lines that do not contain requirements, the only options that have an effect are from SUPPORTED_OPTIONS. Options from SUPPORTED_OPTIONS_REQ may be present, but are ignored. These lines may contain multiple options (although our docs imply only one is supported), and all our parsed and affect the finder. :param constraint: If True, parsing a constraints file. :param options: OptionParser options that we may update i���i���i���t���utf8s���%s %s (line %s)s���-cs���-rR���t���isolatedR���R���i����R ���t���default_vcss����--allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s����--allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s����--allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.c���������s@��s���|��]�}�d��|�d��f�Vq�d�S(���t���*N(����(���t���.0t���host(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pys ���<genexpr>����s����N(���i���i���i���(;���t���build_parsert���get_default_valuesR���t ���index_urlt���format_controlt���break_args_optionst���syst���version_infot���encodet ���parse_argst���shlext���splitt ���isolated_modet���FalseR���t���check_install_build_globalt���SUPPORTED_OPTIONS_REQ_DESTt���__dict__R���t ���from_linet ���editablesR#���t ���from_editablet���requirementst���constraintst���Truet ���SCHEME_REt���searcht���urllib_parset���urljoint���ost���patht���joint���dirnameR���t���require_hashest���allow_externalt���warningst���warnR���t���allow_all_externalt���allow_unverifiedt ���index_urlst ���use_wheelt���pipt���indext���fmt_ctl_no_use_wheelt���no_indext���extra_index_urlst���extendt ���find_linkst���abspatht���existst���appendt���pret���allow_all_prereleasest���process_dependency_linkst ���trusted_hostst���secure_origins(���R���R���R���R���R ���R���R ���R���R���t���parsert���defaultst���args_strt���options_strt���optsR���t���line_comes_fromR"���t���req_optionst���destR#���t���req_patht���nested_constraintR���t���valuet���req_dirt���relative_to_reqs_file(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR���n���s����� ! $ c���������C@��s����|��j��d���}�g��}�|�}�xJ�|�D]B�}�|�j�d���sG�|�j�d���rK�Pq#�|�j�|���|�j�d���q#�Wd�j�|���d�j�|���f�S(���s����Break up the line into an args and options string. We only want to shlex (and then optparse) the options, not the args. args can contain markers which are corrupted by shlex. t��� t���-s���--i����(���R1���t ���startswithRV���t���popRC���(���R���t���tokenst���argsR���t���token(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR+�������s���� c����������C@��sY���t��j�d�t���}��t�t�}�x$�|�D]�}�|����}�|��j�|���q#�Wd����}�|�|��_�|��S(���s7��� Return a parser for parsing requirement lines t���add_help_optionc���������S@��s���t��|�����d��S(���N(���R���(���t���selft���msg(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyt���parser_exit��s����(���t���optparset���OptionParserR3���t���SUPPORTED_OPTIONSt���SUPPORTED_OPTIONS_REQt ���add_optiont���exit(���R\���t���option_factoriest���option_factoryt���optionRs���(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR'�����s���� c���������c@��s����d�}�g��}�x��|��D]��\�}�}�|�j�d���s>�t�j�|���r��t�j�|���rZ�d�|�}�n��|�r��|�j�|���|�d�j�|���f�Vg��}�q��|�|�f�Vq�|�s��|�}�n��|�j�|�j�d�����q�W|�r��|�d�j�|���f�Vn��d�S(���s����Joins a line ending in '' with the previous line (except when following comments). The joined line takes on the index of the first line. s���\Ri���t����N(���R���t���endswitht ���COMMENT_REt���matchRV���RC���t���strip(���R���t���primary_line_numbert���new_lineR���R���(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR���"��s ���� c���������c@��sM���xF�|��D]>�\�}�}�t��j�d�|���}�|�j����}�|�r�|�|�f�Vq�q�Wd�S(���s1��� Strips comments and filter empty lines. R}���N(���R���t���subR����(���R���R���R���(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR���?��s ����c���������@��sI���|�r�|�j��n�d�}�|�rE�t�j�|������t����f�d����|����}��n��|��S(���ss��� Skip lines that match '--skip-requirements-regex' pattern Note: the regex pattern is only built once c���������@��s������j��|��d���S(���Ni���(���R>���(���t���e(���t���pattern(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyt���<lambda>T��R}���N(���t���skip_requirements_regexR���t���ret���compileR���(���R���R���R ���(����(���R����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyR ���J��s����(D���t���__doc__t ���__future__R����RA���R����R0���R,���Rt���RG���t���pip._vendor.six.moves.urllibR���R?���t���pip._vendor.six.movesR���RM���t���pip.downloadR���t���pip.req.req_installR���t���pip.exceptionsR���t���pip.utils.deprecationR���R���t���__all__R����t���IR=���R���R;���t���editableR:���RP���R)���RS���t���extra_index_urlRF���RI���t���no_allow_externalt���allow_unsafet���no_allow_unsafeRL���t���no_use_wheelt���always_unzipt ���no_binaryt���only_binaryRW���RY���t���trusted_hostRE���Rv���t���install_optionst���global_optionst���hashRw���t���oRc���R5���R���R3���R���R���R���R+���R'���R���R���R ���(����(����(����s4���/usr/lib/python2.7/site-packages/pip/req/req_file.pyt���<module>���sl��� �