
    DIec              
         d Z ddlmZ ddlZddlZddlmZ ddlm	Z	 ddl
mZ  e	e          Zd%dZd Z ej        d          Z ej        d          Zi Z G d de          Z G d de          ZdZd Zd&dZd Z ej        d          Z ej        d          Zej        ej        ej        ej         ej!        ej"        d d ed	Z# e$d          Z% G d d           Z& G d! d"e&e          Z'e'Z( G d# d$e&e          Z)dS )'zImplements the version spec with parsing and comparison logic.

Object inheritance:

.. autoapi-inheritance-diagram:: BaseSpec VersionSpec BuildNumberMatch
   :top-classes: conda.models.version.BaseSpec
   :parts: 1
    )annotationsN)zip_longest)	getLogger   )InvalidVersionSpecversionstrreturnVersionOrderc                     t          |           S )z6Parse a version string and return VersionOrder object.)r   )r   s    4lib/python3.11/site-packages/conda/models/version.pynormalized_versionr      s           c                F    t          |                              |           S N)VersionSpecmatch)vtestspecs     r   ver_evalr      s    t""5)))r   z^[\*\.\+!_0-9a-z]+$z([0-9]+|[*]+|[^0-9*]+)c                       e Zd Z fdZ xZS )SingleStrArgCachingTypec                *   t          ||           r|S t          |t                    rK	 | j        |         S # t          $ r0 t	                                          |          x}| j        |<   |cY S w xY wt	                                          |          S r   )
isinstancer	   _cache_KeyErrorsuper__call__)clsargval	__class__s      r   r   z SingleStrArgCachingType.__call__&   s    c3 		)JS!! 	){3''   ).)9)9#)>)>>ck#&


 77##C(((s   7 7A10A1)__name__
__module____qualname__r   __classcell__r"   s   @r   r   r   %   s8        
) 
) 
) 
) 
) 
) 
) 
) 
)r   r   c                  X    e Zd ZdZi Zd Zd Zd Zd Zd Z	d Z
d Zd	 Zd
 Zd Zd ZdS )r   a  Implement an order relation between version strings.

    Version strings can contain the usual alphanumeric characters
    (A-Za-z0-9), separated into components by dots and underscores. Empty
    segments (i.e. two consecutive dots, a leading/trailing underscore)
    are not permitted. An optional epoch number - an integer
    followed by '!' - can proceed the actual version string
    (this is useful to indicate a change in the versioning
    scheme itself). Version comparison is case-insensitive.

    Conda supports six types of version strings:
    * Release versions contain only integers, e.g. '1.0', '2.3.5'.
    * Pre-release versions use additional letters such as 'a' or 'rc',
      for example '1.0a1', '1.2.beta3', '2.3.5rc3'.
    * Development versions are indicated by the string 'dev',
      for example '1.0dev42', '2.3.5.dev12'.
    * Post-release versions are indicated by the string 'post',
      for example '1.0post1', '2.3.5.post2'.
    * Tagged versions have a suffix that specifies a particular
      property of interest, e.g. '1.1.parallel'. Tags can be added
      to any of the preceding four types. As far as sorting is concerned,
      tags are treated like strings in pre-release versions.
    * An optional local version string separated by '+' can be appended
      to the main (upstream) version string. It is only considered
      in comparisons when the main versions are equal, but otherwise
      handled in exactly the same manner.

    To obtain a predictable version ordering, it is crucial to keep the
    version number scheme of a given package consistent over time.
    Specifically,
    * version strings should always have the same number of components
      (except for an optional tag suffix or local version string),
    * letters/strings indicating non-release versions should always
      occur at the same position.

    Before comparison, version strings are parsed as follows:
    * They are first split into epoch, version number, and local version
      number at '!' and '+' respectively. If there is no '!', the epoch is
      set to 0. If there is no '+', the local version is empty.
    * The version part is then split into components at '.' and '_'.
    * Each component is split again into runs of numerals and non-numerals
    * Subcomponents containing only numerals are converted to integers.
    * Strings are converted to lower case, with special treatment for 'dev'
      and 'post'.
    * When a component starts with a letter, the fillvalue 0 is inserted
      to keep numbers and strings in phase, resulting in '1.1.a1' == 1.1.0a1'.
    * The same is repeated for the local version part.

    Examples:
        1.2g.beta15.rc  =>  [[0], [1], [2, 'g'], [0, 'beta', 15], [0, 'rc']]
        1!2.15.1_ALPHA  =>  [[1], [2], [15], [1, '_alpha']]

    The resulting lists are compared lexicographically, where the following
    rules are applied to each pair of corresponding subcomponents:
    * integers are compared numerically
    * strings are compared lexicographically, case-insensitive
    * strings are smaller than integers, except
    * 'dev' versions are smaller than all corresponding versions of other types
    * 'post' versions are greater than all corresponding versions of other types
    * if a subcomponent has no correspondent, the missing correspondent is
      treated as integer 0 to ensure '1.1' == '1.1.0'.

    The resulting order is:
           0.4
         < 0.4.0
         < 0.4.1.rc
        == 0.4.1.RC   # case-insensitive comparison
         < 0.4.1
         < 0.5a1
         < 0.5b3
         < 0.5C1      # case-insensitive comparison
         < 0.5
         < 0.9.6
         < 0.960923
         < 1.0
         < 1.1dev1    # special case 'dev'
         < 1.1_       # appended underscore is special case for openssl-like versions
         < 1.1a1
         < 1.1.0dev1  # special case 'dev'
        == 1.1.dev1   # 0 is inserted before string
         < 1.1.a1
         < 1.1.0rc1
         < 1.1.0
        == 1.1
         < 1.1.0post1 # special case 'post'
        == 1.1.post1  # 0 is inserted before string
         < 1.1post1   # special case 'post'
         < 1996.07.12
         < 1!0.4.1    # epoch increased
         < 1!3.1.1.6
         < 2!0.4.1    # epoch increased again

    Some packages (most notably openssl) have incompatible version conventions.
    In particular, openssl interprets letters as version counters rather than
    pre-release identifiers. For openssl, the relation

      1.0.1 < 1.0.1a  =>  False  # should be true for openssl

    holds, whereas conda packages use the opposite ordering. You can work-around
    this problem by appending an underscore to plain version numbers:

      1.0.1_ < 1.0.1a =>  True   # ensure correct ordering for openssl
    c                B   |                                                                                                 }|dk    rt          |d          t                              |           }|r9d|v r5d|vr1|                    dd          }t                              |           }|rt          |d          || _        d| _        |	                    d          }t          |          dk    rd	g}nWt          |          d
k    r4|d                                         st          |d          |d         g}nt          |d          |d         	                    d          }t          |          dk    rg | _        nXt          |          d
k    r5|d                             dd          	                    d          | _        nt          |d          |d         dk    rt          |d          |d         d         dk    rH|d         d d                             dd          	                    d          }|dxx         dz  cc<   n/|d                             dd          	                    d          }||z   | _        | j        | j        fD ]
}t          t          |                    D ]}t                              ||                   }|st          |d          t          t          |                    D ]e}	||	                                         rt#          ||	                   ||	<   5||	         dk    rt%          d          ||	<   T||	         dk    rd||	<   f||         d                                         r|||<   | j        g|z   ||<   d S )N zempty version string-_zinvalid character(s)r   !   0r   zepoch must be an integerzduplicated epoch separator '!'+.z&duplicated local version separator '+'z2Missing version before local version separator '+'zempty version componentpostinfdevDEV)striprstriplowerr   version_check_rer   replacenorm_version	fillvaluesplitlenisdigitlocalr   rangeversion_split_refindallintfloat)
selfvstrr   invalidepochsplit_versionvkcjs
             r   __init__zVersionOrder.__init__   s   **,,%%''--//b==$T+ABBB&,,W555 	:sg~~#W*<*< ooc3//G*00999G 	C$T+ABBB $ --$$w<<1EEE\\Q1:%%'' K(/IJJJQZLEE$T+KLLL "+##C((w<<1DJJ\\Q ++C55;;C@@DJJ$T+STTT 1:$J   1:b>S   $AJssO33C==CCCHHM"$#AJ..sC88>>sCCM}, ,
+ 	0 	0A3q66]] 0 0$,,QqT22 N,T3LMMMs1vv 	% 	%At||~~ %"1Q4yy!1$U||!1  %!Q47??$$ 0AaDD !N+a/AaDD'0	0 	0r   c                    | j         S r   )r<   rG   s    r   __str__zVersionOrder.__str__   s      r   c                &    | j         j         d|  dS )Nz("z"))r"   r#   rR   s    r   __repr__zVersionOrder.__repr__   s    .)55T5555r   c                    t          ||g           D ],\  }}t          ||| j                  D ]\  }}||k    r  dS -dS )Nr=   FT)r   r=   )rG   t1t2v1v2c1c2s          r   _eqzVersionOrder._eq   sk    !"bB777 	! 	!FB%b"GGG ! !B88 555 ! tr   c                    |                      | j        |j                  o|                      | j        |j                  S r   )r^   r   rA   rG   others     r   __eq__zVersionOrder.__eq__  s:    xxem44 
J:
 :
 	
r   c                   |j         r1|                     | j        |j                  sdS | j         }|j         }n| j        }|j        }t          |          dz
  }|                     |d |         |d |                   sdS t          |          |k    rg n||         }||         }t          |          dz
  }|                     |d |         g|d |         g          sdS t          |          |k    r| j        n||         }||         }t          |t                    r*t          |t                    o|                    |          S ||k    S )NFr.   )rA   r^   r   r?   r=   r   r	   
startswith)	rG   ra   rX   rY   ntrZ   r[   r\   r]   s	            r   rd   zVersionOrder.startswith  sG   ; 	88DL%-88 uBBBBBWWq[xx3B3CRC)) 	5r77b==RRbfVWWq[xxCRC	BssG9-- 	5"2ww"}}T^^"R&Vb# 	=b#&&<2==+<+<<Rxr   c                    | |k     S r    r`   s     r   __ne__zVersionOrder.__ne__   s    EM""r   c                   t          | j        | j        g|j        |j        g          D ]\  }}t          ||g           D ]~\  }}t          ||| j                  D ]a\  }}||k    rt          |t                    rt          |t                    s   dS nt          |t                    r   dS ||k     c c c S dS )NrW   TF)zipr   rA   r   r=   r   r	   )rG   ra   rX   rY   rZ   r[   r\   r]   s           r   __lt__zVersionOrder.__lt__#  s    4<4u}ek6RSS 	# 	#FB%b";;; # #B)"bDNKKK # #FBRxx #B,, %)"c22 (#'4444( $B,, %$uuuu7NNNNNNN## ur   c                    || k     S r   rg   r`   s     r   __gt__zVersionOrder.__gt__5  s    t|r   c                    || k      S r   rg   r`   s     r   __le__zVersionOrder.__le__8  s    DL!!r   c                    | |k      S r   rg   r`   s     r   __ge__zVersionOrder.__ge__;  s    5L!!r   N)r#   r$   r%   __doc__r   rP   rS   rU   r^   rb   rd   rh   rk   rm   ro   rq   rg   r   r   r   r   3   s        f fP GV0 V0 V0p! ! !6 6 6  
 
 

  0# # #  $  " " "" " " " "r   )	metaclassz \s*\^[^$]*[$]|\s*[()|,]|[^()|,]+c                    t           t                    sJ t          j        t          d z            }g g  fd}|D ]}|                                }|dk    r! |d                               d           =|dk    r! |d                               d           d|dk    r                    d           |dk    r> |d           rd         dk    rt           d	                                           ĉ                    |           ډrt           d
z            st           d          d         S )aN  
    Examples:
        >>> treeify("1.2.3")
        '1.2.3'
        >>> treeify("1.2.3,>4.5.6")
        (',', '1.2.3', '>4.5.6')
        >>> treeify("1.2.3,4.5.6|<=7.8.9")
        ('|', (',', '1.2.3', '4.5.6'), '<=7.8.9')
        >>> treeify("(1.2.3|4.5.6),<=7.8.9")
        (',', ('|', '1.2.3', '4.5.6'), '<=7.8.9')
        >>> treeify("((1.5|((1.6|1.7), 1.8), 1.9 |2.0))|2.1")
        ('|', '1.5', (',', ('|', '1.6', '1.7'), '1.8', '1.9'), '2.0', '2.1')
        >>> treeify("1.5|(1.6|1.7),1.8,1.9|2.0|2.1")
        ('|', '1.5', (',', ('|', '1.6', '1.7'), '1.8', '1.9'), '2.0', '2.1')
    (%s)c                   rŉd         | vrt                    dk     rt          d                                          }                                }|d         |k    r
|dd          n|f}                                }|d         |k    r
|dd          n|f}                    |f|z   |z              rd         | vd S d S d S d S )Nr0   r   zcannot join single expressionr   r.   )r?   r   popappend)cstoprN   rleftoutputspec_strstacks       r   	apply_opsztreeify.<locals>.apply_ops^  s     	+b	..6{{Q(3RSSS		A

A 1!""A::<<D#Aw!||488$DMM1$+/***  	+b	.... 	+ 	+.. 	+ 	+r   |(,z|()r0   zexpression must start with '('z(unable to convert to expression tree: %sz%unable to determine version from specr   )	r   r	   rerD   VSPEC_TOKENSr7   rx   r   rw   )r}   tokensr   itemr|   r~   s   `   @@r   treeifyr   G  s   $ h$$$$$Zfx&788FFE+ + + + + + +&     zz||3;;IcNNNLLS[[IdOOOLLS[[LLS[[IcNNN UE"I,,(3STTTIIKKKKMM$ 
 @5H
 
 	
  T +RSSS!9r   Fc                8   t          | t                    r| d         dk    r<d                    t          fd| dd                             }|sdk    rd|z  }n9d                    t          fd| dd                             }dk    rd|z  }|S | S )	a  
    Examples:
        >>> untreeify('1.2.3')
        '1.2.3'
        >>> untreeify((',', '1.2.3', '>4.5.6'))
        '1.2.3,>4.5.6'
        >>> untreeify(('|', (',', '1.2.3', '4.5.6'), '<=7.8.9'))
        '(1.2.3,4.5.6)|<=7.8.9'
        >>> untreeify((',', ('|', '1.2.3', '4.5.6'), '<=7.8.9'))
        '(1.2.3|4.5.6),<=7.8.9'
        >>> untreeify(('|', '1.5', (',', ('|', '1.6', '1.7'), '1.8', '1.9'), '2.0', '2.1'))
        '1.5|((1.6|1.7),1.8,1.9)|2.0|2.1'
    r   r   c                ,    t          | dz             S )Nr.   )depth	untreeifyxr   s    r   <lambda>zuntreeify.<locals>.<lambda>  s    1EAI)F)F)F r   r.   Nru   r   c                .    t          | ddz             S )NTr.   )_inandr   r   r   s    r   r   zuntreeify.<locals>.<lambda>  s    i$eaiHHH r   )r   tuplejoinmap)r   r   r   ress     ` r   r   r     s     $ 7c>>((3FFFFQRRQQRRC #sl((HHHH$qrr(SS C qyysl
Kr   c           	         t          j        | |          o\|                     t          d                    t          |                              d          d d                                       S )Nr2   r0   )oprq   rd   r   r   r	   r>   r   ys     r   compatible_release_operatorr     s[    9Q?? q||SXXc!ffll3//45566    r   z(^(=|==|!=|<=|>=|<|>|~=)(?![=<>!~])(\S+)$z
.*[()|,^$]c                ,    |                      |          S r   rd   r   s     r   r   r     s    all1oo r   c                .    |                      |           S r   r   r   s     r   r   r     s    Q\\!__!4 r   )	==!=z<=>=<>=!=startswith~=)r   r   r   r-   ~c                      e Zd Zd Zed             Zd Zd Zd Zd Z	d Z
d Zed	             Zed
             Zd Zd Zd Zd Zd Zd Zd ZdS )BaseSpecc                0    || _         || _        || _        d S r   )r}   	_is_exactr   )rG   r}   matcheris_exacts       r   rP   zBaseSpec.__init__  s     !


r   c                    | j         S r   )r}   rR   s    r   r   zBaseSpec.spec  s
    }r   c                    | j         S r   )r   rR   s    r   r   zBaseSpec.is_exact  s
    ~r   c                ~    	 |j         }n*# t          $ r |                     |          j         }Y nw xY w| j         |k    S r   )r   AttributeErrorr"   )rG   ra   
other_specs      r   rb   zBaseSpec.__eq__  sP    	4JJ 	4 	4 	4..3JJJ	4yJ&&s   
 $11c                .    |                      |           S r   )rb   r`   s     r   rh   zBaseSpec.__ne__  s    ;;u%%%%r   c                *    t          | j                  S r   )hashr   rR   s    r   __hash__zBaseSpec.__hash__  s    DIr   c                    | j         S r   r   rR   s    r   rS   zBaseSpec.__str__  s
    yr   c                0    | j         j         d| j         dS )Nz('z'))r"   r#   r   rR   s    r   rU   zBaseSpec.__repr__  s     .)::TY::::r   c                    | j         S r   r   rR   s    r   	raw_valuezBaseSpec.raw_value  s
    yr   c                <    |                                  r| j        pd S r   )r   r   rR   s    r   exact_valuezBaseSpec.exact_value  s    }},4944r   c                    t                      r   )NotImplementedErrorr`   s     r   mergezBaseSpec.merge  s    !###r   c                P    t          | j                            |                    S r   )boolregexr   rG   r}   s     r   regex_matchzBaseSpec.regex_match  s     DJ$$X..///r   c                l    |                      t          t          |                    | j                  S r   )operator_funcr   r	   
matcher_vor   s     r   operator_matchzBaseSpec.operator_match  s(    !!,s8}}"="=tOOOr   c                D    t          fd| j        D                       S )Nc              3  B   K   | ]}|                               V  d S r   r   .0sr}   s     r   	<genexpr>z%BaseSpec.any_match.<locals>.<genexpr>  /      771778$$777777r   )anytupr   s    `r   	any_matchzBaseSpec.any_match  (    7777dh777777r   c                D    t          fd| j        D                       S )Nc              3  B   K   | ]}|                               V  d S r   r   r   s     r   r   z%BaseSpec.all_match.<locals>.<genexpr>  r   r   )allr   r   s    `r   	all_matchzBaseSpec.all_match  r   r   c                    | j         |k    S r   r   r   s     r   exact_matchzBaseSpec.exact_match  s    yH$$r   c                    dS )NTrg   r   s     r   always_true_matchzBaseSpec.always_true_match  s    tr   N)r#   r$   r%   rP   propertyr   r   rb   rh   r   rS   rU   r   r   r   r   r   r   r   r   r   rg   r   r   r   r     s:         
   X  ' ' '& & &    ; ; ;   X 5 5 X5$ $ $0 0 0P P P8 8 88 8 8% % %    r   r   c                  4     e Zd Zi Z fdZd Zd Zd Z xZS )r   c                    |                      |          \  }}}t                                          |||           d S r   get_matcherr   rP   rG   vspec	vspec_strr   r   r"   s        r   rP   zVersionSpec.__init__  ?    '+'7'7'>'>$	7HGX66666r   c                   t          |t                    r)t                              |          rt	          |          }t          |t
                    r}|}|d         dk    r| j        n| j        }t          d |dd          D                       }t          |d         ft          d |D                       z             }|| _	        |}d}|||fS t          |          
                                }|d         dk    s|d         d	k    rL|d         dk    s|d         d	k    rt          |d
          t          j        |          | _        | j        }d}nz|d         t           v r!t"                              |          }|t          |d          |                                \  }	}
|
dd          dk    rx|	dv r|
d d         }
ni|	dk    r|
d d         }
d}	nV|	dk    rt          |d          t&                              d                    |
|
d d                              |
d d         }
	 t,          |	         | _        n!# t0          $ r t          |d|	z            w xY wt3          |
          | _        | j        }|	dk    }nI|dk    r| j        }d}n8d|                    d          v rf|                    dd                              dd                              dd          }d|z  }t          j        |          | _        | j        }d}n|d         dk    rr|dd          dk    r|d d         dz   }|                    d                              d          }
t2          j        | _        t3          |
          | _        | j        }d}n=d|vr0t,          d         | _        t3          |          | _        | j        }d}n	| j         }d}|||fS )Nr   r   c              3  4   K   | ]}t          |          V  d S r   )r   )r   r   s     r   r   z*VersionSpec.get_matcher.<locals>.<genexpr>  s(      ??1A??????r   r.   c              3  $   K   | ]}|j         V  d S r   r   )r   ts     r   r   z*VersionSpec.get_matcher.<locals>.<genexpr>  s$      :O:Oa16:O:O:O:O:O:Or   F^r0   $0regex specs must start with '^' and end with '$'invalid operatorz.*)r   r   r   r   r   zinvalid operator with '.*'zUsing .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was {}, but conda is ignoring the .* and treating it as {}invalid operator: %sr   *r2   z\.r1   z\+z^(?:%s)$@T)!r   r	   regex_split_rer   r   r   r   r   r   r   r7   r   r   compiler   r   OPERATOR_STARTversion_relation_regroupslogwarningformatOPERATOR_MAPr   r   r   r   r   r   r8   r;   rd   r   )rG   r   
vspec_tree_matcherr   r   r   r   moperator_strvo_strrxs               r   r   zVersionSpec.get_matcher  s2   eS!! 	#n&:&:5&A&A 	#ENNEeU## 	0J)3A#)=)=t~~4>H??
122?????C!:a="2U:O:O3:O:O:O5O5O"OPPIDHGHgx//JJ$$&&	Q<3)B-3"6"6|s""ims&:&:(T   I..DJ&GHHq\^++#)))44Ay(4FGGG#$88:: L&bcc{d"";..#CRC[FF!T))#CRC[F#1LL!T)),Y8TUUUKKQQWQW"F3B3KR R   $CRC[F%1,%?""   (5D   +622DO)G#t+HH#,GHHI$$S))))""3..66sEBBJJ3PUVVBr!BBDJ&GHHr]c!!~%%%crcNT1	 %%c**11#66F!-!8D*622DO)GHH	!!!-d!3D*955DO)GHH&GH'8++s   0I I!c                    t          || j                  sJ |                     d                    t          | j        |j        f                              S )Nr   )r   r"   r   sortedr   r`   s     r   r   zVersionSpec.merged  sI    %00000~~chhvt~u.O'P'PQQRRRr   c                    t          || j                  sJ | j        |j        h}d                    t	          |                    S Nr   )r   r"   r   r   r  rG   ra   optionss      r   unionzVersionSpec.unionh  sB    %00000>5?3 xxw(((r   )	r#   r$   r%   r   rP   r   r   r  r&   r'   s   @r   r   r      sq        G7 7 7 7 7[, [, [,zS S S) ) ) ) ) ) )r   r   c                  X     e Zd Zi Z fdZd Zd Zd Zed
d            Z	d Z
d	 Z xZS )BuildNumberMatchc                    |                      |          \  }}}t                                          |||           d S r   r   r   s        r   rP   zBuildNumberMatch.__init__w  r   r   c                   	 t          |          }| j        }d}|||fS # t          $ r Y nw xY wt          |                                          }|dk    r| j        }d}n|                    d          rt                              |          }|t          |d          |
                                \  }}	 t          |         | _        n!# t          $ r t          |d|z            w xY wt          |          | _        | j        }|dk    }nl|d         d	k    s|d
         dk    rK|d         d	k    s|d
         dk    rt          |d          t#          j        |          | _        | j        }d}n	| j        }d}|||fS )NTr   F)r   r   r   r-   r   r   r   r   r   r0   r   r   )rE   r   
ValueErrorr	   r7   r   rd   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )rG   r   r   r   r   r   r   r   s           r   r   zBuildNumberMatch.get_matcher{  s   	,JJE &GH'8++  	 	 	D	 JJ$$&&	,GHH!!"677 	#)))44Ay(4FGGG#$88:: L&%1,%?""   (5D   +622DO)G#t+HHq\S  IbMS$8$8|s""ims&:&:(T   I..DJ&GHH
 &GH'8++s    
,,:C C+c                n    | j         |j         k    rt          d| j         d|j                   | j         S )Nz"Incompatible component merge:
  - z
  - )r   r  r`   s     r   r   zBuildNumberMatch.merge  sC    >U_,,*>>>5??4   ~r   c                H    | j         |j         h}d                    |          S r  )r   r   r  s      r   r  zBuildNumberMatch.union  s"    >5?3xx   r   r
   
int | Nonec                N    	 t          | j                  S # t          $ r Y d S w xY wr   )rE   r   r  rR   s    r   r   zBuildNumberMatch.exact_value  s9    	t~&&& 	 	 	44	s    
$$c                *    t          | j                  S r   r	   r   rR   s    r   rS   zBuildNumberMatch.__str__      49~~r   c                *    t          | j                  S r   r  rR   s    r   rU   zBuildNumberMatch.__repr__  r  r   )r
   r  )r#   r$   r%   r   rP   r   r   r  r   r   rS   rU   r&   r'   s   @r   r
  r
  t  s        G7 7 7 7 7,, ,, ,,\  ! ! !    X        r   r
  )r   r	   r
   r   )Fr   )*rr   
__future__r   operatorr   r   	itertoolsr   loggingr   
exceptionsr   r#   r   r   r   r   r:   rC   version_cachetyper   r   r   r   r   r   r   r   rb   rh   ro   rq   rk   rm   r   	frozensetr   r   r   VersionMatchr
  rg   r   r   <module>r     s    # " " " " "     				 ! ! ! ! ! !       + + + + + +i! ! ! !
* * * 2:455 2:677 ) ) ) ) )d ) ) )I" I" I" I" I"4 I" I" I" I"\ A A AH   :   !bj!LMM M**
)
)
)
)			%	%44
%
 
 455; ; ; ; ; ; ; ;|m) m) m) m) m)(&= m) m) m) m)b L L L L Lx+B L L L L L Lr   