ó
    �œ‘h  ã                   ó6   • S r SSKrSSKrSSKJr  S rS rS rg)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                  ó˜   • Sn Sn[         R                  " X-   S-   [        R                  5      n[	        US L[        R                  5        g )Nz/^[0-9]+\.[0-9]+\.[0-9]+(a[0-9]|b[0-9]|rc[0-9])?z'(\.dev[0-9]+(\+git[0-9]+\.[0-9a-f]+)?)?Ú$)ÚreÚmatchÚnpÚ__version__r   )Úversion_patternÚ
dev_suffixÚress      ÚbC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\numpy/tests/test_numpy_version.pyÚtest_valid_numpy_versionr      s=   € ð I€OØ;€JÜ
�(Š(�?Ñ/°#Ñ5´r·~±~Ó
F€CäˆC�tˆOœRŸ^™^Õ,ó    c                  ó<  • [         R                  R                  (       a6  [        [         R                  [         R                  R
                  :H  S5        g [        [         R                  R                  S5      S   [         R                  R
                  :H  S5        g )Nz)short_version mismatch in release versionÚ+r   z-short_version mismatch in development version)r   ÚversionÚreleaser   r	   Úshort_versionÚsplit© r   r   Útest_short_versionr   "   sb   € ä	‡z�z××Ü”—‘¤"§*¡*×":Ñ":Ñ:Ø;õ	=ô 	”—‘×$Ñ$ SÓ)¨!Ñ,´·
±
×0HÑ0HÑHØ?õ	Ar   c                  ó¤   • [        [        R                  5       V s1 s H  o R                  S5      (       a  M  U iM     nn 1 SknX:X  d   eg s  sn f )NÚ_>   r   r   Úfull_versionÚgit_revisionr   )Údirr   r   Ú
startswith)ÚsÚcontentsÚexpecteds      r   Útest_version_moduler!   ,   sB   € ÜœrŸz™zœ?ÓDš?�a·,±,¸s×2C—™?€HÐDò€Hð ÓÐÑùò Es
   œA¹A)	Ú__doc__r   Únumpyr   Únumpy.testingr   r   r   r!   r   r   r   Ú<module>r%      s%   ðñó" 
ã Ý !ò-òAó
 r   