bg DddlmZddlZddlmZddlmZdZd dZ dZ dS) )absolute_importN) text_type)InvalidGitRepository) fetch_git_shafetch_package_versionc|stj|dd}tj|st d|t |d5}t |}dddn #1swxYwY| dr6|dd}tjj|dg| dR}n%|Stj|dd d |}tj|s?tjtj|dst |d tj|dd }tj|rt |5}|D]r}| }|rZ|dd dvrN | dd \}} n#t$rYKwxYw| |krt |ccdddSs dddn #1swxYwYt d|dt |5}t |cdddS#1swxYwYdS)z6 >>> fetch_git_sha(os.path.dirname(__file__)) z.gitHEADz+Cannot identify HEAD for git repository at rNzref: /refsheadsz1 does not seem to be the root of a git repositoryz packed-refsr)#^ zUnable to find ref to head "z" in repository) ospathjoinexistsropenrreadstrip startswithsplitrstrip ValueError) rhead head_pathfp revision_file packed_filefhlinerevisionrefs G/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/versioning.pyrr s JGLLvv66 w~~i(( K&&CG4IKK K)S ! ! 0RRWWYY''--//D 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ??7 # # 8DGLf#zz#MMK T667DII 7>>- ( (Gw~~bgll48899 Q&IMOQQ Q gll4?? 7>>+ & & 7k"" 7b77D;;==D7RaR : :%,0JJsA,>,>MHcc)%%%$H%$;;#,X#6#666 7 7 7 7 7 7 7 77 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7#"?Ctt EGG G m  ,##))++,,,,,,,,,,,,,,,,,,s`%4B%%B),B)'I!H I! H-*I!,H--I!I!!I%(I%3KKKc ddl}n#t$rtdwxYw||}|jS)z- >>> fetch_package_version('sentry') rNz5pkg_resources is not available on this Python install) pkg_resources ImportErrorNotImplementedErrorget_distributionversion) dist_namer)dists r'rr=sg<  <<<!#;<< <<  ) )) 4 4D <s!)N) __future__ros.pathrraven.utils.compatr exceptionsr__all__rrr'r7sw&&&&&&((((((,,,,,, 4/,/,/,/,d     r6