§
    €Ûg'  ã                   ó2   — d Z ddlZddlZddlmZ d„ Zd„ ZdS )aY  
Check the numpy version is valid.

Note that a development version is marked by the presence of 'dev0' or '+'
in the version string, all else is treated as a release. The version string
itself is set from the output of ``git describe`` which relies on tags.

Examples
--------

Valid Development: 1.22.0.dev0 1.22.0.dev0+5-g7999db4df2 1.22.0+5-g7999db4df2
Valid Release: 1.21.0.rc1, 1.21.0.b1, 1.21.0
Invalid: 1.22.0.dev, 1.22.0.dev0-5-g7999db4dfB, 1.21.0.d1, 1.21.a

Note that a release is determined by the version string, which in turn
is controlled by the result of the ``git describe`` command.
é    N)Úassert_c                  óø   — d} d}t           j        j        r#t          j        | dz   t           j        ¦  «        }n%t          j        | |z   dz   t           j        ¦  «        }t          |d ut           j        ¦  «         d S )Nz/^[0-9]+\.[0-9]+\.[0-9]+(a[0-9]|b[0-9]|rc[0-9]|)z (\.dev0|)(\+[0-9]*\.g[0-9a-f]+|)ú$)ÚnpÚversionÚreleaseÚreÚmatchÚ__version__r   )Úversion_patternÚ
dev_suffixÚress      úT/granary/edev/quantum/lib/python3.11/site-packages/numpy/tests/test_numpy_version.pyÚtest_valid_numpy_versionr      sp   € ð I€OØ4€JÝ	„zÔð KÝŒh�¨Ñ,­b¬nÑ=Ô=ˆˆåŒh�¨Ñ3°cÑ9½2¼>ÑJÔJˆåˆC�tˆO�Rœ^Ñ,Ô,Ð,Ð,Ð,ó    c                  ó  — t           j        j        r/t          t           j        t           j        j        k    d¦  «         d S t          t           j                             d¦  «        d         t           j        j        k    d¦  «         d S )Nz)short_version mismatch in release versionú+r   z-short_version mismatch in development version)r   r   r   r   r   Úshort_versionÚsplit© r   r   Útest_short_versionr   %   s„   € å	„zÔð AÝ•”¥"¤*Ô":Ò:Ø;ñ	=ô 	=ð 	=ð 	=ð 	=õ 	•”×$Ò$ SÑ)Ô)¨!Ô,µ´
Ô0HÒHØ?ñ	Aô 	Að 	Að 	Að 	Ar   )Ú__doc__r	   Únumpyr   Únumpy.testingr   r   r   r   r   r   ú<module>r      se   ððð ð" 
€	€	€	à Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !ð
-ð 
-ð 
-ðAð Að Að Að Ar   