+
    ei  c                   s8    R t ^ RIt^ RIt^ RIHt R tR tR tR# )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    R p Rp\         P                  ! W,           R,           \        P                  4      p\	        VRJ\        P                  4       R# )z/^[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]+)?)?Z$N)reZmatchnp__version__r    )Zversion_patternZ
dev_suffixZres      E/usr/lib64/python3.14/site-packages/numpy/tests/test_numpy_version.pytest_valid_numpy_versionr      s=     IO;J
((?/#5r~~
FCCtOR^^,    c                  sJ   \         P                  P                  '       d8   \        \         P                  \         P                  P
                  8H  R 4       R# \        \         P                  P                  R4      ^ ,          \         P                  P
                  8H  R4       R# )z)short_version mismatch in release versionZ+z-short_version mismatch in development versionN)r   versionreleaser    r   short_versionZsplit r   r   test_short_versionr   "   se    	zz"**":"::;	= 	$$S)!,

0H0HH?	Ar   c                  s    \        \        P                  4       U u0 uF  q P                  R 4      '       d   K  V kK  	  pp 0 RmpW8X  g   Q hR# u up i )Z_N>   r	   r   Zfull_versionZgit_revisionr
   )Zdirr   r   Z
startswith)ZsZcontentsZexpectedr   r   test_version_moduler   ,   sD    rzz?D?a,,s2C?HDH  Es
   AA)	Z__doc__r   Znumpyr   Znumpy.testingr    r   r   r   r   r   r   <module>r      s%   " 
  !-A
 r   