
    Zf                     b   d dl Z d dlZd dlZd dlmZmZ  e j                  dd      Z edd       edd       ed	d
       edd       edd       edd       edd       edd       edd       edd       edd       edd       edd       edd        ed!d"       ed#d$       ed%d&       ed'd(       ed)d*       ed+d,       ed-d.       ed/d0       ed1d2       ed3d4       ed5d6       ed7d8      fZd9 Z	d: Z
 e	       \  ZZd;j                  ee<      Zd=j                  ee<      Zy)>    N)PackageNotFoundErrormetadataTagzversion datez1.6.0z
2024-05-09z1.5.3z
2023-11-23z1.5.2z
2023-08-09z1.5.1z
2023-01-03z1.5.0z
2022-11-18z1.4.1z
2022-08-15z1.4.0z
2022-08-04z1.3.3z
2022-04-14z1.3.2z
2021-11-21z1.3.1z
2021-08-02z1.3.0z
2021-03-06z1.2.3z
2020-07-14z1.2.2z
2020-04-27z1.2.1z
2020-03-30z1.2.0z
2020-01-03z1.2betaz
2019-08-08z1.2alphaz
2019-07-28z1.1.2z
2019-05-14z1.1.1z
2019-05-08z1.1.0z
2019-04-24z1.0.0z
2018-11-07z0.4.0z
2018-03-11z0.3.0z
2017-06-03z0.2.1z
2017-03-11z0.2.0z
2016-07-14z0.1.0z
2015-11-23c                     t        j                         } t        j                  t         j                  j	                  t         j                  j	                  t
                           	 d}t        j                  |j                         t        j                        }|j                  d      j                         dd }d|v r|j                  d      dd \  }}|d| z  }d	}t        j                  |j                         t        j                        }|j                  d      j                         }t        j                  |        ||fS #  t        d
   j                  }t        d
   j                  }Y CxY w)z0Grab version and its date from a git repository.zgit describe --tags)stderrzutf-8   N-   z.postz$git log -1 --date=short --format=%cdr   )osgetcwdchdirpathdirname__file__
subprocesscheck_outputsplitDEVNULLdecodestriprelease_historyversiondate)dir_origcmdr   
num_commitversion_dates        G/home/exouser/operations/rsmas_insar/tools/MintPy/src/mintpy/version.pyget_version_infor   -   s)    yy{HHHRWW__RWW__X678/#))#))+j>P>PQ..)//1!"5'>")--"4Ra"8GZzl++G4!..syy{:CUCUV#**7399; HHXL  /!!$,,&q)..s   )CE (E:c                      	 t         j                  j                  t         j                  j                  t                    } t        |       }|d   }|dfS # t        $ r t        d       d}Y |dfS w xY w)zGrab the version and its date from a git repository.
    Note by Yunjun on 5 Dec 2023: could not grab release/commit date info
        using importlib, thus, return None always.
    Versionzpackage is not installed!
Please follow the installation instructions in the README.md.
Or, to just get the version number, use:
   python -m setuptools_scmN)r   r   basenamer   r   r   r   print)package_namepackager   s      r   get_version_info_v2r&   I   sw    
	ww''(AB<()$ D=    ( 	) D=s   AA A21A2zMintPy version {v}, date {d})vda  
___________________________________________________________

  /##      /## /##             /##     /#######
 | ###    /###|__/            | ##    | ##__  ##
 | ####  /#### /## /#######  /######  | ##  \ ## /##   /##
 | ## ##/## ##| ##| ##__  ##|_  ##_/  | #######/| ##  | ##
 | ##  ###| ##| ##| ##  \ ##  | ##    | ##____/ | ##  | ##
 | ##\  # | ##| ##| ##  | ##  | ## /##| ##      | ##  | ##
 | ## \/  | ##| ##| ##  | ##  |  ####/| ##      |  #######
 |__/     |__/|__/|__/  |__/   \___/  |__/       \____  ##
                                                 /##  | ##
                                                |  ######/
   Miami InSAR Time-series software in Python    \______/
          MintPy {v}, {d}
___________________________________________________________
)collectionsr   r   importlib.metadatar   r   
namedtupler   r   r   r&   r   r   formatversion_descriptionlogo     r   <module>r1      s    	  = kUN3	< 
L!5:!8& )* 8?? @    FWF%! r0   