
    ZPh
                        d Z ddlZddlZddlZddlmZ ddlZddlmZ ddl	m
Z
 ddlZej                             ej                    dk    p$ e
 ej                               e
d          k     d	          d
             ZdS )z:Tests for the minimum dependencies in the README.rst file.    N)Path)Requirement)parseWindowsz3.11z>This test is enough on unix system and requires Python >= 3.11)reasonc                  P   dd l } t          t          j        d                   j        d         dz  }t          |d          5 }|                     |          }d d d            n# 1 swxY w Y   d } |d|d         d          g          }|                     ||d         d                              g d	}|D ]2}|                     ||d         d
         |                              3t          j	        d          }t          t          j        d                   j        d         }	|	dz  }
t          j                            |
          st          j        d           |
                    d          5 }|D ]}|                    |          }|s|                    d          |                    d          }}|                                }|dk    rd}||v r*t%          |          }||         }||k    sJ | d            	 d d d            d S # 1 swxY w Y   d S )Nr   zpyproject.tomlrbc                     i }| D ]B}t          |          }|j        D ])}|j        dk    rt          |j                  ||j        <   *C|S )Nz>=)r   	specifieroperatorr   versionname)requirementsresultreqr   s       j/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/imblearn/utils/tests/test_min_dependencies.pyprocess_requirementsz:test_min_dependencies_readme.<locals>.process_requirements   sk     	@ 	@Cc""C ] @ @	%--',Y->'?'?F38$@     pythonprojectzrequires-pythondependencies)docsoptional
tensorflowkerastestszoptional-dependencieszN(\.\. \|)(([A-Za-z]+\-?)+)(MinVersion\| replace::)( [0-9]+\.[0-9]+(\.[0-9]+)?)z
README.rstz%The README.rst file is not available.r      scikitlearnzscikit-learnz has a mismatched version)tomllibr   imblearn__path__parentsopenloadupdaterecompileospathexistspytestskipmatchgrouplowerr   )r!   pyproject_pathfpyproject_datar   min_dependenciesmarkersmarker_namepatternreadme_pathreadme_filelinematchedpackager   min_versions                   r   test_min_dependencies_readmer?      s    NNN (+A.//7:=MMN	nd	#	# )q a) ) ) ) ) ) ) ) ) ) ) ) ) ) )   ,+	@.+,=>	@	@A  ^I6~FGG   CBBG 
 
  y)*AB;O 	
 	
 	
 	
 j	* G x(+,,4Q7K,K7>>+&& = 	;<<<			#		 U! 	U 	UDmmD))G &}}Q//q1A1AWGmmooG-''(***...w7+---'/T/T/T---	UU U U U U U U U U U U U U U U U U Us%   A$$A(+A(;BHH"H)__doc__r*   platformr(   pathlibr   r-   packaging.requirementsr   packaging.versionr   r"   markskipifsystempython_versionr?    r   r   <module>rJ      s    @ @ 				  				        . . . . . . # # # # # #  HO"Vee,CH,C,E,E&F&Fv&VK   CU CU	 CU CU CUr   