HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3/dist-packages/incremental/__pycache__/update.cpython-310.pyc
o

�M=`��@s�ddlmZmZmZddlZddlZddlZddlmZddl	m
Z
dZdZdd�Z
d	d
�Zddefdd�Ze��e�d
�ejddd�ejddd�ejddd�ejddd�ejddd�ejddd�ejddd�dd����������Zedkr}e�dSdS)�)�absolute_import�division�print_functionN)�Version)�FilePathz�"""
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�cCsJt|�}|�d��|���}|�|���}|��r|S|��r!|Std��)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�child�lower�isdir�
ValueError)�path�package�cwdZsrc_dirZcurrent_dir�r�4/usr/lib/python3/dist-packages/incremental/update.py�	_findPaths�rcCsPi}|�d��d��}t|��|�Wd�|dS1swY|dS)N�_version.py�r�__version__)r�open�exec�read)r�version_info�frrr�_existing_version3s
��rc	Cs�|	stj}	|stj��}t|�tkr|�d�}|s t|	�|�}nt	|�}|r(|s4|r,|s4|r0|s4|r8|r8t
d��|r<|sD|r@|sD|rH|rHt
d��|rL|s\|rP|s\|rT|s\|rX|s\|r`|r`t
d��|r�ddlm}t
|�}||�j}
t|
j�}t|�dkr�|�d�t|�dkr�|�d�t|g|�R|
jr�|
jdnd|
jr�|
jdnd|
jr�|
jdndd	��}n�|r�t||jt|jd�}|}n�|r�|s�t
|�}|jr�t||j|j|j|jd�}n�t||jt|jdd�}ny|�r|r�d}nd}t
|�}t||j|j|jd|�}n]|�r't
|�}|jdu�rd}n|jd}t||j|j|j|d
�}n;|�rKt
|�}|jdu�r7d}n|jd}t||j|j|j|j|d�}nt
|�}|j�r^t||j|j|j�}nt
d��tt|d
dd���d�d� dd�}|�d�}t|��d�d� dd�}|�d�}t|��d�d� dd�}|�d�}|
d|�!��|�"�D]�}|�#��s��q�|�$�}|}|j�r�|� ||�}|� |�d�d|�!��d�|�d�d|�!��d��}|� ||�}|� |� dd�|�}|� |�d�d|�d�d|�!��d��}||k�r/|
d|j%f�|�&d��
}|�'|�Wd�n	1�s*wY�q�|
d|j%�|�(d��&d��}|�'t)j*||d��d��Wd�dS1�sZwYdS)N�utf8zOnly give --newversionzOnly give --devzOnly give --creater)�
parse_version��)�release_candidate�post�dev)r )r!z6You need to issue a rc before updating the major/minorZNEXT�#�'�"zUpdating codebase to %s� �'�"s NEXTzUpdating %s�wzUpdating %s/_version.pyr)r
�version_repr)+�os�getcwd�datetime�dateZtoday�type�str�encoderrrZ
pkg_resourcesrrZ_version�list�release�len�appendrZprer r!Zyear�_YEAR_STARTZmonthr�major�minor�micro�repr�split�replaceZpublic�walk�isfileZ
getContentrr�writer�_VERSIONPY_TEMPLATE�format)r
rZ
newversionZpatchZrcr r!ZcreateZ_dateZ_getcwdZ_printr�existingZ
st_versionr2�vZ_postZ_devZ	NEXT_reprZNEXT_repr_bytesr)Zversion_repr_bytesZexisting_version_reprZexisting_version_repr_bytes�xZoriginal_contentZcontentrrrr�_run<s*

��������
��������	�
�



��
��

�
$



���
���$�rDr
z--path)�defaultz--newversionz--patchT)Zis_flagz--rcz--postz--devz--createcOst|i|��S)N)rD)�args�kwargsrrr�run�s
rH�__main__)Z
__future__rrrZclickr*r,ZincrementalrZtwisted.python.filepathrr?r5rr�printrDZcommand�argument�optionrH�__name__rrrr�<module>s8

�B
�