PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
requirements_detector
/
poetry_semver
/
__pycache__
/
Editing: __init__.cpython-311.pyc
� � hI � �v � d dl Z ddlmZ ddlmZmZmZmZmZ ddl m Z ddlmZ ddl mZ ddlmZ d Zd � Zd� ZdS )� N� )�EmptyConstraint)�BASIC_CONSTRAINT�CARET_CONSTRAINT�TILDE_CONSTRAINT�TILDE_PEP440_CONSTRAINT�X_CONSTRAINT)�Version)�VersionConstraint)�VersionRange)�VersionUnionz0.1.0c � � | dk rt � � S t j d| � � � � � }g }|D ]�} t j d| � � }g }t |� � dk r(|D ]$}|� t |� � � � �%n(|� t |d � � � � t |� � dk r |d }n*|d }|dd � D ]}|� |� � }�|� |� � ��t |� � dk r|d S t j |� S )N�*z\s*\|\|?\s*z,(?<!^)(?<![=>< ,]) *(?<!-)[, ](?!-) *(?!,|$)r r ) r �re�split�strip�len�append�parse_single_constraint� intersectr �of)�constraints�or_constraints� or_groups�and_constraints�constraint_objects� constraint�next_constraints �}/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/requirements_detector/poetry_semver/__init__.py�parse_constraintr sg � ��c����~�~���X�n�k�.?�.?�.A�.A�B�B�N��I�%� %� %���(�#Q�S^�_�_��������!�#�#�-� O� O� �"�)�)�*A�*�*M�*M�N�N�N�N� O� �%�%�&=�o�a�>P�&Q�&Q�R�R�R��!�"�"�a�'�'�+�A�.�J�J�+�A�.�J�#5�a�b�b�#9� C� C��'�1�1�/�B�B� � �����$�$�$�$� �9�~�~������|���� �*�*� c �j � t j d| � � }|rt � � S t j | � � }|r�t j |� d� � � � }|j j }t |� d� � � d� � � � dk r|j j }t ||dd�� � S t j | � � }|r�d}|� d� � r|dz }|� d� � r|dz }t j |� d� � � � }|dk r|}|j j }n,t |j |j |j � � }|j j }t ||dd�� � S t! j | � � }|r?t j |� d� � � � }t ||j dd�� � S t% j | � � }|r�|� d� � }t'