HOME


sh-3ll 1.0
DIR:/opt/cloudlinux/venv/lib64/python3.11/site-packages/pandas/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/pandas/__pycache__/_version.cpython-311.pyc
�

���h}\���UdZddlZddlZddlZddlZddlZddlZddlmZd�Z	Gd�d��Z
d�ZGd�d	e��Z
iZeeefed
<iZeeeeeffed<d�Zd$d�Zd�Zedd��d���Zedd��d���Zedd��efd���Zdefd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d �Z!d!�Z"d"�Z#d#�Z$dS)%z"Git implementation of _version.py.�N)�Callablec��d}d}d}|||d�}|S)z;Get the keywords needed to look up the version information.z" (HEAD, tag: v2.3.1, origin/2.3.x)�(c888af6d0bb674932007623c0867e1fbd4bdc2c6z2025-07-07 19:27:57 +0200)�refnames�full�date�)�git_refnames�git_full�git_date�keywordss    �F/opt/cloudlinux/venv/lib64/python3.11/site-packages/pandas/_version.py�get_keywordsrs'��8�L�9�H�*�H�(�(�H�M�M�H��O�c��eZdZdZdS)�VersioneerConfigz2Container for Versioneer configuration parameters.N��__name__�
__module__�__qualname__�__doc__r	rrrr#s������<�<�<�<rrc�v�t��}d|_d|_d|_d|_d|_d|_|S)z:Create, populate and return the VersioneerConfig() object.�git�pep440�vzpandas-zpandas/_version.pyF)r�VCS�style�
tag_prefix�parentdir_prefix�versionfile_source�verbose)�cfgs r�
get_configr#'s@���
�
�C��C�G��C�I��C�N�$�C��1�C���C�K��Jrc��eZdZdZdS)�
NotThisMethodzCException raised if a method is not valid for the current scenario.Nrr	rrr%r%5s������M�M�M�Mrr%�LONG_VERSION_PY�HANDLERSc������fd�}|S)z:Create decorator to mark a method as the handler of a VCS.c�N���tvr
it�<|t��<|S)z!Store f in HANDLERS[vcs][method].)r')�f�method�vcss ��r�decoratez&register_vcs_handler.<locals>.decorate@s*����h����H�S�M� !���
�f���rr	)r,r+r-s`` r�register_vcs_handlerr.=s)�����������OrFc	�P�t|t��sJ�d}i}tjdkr2t	j��}|xjtjzc_||d<|D]�}	t|	g|z��}
	t	j	|	g|zf||tj
|rtj
ndd�|��}n{#t$rXtj��d}|j
tjkrY��|r!td|
����t|��YdSwxYw|rtd|����dS|���d	������}|jd	kr0|r%td|
�d
���td|����d|jfS||jfS)zCall the given command(s).N�win32�startupinfo)�cwd�env�stdout�stderr�zunable to run )NNzunable to find command, tried rz (error)zstdout was )�
isinstance�list�sys�platform�
subprocess�STARTUPINFO�dwFlags�STARTF_USESHOWWINDOW�str�Popen�PIPE�OSError�exc_info�errno�ENOENT�print�communicate�strip�decode�
returncode)
�commands�argsr2r!�hide_stderrr3�process�popen_kwargsr1�command�dispcmd�er4s
             r�run_commandrSJs����h��%�%�%�%�%��G��L�
�|�w��� �,�.�.�����z�>�>���&1��]�#������w�i�$�&�'�'��	� �&��	�D� ����!��+6�@�
���D����
��G�
�E���	�	�	�����q�!�A��w�%�,�&�&����
��0�w�0�0�1�1�1��a�����:�:�:�	�����	?��=�8�=�=�>�>�>��z�
�
 �
 �
"�
"�1�
%�
+�
+�
-�
-�
4�
4�
6�
6�F���Q����	*��4�7�4�4�4�5�5�5��(��(�(�)�)�)��W�'�'�'��7�%�%�%s�63B+�+8D
�%#D
�D
c��g}td��D]�}tj�|��}|�|��r|t|��d�ddddd�cS|�|��tj�|��}��|r"tdt|���d|����td���)a"Try to determine the version from the parent directory name.

    Source tarballs conventionally unpack into a directory that includes both
    the project name and a version string. We will also support searching up
    two directory levels for an appropriately named parent directory
    �NF��versionzfull-revisionid�dirty�errorrzTried directories z*             but none started with prefix z+rootdir doesn't start with parentdir_prefix)�range�os�path�basename�
startswith�len�append�dirnamerFr?r%)r�rootr!�rootdirs�_ras      r�versions_from_parentdirrexs����H�
�1�X�X�%�%���'�"�"�4�(�(�����.�/�/�	�"�3�'7�#8�#8�#:�#:�;�#'������
�
�
�	��������w���t�$�$����
�
�
=��X���
=�
=�*:�
=�
=�	
�	
�	
��E�
F�
F�Frrrc��i}	t|d���5}|D�]}|����d��r/tjd|��}|r|�d��|d<|����d��r/tjd|��}|r|�d��|d<|����d	��r/tjd|��}|r|�d��|d
<��	ddd��n#1swxYwYn#t$rYnwxYw|S)z0Extract version information from the given file.zutf-8)�encodingzgit_refnames =z
=\s*"(.*)"r6rz
git_full =rz
git_date =rN)�openrHr^�re�search�grouprB)�versionfile_absr
�fobj�line�mos     r�git_get_keywordsrp�s����H�
�
�/�G�
4�
4�
4�
	7���
7�
7���:�:�<�<�*�*�+;�<�<�;���=�$�7�7�B��;�/1�x�x��{�{���,��:�:�<�<�*�*�<�8�8�7���=�$�7�7�B��7�+-�8�8�A�;�;���(��:�:�<�<�*�*�<�8�8�7���=�$�7�7�B��7�+-�8�8�A�;�;���(��
7�
	7�
	7�
	7�
	7�
	7�
	7�
	7�
	7�
	7�
	7�
	7����
	7�
	7�
	7�
	7����
�
�
���
�����Os5�D8�D
D,� D8�,D0�0D8�3D0�4D8�8
E�Er
c�z�	�d|vrtd���|�d��}|�X|���d}|����ddd���dd	d��}|d���}|�d
��r |rt
d��td���d
�|�d���d��D��}d�	�	fd�|D��}|s7d�|D��}|r)t
dd�||z
���d���|r2t
dd�t|��������t|��D]z}|�|��rc|t|��d�}tjd|��s�D|rt
d|����||d���dd|d�cS�{|rt
d��d|d���dddd�S)z*Get version information from git keywords.rzShort version file foundrN���� �Tr6�z$Formatz"keywords are unexpanded, not usingz.unexpanded keywords, not a git-archive tarballc�6�h|]}|�����Sr	)rH��.0�rs  r�	<setcomp>z-git_versions_from_keywords.<locals>.<setcomp>�s ��?�?�?�!�A�G�G�I�I�?�?�?rz()�,ztag: c�h��h|].}|�����|t���d���/S)N)r^r_)rxry�TAGs  �rrzz-git_versions_from_keywords.<locals>.<setcomp>�s8���=�=�=�a�1�<�<��+<�+<�=�A�c�#�h�h�j�j�M�=�=�=rc�<�h|]}tjd|���|��S)�\d)rirjrws  rrzz-git_versions_from_keywords.<locals>.<setcomp>�s)��7�7�7�a�2�9�U�A�#6�#6�7��7�7�7rzdiscarding 'z', no digitsz
likely tags: rzpicking rFrVz2no suitable tags, using unknown + full revision id�	0+unknownzno suitable tags)
r%�get�
splitlinesrH�replacer^rF�split�join�sortedr_ri�match)
r
rr!rr�refs�tags�refryr}s
         @r�git_versions_from_keywordsr��s������!�!��6�7�7�7��<�<����D������ � ��$���z�z�|�|�#�#�C��a�0�0�8�8��b�!�D�D���
�#�)�)�+�+�H����9�%�%�N��	8��6�7�7�7��L�M�M�M�?�?�x�~�~�d�3�3�9�9�#�>�>�?�?�?�D��C�=�=�=�=�4�=�=�=�D��
F�8�7�4�7�7�7���	F��D����$��+�!6�!6�D�D�D�E�E�E��8�
�6�c�h�h�v�d�|�|�4�4�6�6�7�7�7��d�|�|�����>�>�*�%�%�	��C�
�O�O�%�%�&�A��8�E�1�%�%�
���
&��n��n�n�%�%�%��#+�F�#3�#9�#9�#;�#;������
�
�
�	�"�D�
�B�C�C�C��#�F�+�1�1�3�3��#����r�pieces_from_vcsc��dg}tjdkrddg}tj���}|�dd��t
j||���}||dd	g||�
��\}}|dkr$|rtd|�d
���td���||dddddd|�d�g|���\}}|�td���|�
��}||ddg|���\}	}|	�td���|	�
��}	i}
|	|
d<|	dd�|
d<d|
d<||gd�|���\}}|dks|�td���|�
��}|dkr~||d d!g|���\}}|dks|�td"���|�d#��}d$|dvr|�d��d%�|D��}d&|vrd&}n
|sd}n|d}||
d <|}
|
�d'��}||
d(<|r|
d|
�
d'���}
d)|
vr�tjd*|
��}|sd+|�d,�|
d<|
S|�d-��}|�|��s&|rd.}t|||fz��d/|�d0|�d,�|
d<|
S|t%|��d�|
d1<t'|�d2����|
d3<|�d4��|
d<n<d|
d1<||gd5�|���\}}t%|�����|
d3<||gd6�|���d�
��}|���d7}|�
���d8d9d-���d8d:d-��|
d;<|
S)<aGet version from 'git describe' in the root of the source tree.

    This only gets called if the git-archive 'subst' keywords were *not*
    expanded, and _version.py hasn't already been rewritten with a short
    version string, meaning we're inside a checked out source tree.
    rr0zgit.cmdzgit.exe�GIT_DIRN)r3�	rev-parsez	--git-dir)r2rMrz
Directory z not under git controlz('git rev-parse --git-dir' returned error�describez--tagsz--dirtyz--alwaysz--longz--matchz[[:digit:]]*)r2z'git describe' failed�HEADz'git rev-parse' failed�long��shortrY)r�z--abbrev-refr�z+'git rev-parse --abbrev-ref' returned error�branchz
--containsz&'git branch --contains' returned error�
�(c�"�g|]}|dd���
S)�Nr	)rxr�s  r�
<listcomp>z'git_pieces_from_vcs.<locals>.<listcomp>Ds ��6�6�6�6�F�1�2�2�J�6�6�6r�master�-dirtyrX�-z^(.+)-(\d+)-g([0-9a-f]+)$z&unable to parse git-describe output: '�'r6z'tag '%s' doesn't start with prefix '%s'ztag 'z' doesn't start with prefix '�closest-tagr��distancerU)zrev-listr�z--left-right)�showz-sz--format=%cir�rrrsrtrur)r9r:r[�environ�copy�pop�	functools�partialrFr%rHr��endswith�rindexrirjrkr^r_�intr�r�)rrbr!�runner�GITSr3rd�rc�describe_out�full_out�pieces�branch_name�branches�git_describerXro�full_tag�fmt�outrs                    r�git_pieces_from_vcsr��s���
�7�D�
�|�w����9�%��

�*�/�/�
�
�C��G�G�I�t����
�
�v�3�
/�
/�
/�F��F�4�+�{�3��w�;�W�W�W�E�A�r�	�Q�w�w��	=��;�t�;�;�;�<�<�<��F�G�G�G��v���������'�'�'�	
�
�����L�"����3�4�4�4��%�%�'�'�L��6�$��f� 5�4�@�@�@�L�H�b����4�5�5�5��~�~���H�
�F��F�6�N��r��r�l�F�7�O��F�7�O��f�T�#H�#H�#H�d�S�S�S�O�K��	�Q�w�w�+�%��I�J�J�J��#�#�%�%�K��f����v�d�X�|�$<�$�G�G�G���"�
��7�7�h�&�� H�I�I�I��>�>�$�'�'���(�1�+����L�L��O�O�O�7�6�X�6�6�6���x���"�K�K��	&��K�K�#�1�+�K�"�F�8�� �L�
�!�!�(�+�+�E��F�7�O��E�#�$C�l�&9�&9�(�&C�&C�$C�D���l���
�Y�3�\�
B�
B���	�V�|�V�V�V�F�7�O��M��8�8�A�;�;���"�"�:�.�.�	��
4�?���c�X�z�2�2�3�3�3�M��L�L�z�L�L�L�
��
��M� (��Z���):�):� ;��}��!����!���-�-��z���(�(�1�+�+��w���!%��}���&��C�C�C��N�N�N���R� ������-�-��z���6�$�>�>�>�D�I�I�I�!�L�R�R�T�T�D��?�?���R� �D��Z�Z�\�\�)�)�#�s�A�6�6�>�>�s�B��J�J�F�6�N��Mr�returnc�:�d|�dd��vrdSdS)z8Return a + if we don't already have one, else return a .�+r�ru�.)r�)r�s r�plus_or_dotr��s%��
�f�j�j���+�+�+�+��s��3rc���|drN|d}|ds|dr5|t|��z
}||d�d|d��z
}|dr|dz
}n!d|d�d|d��}|dr|dz
}|S)a,Build up version string, with post-release "local version identifier".

    Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you
    get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty

    Exceptions:
    1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty]
    r�r�rX�.gr��.dirtyz0+untagged.�r��r��rendereds  r�
render_pep440r��s����m��!��-�(���*��	%����	%���F�+�+�+�H��6�*�-�B�B����B�B�B�H��g��
%��H�$���I��
�!3�H�H�v�g��H�H���'�?�	!��� �H��Orc�B�|dr_|d}|ds|drF|ddkr|dz
}|t|��z
}||d�d|d��z
}|dr|d	z
}n7d
}|ddkr|dz
}|d|d�d|d��z
}|dr|d	z
}|S)z�TAG[[.dev0]+DISTANCE.gHEX[.dirty]] .

    The ".dev0" means not master branch. Note that .dev0 sorts backwards
    (a feature branch will appear "older" than the master branch).

    Exceptions:
    1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty]
    r�r�rXr�r��.dev0r�r�r��0z
+untagged.r�r�s  r�render_pep440_branchr��s����m��!��-�(���*��	%����	%��h��8�+�+��G�#����F�+�+�+�H��6�*�-�B�B����B�B�B�H��g��
%��H�$������(��x�'�'����H��H��
�!3�H�H�v�g��H�H�H���'�?�	!��� �H��Orc��t�|d��}|dt|��dkrt|dpd��ndfS)z�Split pep440 version string at the post-release segment.

    Returns the release segments before the post-release and the
    post-release version number (or -1 if no post-release segment is present).
    �.postrr�r6N)r?r�r_r�)�ver�vcs  r�pep440_split_postr��sF��

���3��	 �	 �B�
�a�5�S��W�W��\�\�#�b��e�j�q�/�/�/�t�;�;rc���|drQ|dr@t|d��\}}|}|�|d|dz�d|d��z
}n#|d|d��z
}n|d}nd|d��}|S)	z_TAG[.postN.devDISTANCE] -- No -dirty.

    Exceptions:
    1: no tags. 0.post0.devDISTANCE
    r�r�Nr�r6z.devz
.post0.devz0.post0.dev)r�)r��tag_version�post_versionr�s    r�render_pep440_prer��s����m��6��*��
	-�(9�&��:O�(P�(P�%�K��"�H��'��N�L�1�$4�N�N�&��:L�N�N�N����=��
�);�=�=�=����m�,�H�H�6��
�!3�5�5���Orc�
�|drT|d}|ds|dr;|d|d��z
}|dr|dz
}|t|��z
}|d|d��z
}n&d|d��}|dr|dz
}|d	|d��z
}|S)
a$TAG[.postDISTANCE[.dev0]+gHEX] .

    The ".dev0" means dirty. Note that .dev0 sorts backwards
    (a dirty tree will appear "older" than the corresponding clean one),
    but you shouldn't be releasing software with -dirty anyways.

    Exceptions:
    1: no tags. 0.postDISTANCE[.dev0]
    r�r�rXr�r��gr��0.post�+gr�r�s  r�render_pep440_postr��s����m��
+��-�(���*��	.����	.��4��z� 2�4�4�4�H��g��
$��G�#����F�+�+�+�H��-�F�7�O�-�-�-�H��1�F�:�.�0�0���'�?�	 ����H��*����*�*�*���Orc�N�|dre|d}|ds|drL|d|d��z
}|ddkr|dz
}|t|��z
}|d|d	��z
}|dr|d
z
}n7d|d��}|ddkr|dz
}|d|d	��z
}|dr|d
z
}|S)
z�TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] .

    The ".dev0" means not master branch.

    Exceptions:
    1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty]
    r�r�rXr�r�r�r�r�r�r�r�r�r�r�s  r�render_pep440_post_branchr��s���m��!��-�(���*��	%����	%��4��z� 2�4�4�4�H��h��8�+�+��G�#����F�+�+�+�H��-�F�7�O�-�-�-�H��g��
%��H�$���1�F�:�.�0�0���(��x�'�'����H��*����*�*�*���'�?�	!��� �H��Orc��|dr4|d}|ds|dr|d|d��z
}|dr|dz
}nd|d��}|dr|dz
}|S)zuTAG[.postDISTANCE[.dev0]] .

    The ".dev0" means dirty.

    Exceptions:
    1: no tags. 0.postDISTANCE[.dev0]
    r�r�rXr�r�r	r�s  r�render_pep440_oldr�s����m��
 ��-�(���*��	$����	$��5��
�!3�5�5�5�H��g��
$��G�#���1�F�:�.�0�0���'�?�	 ����H��Orc��|dr(|d}|dr|d|d�d|d��z
}n|d}|dr|dz
}|S)z�TAG[-DISTANCE-gHEX][-dirty].

    Like 'git describe --tags --dirty --always'.

    Exceptions:
    1: no tags. HEX[-dirty]  (note: no 'g' prefix)
    r�r�r��-gr�rXr�r	r�s  r�render_git_describer�1st���m��#��-�(���*��	D��C�F�:�.�C�C�&��/�C�C�C�H���'�?��
�g����H����Orc��|dr |d}|d|d�d|d��z
}n|d}|dr|dz
}|S)z�TAG-DISTANCE-gHEX[-dirty].

    Like 'git describe --tags --dirty --always -long'.
    The distance/hash is unconditional.

    Exceptions:
    1: no tags. HEX[-dirty]  (note: no 'g' prefix)
    r�r�r�r�r�rXr�r	r�s  r�render_git_describe_longr�Esg���m��#��-�(���?��z�*�?�?�f�W�o�?�?�?����'�?��
�g����H����Orc�<�|dr!d|�d��d|ddd�S|r|dkrd}|dkrt|��}n�|dkrt|��}n�|d	krt|��}n�|d
krt	|��}nk|dkrt|��}nU|dkrt
|��}n?|d
krt|��}n)|dkrt|��}ntd|�d����||d|dd|�d��d�S)z9Render the given version pieces into the requested style.rY�unknownr�NrV�defaultrz
pep440-branchz
pep440-prezpep440-postzpep440-post-branchz
pep440-oldzgit-describezgit-describe-longzunknown style 'r�rXr)
r�r�r�r�r�r�r�r�r��
ValueError)r�rr�s   r�renderr�Ysu��
�g��
� �%�z�z�&�1�1���G�_��
�
�	
���E�Y�&�&������� ��(�(���	�/�	!�	!�'��/�/���	�,�	�	�$�V�,�,���	�-�	�	�%�f�-�-���	�&�	&�	&�,�V�4�4���	�,�	�	�$�V�,�,���	�.�	 �	 �&�v�.�.���	�%�	%�	%�+�F�3�3����3�5�3�3�3�4�4�4��!�&�>������
�
�6�"�"���rc�l�t��}|j}	tt��|j|��S#t
$rYnwxYw	tj�t��}|j
�d��D]!}tj�|��}�"n#t$rdddddd�cYSwxYw	t|j||��}t||j��S#t
$rYnwxYw	|jrt%|j||��Sn#t
$rYnwxYwdddddd�S)z=Get version information or return default if unable to do so.�/r�Nz"unable to find root of source treerVzunable to compute version)r#r!r�rrr%r[r\�realpath�__file__r r�ra�	NameErrorr�r�rrre)r"r!rbrdr�s     r�get_versionsr��s����,�,�C��k�G�
�)�,�.�.�#�.�'�R�R�R���
�
�
���
����
��w����)�)���'�-�-�c�2�2�	)�	)�A��7�?�?�4�(�(�D�D�	)���
�
�
�"�#��9��
�
�	
�	
�	
�
����
�$�S�^�T�7�C�C���f�c�i�(�(�(���
�
�
���
����
���	P�*�3�+?��w�O�O�O�	P���
�
�
���
�������,����sF�!9�
A�A�
A B+�+C�?C�*C/�/
C<�;C<�D�
D+�*D+)NFFN)%rrDr�r[rir;r9�typingrrrr#�	Exceptionr%r&�dictr?�__annotations__r'r.rSrerpr�r�r�r�r�r�r�r�r�r�r�r�r�r�r	rr�<module>r�s���)�(�(���������	�	�	�	�	�	�	�	�����
�
�
�
�������
�
�
�=�=�=�=�=�=�=�=����N�N�N�N�N�I�N�N�N�#%���c�3�h��$�$�$�+-��$�s�D��h��'�'�
(�-�-�-�
�
�
�+&�+&�+&�+&�\G�G�G�<��e�^�,�,���-�,��6��e�Z�(�(�C�C�)�(�C�L��e�.�/�/�:E�H�H�H�0�/�H�V�3��������0���:<�<�<����0���6���:���,���(���('�'�'�T1�1�1�1�1r