Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pandas/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pandas/__pycache__/_version.cpython-312.pyc

�

Mٜg<\��v�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$y)$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$Format:%d$z$Format:%H$z$Format:%ci$)�refnames�full�date�)�git_refnames�git_full�git_date�keywordss    �:/usr/local/lib/python3.12/site-packages/pandas/_version.py�get_keywordsrs$��!�L��H��H�(�(�H�M�H��O�c��eZdZdZy)�VersioneerConfigz2Container for Versioneer configuration parameters.N��__name__�
__module__�__qualname__�__doc__rrr
rr#s��<rrc�n�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��eZdZdZy)�
NotThisMethodzCException raised if a method is not valid for the current scenario.Nrrrr
r$r$5s��Mrr$�LONG_VERSION_PY�HANDLERSc������fd�}|S)z:Create decorator to mark a method as the handler of a VCS.c�B���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�����Orc	�R�t|t�sJ�d}i}tjdk(r<t	j
�}|xjtjzc_||d<|D]R}	t|	g|z�}
	t	j|	g|zf||tj|rtjndd�|��}n|rtd|���y|j!�d	j#�j%�}|j&d	k7r-|rtd|
�d
��td|���d|j&fS||j&fS#t$rVtj�d}|jtjk(rY��|rtd|
���t|�YywxYw)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�argsr1r �hide_stderrr2�process�popen_kwargsr0�command�dispcmd�er3s
             r
�run_commandrRJs����h��%�%�%��G��L�
�|�|�w�� �,�,�.�����z�>�>�>��&1��]�#����w�i�$�&�'��	� �&�&��	�D� ����!���+6�
���D���
�G�
��,��2�8�*�=�>��
�
 �
 �
"�1�
%�
+�
+�
-�
4�
4�
6�F����Q����N�7�)�8�4�5��K��x�(�)��W�'�'�'�'��7�%�%�%�%��%�	�����q�!�A��w�w�%�,�,�&�����w�i�0�1��a���	�s�;?E�=F&�F&�%F&c�`�g}td�D]x}tjj|�}|j	|�r|t|�dddddd�cS|j
|�tjj|�}�z|rtdt|��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�dirnamerEr>r$)r�rootr �rootdirs�_r`s      r
�versions_from_parentdirrdxs����H�
�1�X���'�'�"�"�4�(�����.�/�"�3�'7�#8�#:�;�#'�����
�	������w�w���t�$����
� ��X���0*�*:�);�
=�	
��E�
F�Frrrc�H�i}	t|d��5}|D]�}|j�jd�r,tjd|�}|r|jd�|d<|j�jd�r,tjd|�}|r|jd�|d<|j�jd	�s��tjd|�}|s��|jd�|d
<��	ddd�|S#1swY|SxYw#t$rY|SwxYw)z0Extract version information from the given file.zutf-8)�encodingzgit_refnames =z
=\s*"(.*)"r5rz
git_full =rz
git_date =rN)�openrGr]�re�search�grouprA)�versionfile_absr�fobj�line�mos     r
�git_get_keywordsro�s���H�
�
�/�G�
4�����:�:�<�*�*�+;�<����=�$�7�B��/1�x�x��{���,��:�:�<�*�*�<�8����=�$�7�B��+-�8�8�A�;���(��:�:�<�*�*�<�8����=�$�7�B��+-�8�8�A�;���(��5� �O�!5� �O���
���O�
�s;�
D�B;D�
D�&D�=D�D�D�D�	D!� D!rc�N�d|vrtd��|jd�}|�E|j�d}|j�j	ddd�j	dd	d�}|dj�}|jd
�r|rt
d�td��|jd
�jd�D�chc]}|j���}}d}|D�chc]"}|j|�s�|t|�d��$}}|sI|D�chc]}tjd|�s�|��}}|r!t
ddj||z
��d��|r&t
ddjt|�����t|�D]c}	|	j|�s�|	t|�d}tjd|�s�:|rt
d|���||dj�dd|d�cS|rt
d�d|dj�dddd�Scc}wcc}wcc}w)z*Get version information from git keywords.rzShort version file foundrN���� �Tr5�z$Formatz"keywords are unexpanded, not usingz.unexpanded keywords, not a git-archive tarballz()�,ztag: z\dzdiscarding 'z', no digitsz
likely tags: zpicking rFrUz2no suitable tags, using unknown + full revision id�	0+unknownzno suitable tags)r$�get�
splitlinesrG�replacer]rE�splitr^rhri�join�sorted�match)
rrr rr�r�refs�TAG�tags�refs
          r
�git_versions_from_keywordsr��s'����!��6�7�7��<�<���D������ ��$���z�z�|�#�#�C��a�0�8�8��b�!�D���
�#�)�)�+�H����9�%���6�7��L�M�M�'�~�~�d�3�9�9�#�>�?�>�!�A�G�G�I�>�D�?��C�#'�=�4�a�1�<�<��+<�A�c�#�h�j�M�4�D�=�� �7�4�a�2�9�9�U�A�#6��4��7���L����$��+�!6� 7�|�D�E��
�
�c�h�h�v�d�|�4�5�6�7��d�|���>�>�*�%��C�
�O�%�&�A��8�8�E�1�%�������n�%��#+�F�#3�#9�#9�#;�����
��&�
�B�C��#�F�+�1�1�3��#�����O@��>��8s�H�%H�<H�H"�0H"�pieces_from_vcsc�^�dg}tjdk(rddg}tjj	�}|jdd�t
j||��}||dd	g||�
�\}}|dk7r|rtd|�d
��td��||dddddd|�d�g|��\}}|�td��|j�}||ddg|��\}	}|	�td��|	j�}	i}
|	|
d<|	dd|
d<d|
d<||gd�|��\}}|dk7s|�td��|j�}|dk(rn||d d!g|��\}}|dk7s|�td"��|jd#�}d$|dvr|jd�|D�
cgc]}
|
d%d��	}}
d&|vrd&}n
|sd}n|d}||
d <|}|jd'�}||
d(<|r|d|jd'�}d)|vr�tjd*|�}|sd+|�d,�|
d<|
S|j!d-�}|j#|�s"|rd.}t|||fz�d/|�d0|�d,�|
d<|
S|t%|�d|
d1<t'|j!d%��|
d2<|j!d3�|
d<n1d|
d1<||gd4�|��\}}t%|j��|
d2<||gd5�|��dj�}|j)�d6}|j�j+d7d8d-�j+d7d9d-�|
d:<|
Scc}
w);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.
    rr/zgit.cmdzgit.exe�GIT_DIRN)r2�	rev-parsez	--git-dir)r1rLrz
Directory z not under git controlz('git rev-parse --git-dir' returned error�describez--tagsz--dirtyz--alwaysz--longz--matchz[[:digit:]]*)r1z'git describe' failed�HEADz'git rev-parse' failed�long��shortrX)r�z--abbrev-refr�z+'git rev-parse --abbrev-ref' returned error�branchz
--containsz&'git branch --contains' returned error�
�(��master�-dirtyrW�-z^(.+)-(\d+)-g([0-9a-f]+)$z&unable to parse git-describe output: '�'r5z'tag '%s' doesn't start with prefix '%s'ztag 'z' doesn't start with prefix '�closest-tag�distancerT)zrev-listr�z--left-right)�showz-sz--format=%cir�rqrrrsrtr)r8r9rZ�environ�copy�pop�	functools�partialrEr$rGrz�endswith�rindexrhrirjr]r^�intrxry)rrar �runner�GITSr2rc�rc�describe_out�full_out�pieces�branch_name�branchesr��git_describerWrn�full_tag�fmt�outrs                     r
�git_pieces_from_vcsr��s���
�7�D�
�|�|�w���9�%��

�*�*�/�/�
�C��G�G�I�t��
�
�
�v�3�
/�F��4�+�{�3��w�;�W�E�A�r�	�Q�w���J�t�f�$:�;�<��F�G�G����������l�,�'�	
�
���L�"����3�4�4��%�%�'�L��$��f� 5�4�@�L�H�b����4�5�5��~�~��H�
�F��F�6�N��r��l�F�7�O��F�7�O��T�#H�d�S�O�K��	�Q�w�+�%��I�J�J��#�#�%�K��f���d�X�|�$<�$�G���"�
��7�h�&�� H�I�I��>�>�$�'���(�1�+���L�L��O�.6�6�X�6�F�1�2�J�X��6��x��"�K���K�#�1�+�K�"�F�8�� �L�
�!�!�(�+�E��F�7�O��#�$C�l�&9�&9�(�&C�D���l��
�Y�Y�3�\�
B��� F�|�n�TU�V�F�7�O��M��8�8�A�;���"�"�:�.��?���c�X�z�2�2�3���z�!>�z�l�!�L�
��
��M� (��Z��):� ;��}��!����!��-��z���(�(�1�+��w��!%��}����C��N���R� �����-��z���$�>�D�I�!�L�R�R�T�D��?�?��R� �D��Z�Z�\�)�)�#�s�A�6�>�>�s�B��J�F�6�N��M��}7s�L*�returnc�.�d|jdd�vryy)z8Return a + if we don't already have one, else return a .�+r�rt�.)rw)r�s r
�plus_or_dotr��s��
�f�j�j���+�+��rc��|dr9|d}|ds|dr(|t|�z
}||d�d|d��z
}|dr|dz
}|Sd|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�rW�.gr��.dirtyz0+untagged.�r��r��rendereds  r
�
render_pep440r��s����m���-�(���*�������F�+�+�H��6�*�-�.�b����0A�B�B�H��g���H�$���O�!��
�!3� 4�B�v�g��6G�H���'�?��� �H��Orc���|drF|d}|ds|dr5|ddk7r|dz
}|t|�z
}||d�d|d��z
}|dr|d	z
}|Sd
}|ddk7r|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�rWr�r��.dev0r�r�r��0z
+untagged.r�r�s  r
�render_pep440_branchr��s����m���-�(���*������h��8�+��G�#����F�+�+�H��6�*�-�.�b����0A�B�B�H��g���H�$���O�
���(��x�'����H��j��
�!3� 4�B�v�g��6G�H�H���'�?��� �H��Orc�~�tj|d�}|dt|�dk(rt|dxsd�fSdfS)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�r5N)r>rzr^r�)�ver�vcs  r
�pep440_split_postr��sA��

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

    Exceptions:
    1: no tags. 0.post0.devDISTANCE
    r�r�r�r5z.devz
.post0.devz0.post0.dev)r�)r��tag_version�post_versionr�s    r
�render_pep440_prer��s����m���*��(9�&��:O�(P�%�K��"�H��'��e�L�1�$4�#5�T�&��:L�9M�N�N���O��j��
�);�(<�=�=���O�	�m�,�H��O�!��
�!3� 4�5���Orc���|dr?|d}|ds|dr.|d|d��z
}|dr|dz
}|t|�z
}|d|d��z
}|Sd|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�rWr�r��gr��0.post�+gr�r�s  r
�render_pep440_postr��s����m���-�(���*������%��z� 2�3�4�4�H��g���G�#����F�+�+�H��!�F�7�O�,�-�-�H��O�	�F�:�.�/�0���'�?����H��b����)�*�*���Orc��|drL|d}|ds|dr;|d|d��z
}|ddk7r|dz
}|t|�z
}|d|d	��z
}|dr|d
z
}|Sd|d��}|ddk7r|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�rWr�r�r�r�r�r�r�r�r�r�r�s  r
�render_pep440_post_branchr��s����m���-�(���*������%��z� 2�3�4�4�H��h��8�+��G�#����F�+�+�H��!�F�7�O�,�-�-�H��g���H�$���O�
�F�:�.�/�0���(��x�'����H��b����)�*�*���'�?��� �H��Orc��|dr&|d}|ds|dr|d|d��z
}|dr|dz
}|Sd|d��}|dr|dz
}|S)zuTAG[.postDISTANCE[.dev0]] .

    The ".dev0" means dirty.

    Exceptions:
    1: no tags. 0.postDISTANCE[.dev0]
    r�r�rWr�r�rr�s  r
�render_pep440_oldr�s}���m���-�(���*������&��
�!3� 4�5�5�H��g���G�#���O��F�:�.�/�0���'�?����H��Orc�f�|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�rWr�rr�s  r
�render_git_describer�1sa���m���-�(���*���!�F�:�.�/�r�&��/�1B�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�rWr�rr�s  r
�render_git_describe_longr�EsY���m���-�(���a��z�*�+�2�f�W�o�->�?�?���'�?��
�g���H����Orc��|drd|jd�d|ddd�S|r|dk(rd}|dk(rt|�}n�|dk(rt|�}nu|d	k(rt|�}nd|d
k(rt	|�}nS|dk(rt|�}nB|dk(rt
|�}n1|d
k(rt|�}n |dk(rt|�}ntd|�d���||d|dd|jd�d�S)z9Render the given version pieces into the requested style.rX�unknownr�NrU�defaultrz
pep440-branchz
pep440-prezpep440-postzpep440-post-branchz
pep440-oldzgit-describezgit-describe-longzunknown style 'r�rWr)
rwr�r�r�r�r�r�r�r��
ValueError)r�rr�s   r
�renderr�Ys��
�g�� �%�z�z�&�1���G�_��
�	
��E�Y�&������ ��(��	�/�	!�'��/��	�,�	�$�V�,��	�-�	�%�f�-��	�&�	&�,�V�4��	�,�	�$�V�,��	�.�	 �&�v�.��	�%�	%�+�F�3���?�5�'��3�4�4��!�&�>������
�
�6�"��rc�t�t�}|j}	tt�|j|�S#t
$rYnwxYw	tjjt�}|jjd�D]!}tjj|�}�#n#t$rdddddd�cYSwxYw	t|j||�}t||j �S#t
$rYnwxYw	|j"rt%|j"||�Sn#t
$rYnwxYwdddddd�S)z=Get version information or return default if unable to do so.�/rvNz"unable to find root of source treerUzunable to compute version)r"r r�rrr$rZr[�realpath�__file__rrzr`�	NameErrorr�r�rrrd)r!r rarcr�s     r
�get_versionsr��s?���,�C��k�k�G�
�)�,�.�#�.�.�'�R�R���
��
��
��w�w����)���'�'�-�-�c�2�A��7�7�?�?�4�(�D�3���
�"�#��9��
�	
�
��
�$�S�^�^�T�7�C���f�c�i�i�(�(���
��
��
����*�3�+?�+?��w�O�O� ���
��
�����,���sF�7�	A�A�A"B*�*B>�=B>�,C/�/	C;�:C;�?"D#�#	D/�.D/)NFFN)%rrCr�rZrhr:r8�typingrrrr"�	Exceptionr$r%�dictr>�__annotations__r&r-rRrdror�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr
�<module>r�s"��)���	�	��
��
�=�=��N�I�N�#%���c�3�h��$�+-��$�s�D��h��'�'�
(�-�
�+&�\G�<�e�^�,��-��6�e�Z�(�C�)�C�L�e�.�/�:E�H�0�H�V�3���0�:<��0�6�:�,�(�('�T1r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists