Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
vcs
/
__pycache__
[ HOME ]
Exec
Submit
File Name : versioncontrol.cpython-312.pyc
� p�/i�W � �� � d Z ddlmZ ddlZddlZddlZddlZddlZddl m Z mZmZ ddl mZmZ ddlmZmZmZ ddlmZ ddlmZmZ dd lmZmZmZmZmZmZm Z m!Z! dd l"m#Z#m$Z$m%Z%m&Z& dgZ' ejP e)� Z*e+ee, ee, f Z-dd�Z. d dd �Z/ dd�Z0 G d� de1� Z2 G d� de1� Z3 ed�� G d� d� � Z4 G d� d� Z5 e5� Z6 G d� d� Z7y)z)Handles all VCS (version control) support� )�annotationsN)�Iterable�Iterator�Mapping)� dataclass�field)�Any�Literal�Optional)�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�vcsc � � 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)�namer$ s �O/opt/hc_python/lib/python3.12/site-packages/pip/_internal/vcs/versioncontrol.py�is_urlr( - s9 � � �\�\� "� "�4� (� /� /�F����5����G�G�G� c �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)�repo_url�rev�project_name�subdir�egg_project_name�reqs r'