403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.6
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/pip/_internal/vcs/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/pip/_internal/vcs/__pycache__/versioncontrol.cpython-313.pyc
�

�h�W����SrSSKrSSKrSSKrSSKrSSKrSSKJrJ	r	 SSK
JrJrJ
r
JrJrJrJrJrJrJrJr SSKJr SSKJrJr SSKJrJrJrJrJ r J!r!J"r"J#r# SSK$J%r%J&r&J'r'J(r( S	/r)\RT"\+5r,\\\-\\-4r.S
\-S\/4Sjr0S!S
\-S\-S\-S\\-S\-4
Sjjr1S\-S\-S\\-4Sjr2"SS\35r4"SS\35r5\"SS9"SS55r6"SS5r7\7"5r8"SS 5r9g)"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��[RRU5RnU(dgU/SQ[R
-;$)z+
Return true if the name looks like a URL.
F)�http�https�file�ftp)�urllib�parse�urlsplit�schemer�all_schemes)r r*s  �B/usr/lib/python3/dist-packages/pip/_internal/vcs/versioncontrol.py�is_urlr-2s9���\�\�
"�
"�4�
(�
/�
/�F����5����G�G�G��repo_url�rev�project_name�subdirc�\�URSS5nUSUSU3nU(aUSU3-
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/r0r1r2�egg_project_name�reqs      r,�make_vcs_requirement_urlr:<sH��$�+�+�C��5��
�J�a��u�E�"2�!3�
4�C�
����x�(�(���Jr.�location�	repo_rootc�L�Un[U5(dOUn[RRU5nX:Xa[RSU5 g[U5(dMO[RR
X5(ag[RRX5$)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�os�path�dirname�logger�warning�samefile�relpath)r;r<�
orig_location�
last_locations    r,�(find_path_to_project_root_from_repo_rootrGNs����M� ��*�*� �
��7�7�?�?�8�,���$�
�N�N�&��
�
�!��*�*�
�w�w���	�,�,��
�7�7�?�?�8�/�/r.c��\rSrSrSrg)�RemoteNotFoundError�k�N)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__rKr.r,rIrIks��r.rIc�0^�\rSrSrS\4U4SjjrSrU=r$)�RemoteNotValidError�o�urlc�0>�[TU]U5 Xlg�N)�super�__init__rT)�selfrT�	__class__s  �r,rX�RemoteNotValidError.__init__ps���
������r.�rT)rLrMrNrO�strrXrP�
__classcell__�rZs@r,rRrRos����C��r.rRT)�frozenc���\rSrSr%Sr\S\S'Sr\\	\S'\
"\S9r\
\S'Sr\\	\S	'S
\	4Sjr\S
\\	4Sj5rS
\
4S
jrS
\	4SjrS\	S
S4SjrSrg)�
RevOptions�uz�
Encapsulates a VCS-specific revision to install, along with any VCS
install options.

Args:
    vc_class: a VersionControl subclass.
    rev: the name of the revision to install.
    extra_args: a list of extra options.
�VersionControl�vc_classNr0)�default_factory�
extra_args�branch_namer!c�R�SURRSUR<S3$)Nz<RevOptions z: rev=�>)rer r0�rYs r,�__repr__�RevOptions.__repr__�s&���d�m�m�0�0�1�����|�1�E�Er.c�`�URcURR$UR$rV)r0re�default_arg_revrks r,�arg_rev�RevOptions.arg_rev�s%���8�8���=�=�0�0�0��x�x�r.c�~�/nURnUbXRRU5-
nXR-
nU$)z,
Return the VCS-specific command arguments.
)rpre�get_base_rev_argsrg)rY�argsr0s   r,�to_args�RevOptions.to_args�s?�����l�l���?��M�M�3�3�C�8�8�D�������r.c�F�UR(dgSURS3$)N�z (to revision �)�r0rks r,�
to_display�RevOptions.to_display�s���x�x������z��+�+r.c�H�URRXRS9$)zu
Make a copy of the current instance, but with a new rev.

Args:
  rev: the name of the revision for the new object.
�rg)re�make_rev_optionsrg)rYr0s  r,�make_new�RevOptions.make_new�s ���}�}�-�-�c�o�o�-�N�Nr.rK)rLrMrNrO�__doc__r�__annotations__r0rr]r�listrgrrhrl�propertyrprur{r�rPrKr.r,rbrbus�����#�$�$��C��#���#�D�9�J��9�!%�K��#��%�F�#�F����#�����
��
�,�C�,�O�C�O�L�Or.rbc�.^�\rSrSr%0r\\S4\S'/SQrSU4Sjjr	S\
\4Sjr\S\
S4S	j5r\S\
\4S
j5r\S\
\4Sj5rS\SSS4S
jrS\SS4SjrS\S\S4SjrS\S\S4SjrS\S\S4SjrSrU=r$)�
VcsSupport�rd�	_registry)�ssh�git�hg�bzr�sftp�svnr!Nc�>�[RRRUR5 [
TU]5 grV)r'r(�uses_netloc�extend�schemesrWrX)rYrZs �r,rX�VcsSupport.__init__�s,���	��� � �'�'����5�
���r.c�6�URR5$rV)r��__iter__rks r,r��VcsSupport.__iter__�s���~�~�&�&�(�(r.c�H�[URR55$rV)r�r��valuesrks r,�backends�VcsSupport.backends�s���D�N�N�)�)�+�,�,r.c�X�URVs/sHoRPM sn$s snfrV)r�r@)rY�backends  r,�dirnames�VcsSupport.dirnames�s ��/3�}�}�=�}�G���}�=�=��=s�'c�f�/nURHnURUR5 M  U$rV)r�r�r�)rYr�r�s   r,r+�VcsSupport.all_schemes�s*�����}�}�G��N�N�7�?�?�+�%��r.�clsc��[US5(d![RSUR5 gURUR
;a?U"5UR
UR'[R
SUR5 gg)Nr zCannot register VCS %szRegistered VCS backend: %s)�hasattrrArBrLr r��debug)rYr�s  r,�register�VcsSupport.register�sa���s�F�#�#��N�N�3�S�\�\�B���8�8�4�>�>�)�'*�u�D�N�N�3�8�8�$��L�L�5�s�x�x�@�*r.r c�>�XR;aURU	ggrV)r��rYr s  r,�
unregister�VcsSupport.unregister�s���>�>�!����t�$�"r.r;c��0nURR5HAnURU5nU(dM[R	SXR
5 X2U'MC U(dg[
U[S9nX%$)z^
Return a VersionControl object if a repository of that type is found
at the given directory.
zDetermine that %s uses VCS: %sN)�key)r�r��get_repository_rootrAr�r �max�len)rYr;�vcs_backends�vcs_backend�	repo_path�inner_most_repo_paths      r,�get_backend_for_dir�VcsSupport.get_backend_for_dir�ss��
���>�>�0�0�2�K�#�7�7��A�I����L�L�9�8�EU�EU�V�&1��#�3��� #�<�S�9���1�1r.r*c�l�URR5HnXR;dMUs $ g)�)
Return a VersionControl object or None.
N)r�r�r�)rYr*r�s   r,�get_backend_for_scheme�!VcsSupport.get_backend_for_scheme�s2�� �>�>�0�0�2�K��,�,�,�"�"�3�r.c�X�UR5nURRU5$)r�)�lowerr��getr�s  r,�get_backend�VcsSupport.get_backend�s$���z�z�|���~�~�!�!�$�'�'r.rK)r!N)rLrMrNrOr�rr]r�r�rXrr�r�r	r�r�r+rr�r�rr�r�r�rPr^r_s@r,r�r��s���-/�I�t�C�)�)�*�/�8�G��)�(�3�-�)��-�$�/�0�-��-��>�$�s�)�>��>���T�#�Y����A�D�!1�2�A�t�A�%�s�%�t�%�2�C�2�H�=M�4N�2�.�S��X�>N�5O��(��(��1A�(B�(�(r.r�c��\rSrSr%SrSrSrSr\\	S4\
S'Sr\\	S4\
S'Sr\
\	\
S'\S	\	S
\4Sj5r\S\	S
\
\	4S
j5r\S\	S
\	4Sj5r\S\	S\	S
\	4Sj5r\S\	S
\\	4Sj5rS\	S\	S
\4Sjr\SAS\
\	S\
\S
\4Sjj5r\S\	S
\4Sj5r\S\	S\	S
\\	\\
\	\
\	444Sj5r\S\	S
\\	\
\	\44Sj5r\S\
\	S \
\S
\4S!j5r S\S
\\\44S"jr!\S\	S
\	4S#j5r"\S$\	S%\	S
\4S&j5r#S\	S\S'\S(\$S
S4
S)jr%S\	S\S'\S
S4S*jr&S\	S\S'\S
S4S+jr'\S\	S,\
\	S
\4S-j5r(S\	S\S(\$S
S4S.jr)S\	S\S(\$S
S4S/jr*\S\	S
\	4S0j5r+\S\	S
\	4S1j5r,\SBS2\-\\	\4S3\S4\
\	S5S6S7\
\.\$S8\
\	S9\
\/\	\04S:\
\1S;\S<\S
\	4S=jj5r2\S>\	S
\4S?j5r3\S\	S
\
\	4S@j5r4Sr5g)Crd�rxrK.r��
unset_environNro�
remote_urlr!c�d�UR5RURS35(+$)zv
Return whether the vcs prefix (e.g. "git+") should be added to a
repository's remote url when used in a requirement.
�:)r��
startswithr )r�r�s  r,�should_add_vcs_url_prefix�(VersionControl.should_add_vcs_url_prefix	s+���#�#�%�0�0�C�H�H�:�Q��@�@�@r.r;c��g)zy
Return the path to Python project root, relative to the repo root.
Return None if the project root is in the repo root.
NrK�r�r;s  r,�get_subdirectory�VersionControl.get_subdirectorys��r.�repo_dirc�$�URU5$)zB
Return the revision string that should be used in a requirement.
)�get_revision)r�r�s  r,�get_requirement_revision�'VersionControl.get_requirement_revisions��
����)�)r.r1c���URU5nURU5(aURSU3nURU5nUR	U5n[X4X%S9nU$)a
Return the requirement string to use to redownload the files
currently at the given repository directory.

Args:
  project_name: the (unescaped) project name.

The return value has a form similar to the following:

    {repository_url}@{revision}#egg={project_name}
�+)r2)�get_remote_urlr�r r�r�r:)r�r�r1r/�revisionr2r9s       r,�get_src_requirement�"VersionControl.get_src_requirement sj���%�%�h�/���(�(��2�2��(�(��1�X�J�/�H��/�/��9���%�%�h�/��&�x�<�W���
r.r0c��[e)zy
Return the base revision arguments for a vcs command.

Args:
  rev: the name of a revision to install.  Cannot be None.
��NotImplementedErrorrzs r,rs� VersionControl.get_base_rev_args8�
��"�!r.rT�destc��g)a"
Return true if the commit hash checked out at dest matches
the revision in url.

Always return False, if the VCS does not support immutable commit
hashes.

This method does not check if there are local uncommitted changes
in dest after checkout, as pip currently has no use case for that.
FrK)rYrTr�s   r,�is_immutable_rev_checkout�(VersionControl.is_immutable_rev_checkoutBs��r.rgc�(�[XU=(d /S9$)zu
Return a RevOptions object.

Args:
  rev: the name of a revision to install.
  extra_args: a list of extra options.
r~)rb)r�r0rgs   r,r�VersionControl.make_rev_optionsOs���#�z�/?�R�@�@r.�repoc��[RRU5up#UR[RR5=(d [U5$)z[
posix absolute paths start with os.path.sep,
win32 ones start with drive (like c:\folder)
)r>r?�
splitdriver��sep�bool)r�r��drive�tails    r,�_is_local_repository�#VersionControl._is_local_repository\s:���g�g�(�(��.������r�w�w�{�{�+�:�t�E�{�:r.�netlocr*c�
�US4$)a
Parse the repository URL's netloc, and return the new netloc to use
along with auth information.

Args:
  netloc: the original repository URL netloc.
  scheme: the repository URL's scheme without the vcs prefix.

This is mainly for the Subversion class to override, so that auth
information can be provided via the --username and --password options
instead of through the URL.  For other subclasses like Git without
such an option, auth information must stay in the URL.

Returns: (netloc, (username, password)).
�NNrK)r�r�r*s   r,�get_netloc_and_auth�"VersionControl.get_netloc_and_authes��&�|�#�#r.c�v�[RRU5up#pEnSU;a[SU<S35eUR	SS5SnURX25up7SnSU;a+UR
SS5upHU(d[SU<S35e[RRX#XES	45nXU4$)
z�
Parse the repository URL to use, and return the URL, revision,
and auth info to use.

Returns: (url, rev, (username, password)).
r�zSorry, zk is a malformed VCS url. The format is <vcs>+<protocol>://<url>, e.g. svn+http://myrepo/svn/MyApp#egg=MyApp�Nr6zThe URL zm has an empty revision (after @) which is not supported. Include a revision after @ or remove @ from the URL.rx)	r'r(r)�
ValueError�splitr��rsplitr�
urlunsplit)	r�rTr*r�r?�query�frag�	user_passr0s	         r,�get_url_rev_and_auth�#VersionControl.get_url_rev_and_authzs���-3�L�L�,A�,A�#�,F�)���T��f����#��!=�=��
����c�1�%�a�(���3�3�F�C������$�;����C��+�I�D��'��s�g�&0�0���
�l�l�%�%�v�t�B�&G�H����"�"r.�username�passwordc��/$)z=
Return the RevOptions "extra arguments" to use in obtain().
rK)r�r�s  r,�
make_rev_args�VersionControl.make_rev_args�s	���	r.c��URUR5up#nUupVSnUb[U5nURXW5nUR	X8S9n	[U5U	4$)zY
Return the URL and RevOptions object to use in obtain(),
as a tuple (url, rev_options).
Nr~)r��secretrr�rr)
rYrT�
secret_urlr0r�r��secret_passwordr�rg�rev_optionss
          r,�get_url_rev_options�"VersionControl.get_url_rev_options�sm��
&*�%>�%>�s�z�z�%J�"�
��$-�!��)-���&�!�/�2�H��'�'��;�
��+�+�C�+�G���
�#�[�0�0r.c�^�[RRU5RS5$)zQ
Normalize a URL for comparison by unquoting it and removing any
trailing slash.
�/)r'r(�unquote�rstripr\s r,�
normalize_url�VersionControl.normalize_url�s$���|�|�#�#�C�(�/�/��4�4r.�url1�url2c�H�URU5URU5:H$)zF
Compare two repo URLs for identity, ignoring incidental differences.
)r)r�rrs   r,�compare_urls�VersionControl.compare_urls�s%��
� � ��&�#�*;�*;�D�*A�A�Ar.r�	verbosityc��[e)z�
Fetch a revision from a repository, in the case that this is the
first fetch from the repository.

Args:
  dest: the directory to fetch the repository to.
  rev_options: a RevOptions object.
  verbosity: verbosity level.
r�)rYr�rTrrs     r,�	fetch_new�VersionControl.fetch_new�s
��"�!r.c��[e)z]
Switch the repo at ``dest`` to point to ``URL``.

Args:
  rev_options: a RevOptions object.
r��rYr�rTrs    r,�switch�VersionControl.switch��
��"�!r.c��[e)zj
Update an already-existing repo to the given ``rev_options``.

Args:
  rev_options: a RevOptions object.
r�rs    r,�update�VersionControl.update�rr.r c��[e)z�
Return whether the id of the current commit equals the given name.

Args:
  dest: the repository directory.
  name: a string name.
r�)r�r�r s   r,�is_commit_id_equal�!VersionControl.is_commit_id_equal�s
��"�!r.c���URU5up$[RRU5(dUR	XXCS9 gUR5nUR
U5(GaURU5nURXbR5(a�[RSURR5[U5U5 URXR 5(d>[R#S[U5URU5 UR%XU5 g[R#S5 g[R'SUR(UR[U5U5 SnO.[R'SUUR(UR5 S	n[R'S
UR(U5 [+SUS3US
5nUS:Xa[,R."S5 US:Xa;[R'S[U55 [1U5 UR	XXCS9 gUS:XaR[3U5n	[R'S[U5U	5 [4R6"X5 UR	XXCS9 gUS:Xa?[R#SUR[U5UU5 UR9XU5 gg)z�
Install or update in editable mode the package represented by this
VersionControl object.

:param dest: the repository directory in which to install or update.
:param url: the repository URL starting with a vcs prefix.
:param verbosity: verbosity level.
)rNz)%s in %s exists, and has correct URL (%s)zUpdating %s %s%sz$Skipping because already up-to-date.z%s %s in %s exists with URL %s)z%(s)witch, (i)gnore, (w)ipe, (b)ackup )�s�i�w�bz0Directory %s already exists, and is not a %s %s.)z(i)gnore, (w)ipe, (b)ackup )r$r%r&z+The plan is to install the %s repository %sz
What to do?  rr��a���r%zDeleting %sr&zBacking up %s to %sr#zSwitching %s %s to %s%s)rr>r?�existsrr{�is_repository_directoryr�rrrAr��	repo_name�titlerr r0�inforrBr r�sys�exitrr�shutil�mover)
rYr�rTrr�rev_display�existing_url�prompt�response�dest_dirs
          r,�obtain�VersionControl.obtain�sf�� �3�3�C�8����w�w�~�~�d�#�#��N�N�4�k�N�G��!�,�,�.���'�'��-�-��.�.�t�4�L�� � ��z�z�:�:����?��N�N�(�(�*� ��&��	��.�.�t�_�_�E�E��K�K�*�$�T�*����#�	��K�K��;�7���K�K� F�G���N�N�0��	�	�����T�"��
�U�F��N�N�B���	�	����	
�F�F����9��I�I��	
�
#�]�6�!�9�+�#>��q�	�J���s�?��H�H�R�L��s�?��N�N�=�,�t�*<�=��4�L��N�N�4�k�N�G���s�?�!�$�'�H��N�N�0�,�t�2D�h�O��K�K��'��N�N�4�k�N�G���s�?��K�K�)�����T�"���
�
�K�K��;�/�r.c��[RRU5(a[U5 UR	XUS9 g)z�
Clean up current location and download the url repository
(and vcs infos) into location

:param url: the repository URL starting with a vcs prefix.
:param verbosity: verbosity level.
)rTrN)r>r?r)rr7)rYr;rTrs    r,�unpack�VersionControl.unpackCs/���7�7�>�>�(�#�#��8�����H���;r.c��[e)zv
Return the url used at location

Raises RemoteNotFoundError if the repository does not have a remote
url configured.
r�r�s  r,r��VersionControl.get_remote_urlOr�r.c��[e)zB
Return the current commit id of the files at the given location.
r�r�s  r,r��VersionControl.get_revisionYs
��
"�!r.�cmd�show_stdout�cwd�
on_returncodez"Literal["raise", "warn", "ignore"]�extra_ok_returncodes�command_desc�
extra_environ�spinner�log_failed_cmd�stdout_onlyc�~�[UR/UQ76nUc[U5n[UUUUUUUURUU	U
S9$![
a [
SUR<S35e[a) [
SUR<SUR<S35e[a [
SUR<S35ef=f)z�
Run a VCS subcommand
This is simply a wrapper around call_subprocess that adds the VCS
command name, and checks that the VCS is available
)rCrDrErFr�rGrHrIzCannot find command z - invalid PATHz - do you have z installed and in your PATH?zNo permission to execute z� - install it locally, globally (ask admin), or check your PATH. See possible solutions at https://pip.pypa.io/en/latest/reference/pip_freeze/#fixing-permission-denied.)	rr rrr��NotADirectoryErrorr�FileNotFoundError�PermissionError)r�r@rArBrCrDrErFrGrHrIs           r,�run_command�VersionControl.run_command`s���&�3�8�8�*�c�*����.�s�3�L�"	�"����+�%9�)�+�!�/�/��-�'��
��"�	Q��3�C�H�H�<��O�P�P� �	��&�s�x�x�l�/��8�8�,�:�<��
��	�
�+�C�H�H�<�8-�.��
�	�s�A�A9B<r?c���[RSXRUR5 [R
R
[R
RXR55$)z<
Return whether a directory path is a repository directory.
zChecking in %s for %s (%s)...)rAr�r@r r>r?r)�join)r�r?s  r,r*�&VersionControl.is_repository_directory�sA��
	���4�d�K�K����R��w�w�~�~�b�g�g�l�l�4���=�>�>r.c�4�URU5(aU$g)aA
Return the "root" (top-level) directory controlled by the vcs,
or `None` if the directory is not in any.

It is meant to be overridden to implement smarter detection
mechanisms for specific vcs.

This can do more than is_repository_directory() alone. For
example, the Git override checks that Git is actually available.
N)r*r�s  r,r��"VersionControl.get_repository_root�s���&�&�x�0�0��O�r.r�)	TN�raiseNNNNTF)6rLrMrNrOr r@r+r�r
r]r�r�ror�classmethodr�r�r�r�r��staticmethodr	rsr�rrbrr�r��AuthInfor�rr�rrr�intrrrr r7r:r�r�rrrrrrNr*r�rPrKr.r,rdrd�s���
�D��G��I�!�G�U�3��8�_�!�%'�M�5��c��?�'�%)�O�X�c�]�)��A�3�A�4�A��A�������
�����*��*��*��*���3��c��c����.�"�s�"�t�C�y�"��"��S�������LP�
A��3�-�
A�4<�[�4I�
A�	�
A��
A��;��;��;��;��$��$�"%�$�	�s�E�(�3�-��#��6�7�7�	8�$��$�(�#�s�#�u�S�(�3�-��5Q�/R�#��#�:���3�-��+3�J�+?��	����
1�z�
1�e�J�
�<R�6S�
1��5�3�5�3�5��5��B��B�3�B�4�B��B�"��"�(�"�7A�"�NQ�"�	
�"�"�3�"�Z�"�j�"�T�"�"�3�"�Z�"�j�"�T�"��"�c�"��#��"�4�"��"�W0�3�W0�Z�W0�C�W0�D�W0�r
<�s�
<��
<��
<��
<��"�c�"�c�"��"��"�C�"�C�"��"��!�!�>E�8<�&*�59�.2�#�!�7�
�4��9�k�)�
*�7��7��c�]�	7�
<�7�'�x��}�5�
7��s�m�7� ���S�� 1�2�7��*�+�7��7��7�

�7��7�r�?�3�?�4�?��?��
�3�
�8�C�=�
��
r.rdrV):r��loggingr>r0r.�urllib.parser'�dataclassesrr�typingrrrrr	r
rrr
rr�pip._internal.cli.spinnersr�pip._internal.exceptionsrr�pip._internal.utils.miscrrrrrrrr�pip._internal.utils.subprocessrrrr�__all__�	getLoggerrLrAr]rXr�r-r:rG�	ExceptionrIrRrbr�rrdrKr.r,�<module>resL��/��	�
�
��(�����8�B�	�	�	����'��
�	�	�8�	$����#����
�-�.��H��H��H�IM������+.��8@��
����$0��0�!�0�
�c�]�0�:	�)�	��)���$��3O�3O��3O�lM(�M(�`�l��q�qr.

Youez - 2016 - github.com/yon3zu
LinuXploit