a
    ø£Be·  ã                   @   s   d Z ddlmZ ddd„ZdS )zN
Utilities for version comparison

It is a bit ridiculous that we need these.
é    )ÚVersionNc                 C   sL   z2|durt | ƒt |ƒk nd}t | ƒt |ƒko0|W S  tyF   Y dS 0 dS )aâ  check version string v >= min_v and v < max_v

    Parameters
    ----------
    v : str
        version of the package
    min_v : str
        minimal version supported
    max_v : str
        earliest version not supported
    Note: If dev/prerelease tags result in TypeError for string-number
    comparison, it is assumed that the check passes and the version dependency
    is satisfied. Users on dev branches are responsible for keeping their own
    packages up to date.
    NT)r   Ú	TypeError)ÚvZmin_vZmax_vZ	below_max© r   úZ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/nbconvert/utils/version.pyÚcheck_version   s
    r   )N)Ú__doc__Zpackaging.versionr   r   r   r   r   r   Ú<module>   s   	