?????????? ????????? - ??????????????? - /usr/lib64/python3.9/site-packages/numpy/tests/__pycache__/test_numpy_version.cpython-39.pyc
???????
a z[yc' � @ s4 d Z ddlZddlZddlmZ dd� Zdd� ZdS )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 C sN d} d}t jjr$t�| d t j�}nt�| | d t j�}t|d ut 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 )Zversion_patternZ dev_suffix�res� r �D/usr/lib64/python3.9/site-packages/numpy/tests/test_numpy_version.py�test_valid_numpy_version s r c C s@ t jjrtt jt jjkd� ntt j�d�d t jjkd� d S )Nz)short_version mismatch in release version�+r z-short_version mismatch in development version)r r r r r Z short_version�splitr r r r �test_short_version% s ��r )�__doc__r Znumpyr Z numpy.testingr r r r r r r �<module> s
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????