B
    Q†aY	  ã               @   sL   d dl Z d dlZddd„Zeƒ \ZZdjeedZdjeedZd	Zd
Z	dS )é    Núv1.3.1ú
2021-08-02c             C   s¾   t  ¡ }t  t j t j t¡¡¡ y|d}tj| ¡ tj	d} |  
d¡ ¡ } d| krv|  d¡dd… \} }| d |¡7 } d}tj| ¡ tj	d}| 
d¡ ¡ }W n   Y nX t  |¡ | |fS )	z@Grab version and date of the latest commit from a git repositoryzgit describe --tags)Ústderrzutf-8ú-Né   z-{}z$git log -1 --date=short --format=%cd)ÚosÚgetcwdÚchdirÚpathÚdirnameÚ__file__Ú
subprocessÚcheck_outputÚsplitÚDEVNULLÚdecodeÚstripÚformat)ÚversionÚdateZdir_origÚcmdZ
num_commit© r   úD/home/centos/operations/rsmas_insar/sources/MintPy/mintpy/version.pyÚget_release_info   s     
r   z,MintPy release version {v}, release date {d})ÚvÚda  
___________________________________________________________

  /##      /## /##             /##     /#######           
 | ###    /###|__/            | ##    | ##__  ##          
 | ####  /#### /## /#######  /######  | ##  \ ## /##   /##
 | ## ##/## ##| ##| ##__  ##|_  ##_/  | #######/| ##  | ##
 | ##  ###| ##| ##| ##  \ ##  | ##    | ##____/ | ##  | ##
 | ##\  # | ##| ##| ##  | ##  | ## /##| ##      | ##  | ##
 | ## \/  | ##| ##| ##  | ##  |  ####/| ##      |  #######
 |__/     |__/|__/|__/  |__/   \___/  |__/       \____  ##
                                                 /##  | ##
                                                |  ######/
   Miami InSAR Time-series software in Python    \______/ 
          MintPy {v}, {d}
___________________________________________________________
z"https://github.com/insarlab/MintPyz*Miami INsar Time-series software in PYthon)r   r   )
r   r   r   Úrelease_versionZrelease_dater   Úrelease_descriptionÚlogoZwebsiteÚdescriptionr   r   r   r   Ú<module>   s   

