| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pip/_internal/vcs/__pycache__/ |
Upload File : |
�
�k�f�W � �� � d Z ddlZddlZddlZddlZddlZddlmZm Z ddl
mZmZm
Z
mZmZmZmZmZmZmZmZ ddlmZ ddlmZmZ ddlmZmZmZmZm Z m!Z!m"Z"m#Z# ddl$m%Z%m&Z&m'Z'm(Z( d gZ) ejT e+� Z,eee- ee- f Z.d
e-de/fd�Z0 d!d
e-de-de-dee- de-f
d�Z1de-de-dee- fd�Z2 G d� de3� Z4 G d� de3� Z5 ed�� G d� d� � Z6 G d� d� Z7 e7� Z8 G d� d � Z9y)"z)Handles all VCS (version control) support� N)� dataclass�field)�Any�Dict�Iterable�Iterator�List�Literal�Mapping�Optional�Tuple�Type�Union)�SpinnerInterface)�
BadCommand�InstallationError)�
HiddenText�ask_path_exists�
backup_dir�display_path�hide_url�
hide_value�is_installable_dir�rmtree)�CommandArgs�call_subprocess�format_command_args�make_command�vcs�name�returnc � � t j j | � j }|sy|g d�t j
z v S )z3
Return true if the name looks like a URL.
F)�http�https�file�ftp)�urllib�parse�urlsplit�schemer �all_schemes)r r* s �BC:\Python312\Lib\site-packages\pip/_internal/vcs/versioncontrol.py�is_urlr- 2 s9 � � �\�\�
"�
"�4�
(�
/�
/�F����5����G�G�G� �repo_url�rev�project_name�subdirc �R � |j dd� }| � d|� d|� �}|r|d|� �z
}|S )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/ r0 r1 r2 �egg_project_name�reqs r, �make_vcs_requirement_urlr: <