2biY S r SSKrSSKrSSKrSSKrSSKrSSKJrJ r J r JrJrJ r JrJrJrJrJr SSKJr SSKJrJr SSKJrJrJrJrJrJrJrJ r SSK!J"r"J#r#J$r$J%r% SSK&J'r' \( a SS KJ(r( S /r)\RT " \+5 r,\\\- \\- 4 r.S\-S\/4S jr0 S S\-S\-S\-S\\- S\-4 S jjr1S\-S\-S\\- 4S jr2 " S S\35 r4 " S S\35 r5 " S S5 r6 " S S5 r7\7" 5 r8 " S S5 r9g)!z)Handles all VCS (version control) support N) TYPE_CHECKINGAnyDictIterableIteratorListMappingOptionalTupleTypeUnion)SpinnerInterface) BadCommandInstallationError) HiddenTextask_path_exists backup_dirdisplay_pathhide_url hide_valueis_installable_dirrmtree)CommandArgscall_subprocessformat_command_argsmake_command)get_url_scheme)Literalvcsnamereturnc P [ U 5 nUc gU/ SQ[ R - ; $ )z+ Return true if the name looks like a URL. F)httphttpsfileftp)r r all_schemes)r schemes ڒ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/vcs/versioncontrol.pyis_urlr* 9 s+ D !F ~5GGG repo_urlrevproject_namesubdirc \ UR SS5 nU SU SU 3nU( a USU 3- nU$ )z Return the URL for a VCS requirement. Args: repo_url: the remote VCS url, with any needed VCS prefix (e.g. "git+"). project_name: the (unescaped) project name. -_@z#egg=z&subdirectory=)replace)r, r- r. r/ egg_project_namereqs r) make_vcs_requirement_urlr7 C sH $++C5 JauE"2!3 4C x((Jr+ location repo_rootc L U n[ U 5 ( dO U n[ R R U 5 n X:X a [ R SU5 g[ U 5 ( d MO [ R R X5 ( a g[ R R X5 $ )z Find the the Python project's root by searching up the filesystem from `location`. Return the path to project root relative to `repo_root`. Return None if the project root is `repo_root`, or cannot be found. zOCould not find a Python project for directory %s (tried all parent directories)N)r ospathdirnameloggerwarningsamefilerelpath)r8 r9 orig_location last_locations r) (find_path_to_project_root_from_repo_rootrD U s M ** 77??8,$ NN& !** ww ,, 77??8//r+ c \ rS rSrSrg)RemoteNotFoundErrorr N)__name__ __module____qualname____firstlineno____static_attributes__rH r+ r) rF rF r s r+ rF c 0 ^ \ rS rSrS\4U 4S jjrSrU =r$ )RemoteNotValidErrorv urlc 0 > [ TU ] U5 Xl g N)super__init__rQ )selfrQ __class__s r) rU RemoteNotValidError.__init__w s r+ rQ )rI rJ rK rL strrU rM __classcell__rW s @r) rO rO v s C r+ rO c \ rS rSrSr SS\S S\\ S\\ SS4S jjr S\4S jr \S\\ 4S j5 rS\4S jr S\4S jrS\SS 4S jrSrg) RevOptions| z Encapsulates a VCS-specific revision to install, along with any VCS install options. Instances of this class should be treated as if immutable. Nvc_classVersionControlr- extra_argsr! c @ Uc / nX0l X l Xl SU l g)z Args: vc_class: a VersionControl subclass. rev: the name of the revision to install. extra_args: a list of extra options. N)rb r- r` branch_name)rV r` r- rb s r) rU RevOptions.__init__ s&