A*izddlZddlZddlmZddlmZmZmZmZddl m Z m Z m Z dZ dZddefdedeed eed ed ed ed ededeejdeegefdeegefddfdZdeddfdZddeeeddfdZddeeeddfdZedkr edSdS)N)ArgumentParser)AnyCallableOptionalSequence)Version_existing_version _findPathz""" Provides {package} version information. """ # This file is auto-generated! Do not edit! # Use `incremental` to change this file. from incremental import Version __version__ = {version_repr} __all__ = ["__version__"] ipackagepath newversionpatchrcpostdevcreate_date_getcwd_printreturnc  | s tj} |stj}|st | |}|r|s |r|s|r|s|r|rt d|r|s|r|s|r|rt d|r|s|r|s |r|s|r|s|r|rt dtj|d} |rddl m } t| } | |}t|j }d}d}t|dkr|\}nt|dkr|\}}n|\}}}t|||||jr |jdnd|j|j }n|r(t||jt&z |jd}|} n|rk|sit| } | jr,t|| j| j| j| jdz}nAt||jt&z |jdd}n|r9t| } t|| j| j| jdz|rdnd}n|rGt| } | jd}n | jdz}t|| j| j| j| }n|rMt| } | jd}n | jdz}t|| j| j| j| j| }nGt| } | jr"t|| j| j| j}nt d t3t|d dddddd}|d}t3|dddd}|d}t3| dddd}|d}| d|tj|D]\}}}|D] }tj||} t?| d5}!|! }"dddn #1swxYwY|"}#| jr|#||}#|#|ddz| dz|ddz|dz}#|#||}#|#|dd|}#|#|ddz|ddz|dz}#|#|"krK| d| t?| d5}!|!!|#dddn #1swxYwY | d| t?| d5}!|!!tD#||dddddS#1swxYwYdS)NzOnly give --newversionzOnly give --devzOnly give --createz _version.pyr)r)release_candidaterr)r)rz6You need to issue a rc before updating the major/minorNEXT#'"utf8zUpdating codebase to rb '"s NEXTz Updating wb)r version_reprzutf-8)$osgetcwddatetimedatetodayr ValueErrorr joinpackaging.versionrr listreleaselenprerryear _YEAR_STARTmonthrmajorminormicroreprsplitreplaceencodepublicwalkopenreadwrite_VERSIONPY_TEMPLATEformat)$r r r rrrrrrrr versionpath parse_versionexisting st_versionr/r6r7r5v_post_dev NEXT_reprNEXT_repr_bytesr%version_repr_bytesexisting_version_reprexisting_version_repr_bytesdirpathdirnames filenamesfilenamefilepathforiginal_contentcontents$ b/home/jenkins/workspace/simtester-sanitize/venv/lib/python3.11/site-packages/incremental/update.py_runrXsr ) & ##%% -G,, 33 33 33  3 3 1222 ,,3,2,3,4,*+++ // // //  / /  / " /-...',,t]33KXW>>>>>>$[11"]:.. z)** w<<1  HUU \\Q  "LE55") E5%     3=>KjnQ//t    =W GUZ+5u{A F F 9WE9W$[11  % N*Q. AAk!95;1MMAA +W$[11   N N NQ  AA    !W$[11 = EEMA%E GX^X^X^RW X X X W$[11 < DD">v"F"F F /188:: / /000(* % %$9! % %Hw||GX66Hh%% ,#$6688  , , , , , , , , , , , , , , ,&G) !///1C"//^^F++d2X__5F5F5M5Mf5U5UU^^F++d2QXXZZ5F5Fv5N5NN ooo7IJJGoo''d335GG oov&&1''$.1B1B61J1JJG ***-8--...(D))%QGGG$$$%%%%%%%%%%%%%%%= %B F ${ $ $%%% k4  A   & &l '  fWoo                     s7R22R6 9R6 <YY" %Y" A[["[pc~|d|dd|ddd|ddd |d dd |d dd |d dd |ddd dS)Nr z--path)defaultz --newversionVERSION)r[metavarz--patchF store_true)r[actionz--rcz--postz--devz--create) add_argument)rYs rW_add_update_argsrasNN9NN8TN***NN>4NCCCNN9eLNAAANN65N>>>NN8Ut}|d}|d}t|||}t |j|j|j|j |j |j |j |j dS)z0 Entrypoint of the `incremental` script T)requiredupdater r r rrrrrN)radd_subparsers add_parserra parse_argsrXr r r rrrrr)rcrY subparsersupdate_pargss rW_mainrns A!!4!00J$$X..HX T""D Y?j 7 Y H{      rbc t}t|||}t|j|j|j|j|j|j |j |j td)z7 Entrypoint for `python -m incremental.update` rgr) rrarjrXr r r rrrrr SystemExit)rcrYrms rWrunrqs{ AQ T""D Y?j 7 Y H{     Q--rb__main__)N)r(r&argparsertypingrrrr incrementalrr r rAr3printstrboolr)objectrXrarnrq__name__rbrWr|s  ######444444444444==========  &*+/).x x x 3-x  x   x x  x  x  x  HM "x hr3w' (x  fXv% &x  x x x x vCC4CCCC#'4.hx}%( zCEEEEErb