
    ~piGh                    l   U d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	 ddl
mZmZ ddlmZmZ ddlmZmZmZmZmZmZmZ dd	lmZ dd
lmZmZ ddlmZmZ ddl m!Z! ddl"m#Z# ddl$m%Z%m&Z& ddl'm(Z( ddl m)Z) erddl*m+Z+ ddl,m-Z- ddl.m/Z/ e0e1e2e1ef   f   Z3de4d<   	 e0e1e3f   Z5de4d<   	  eddd      Z6	 d-	 	 	 	 	 	 	 d.dZ7d/dZ8	 	 d0	 	 	 	 	 	 	 	 	 d1dZ9d2dZ:	 	 	 	 d3d Z;	 d4	 	 	 	 	 	 	 d5d!Z<d6d"Z= G d# d$ee6         Z> G d% d&e>d         Z? G d' d(e>d         Z@ G d) d*e(      ZA G d+ d,e(      ZBy)7a<  
Load setuptools configuration from ``setup.cfg`` files.

**API will be made private in the future**

To read project metadata, consider using
``build.util.project_wheel_metadata`` (https://pypi.org/project/build/).
For simple scenarios, you can also try parsing the file directly
with the help of ``configparser``.
    )annotationsN)abstractmethod)defaultdict)IterableIterator)partialwraps)TYPE_CHECKINGAnyCallableClassVarGenericTypeVarcast)default_environment)InvalidRequirementRequirement)InvalidVersionVersion   )_static)StrPath)	FileErrorOptionError)SetuptoolsDeprecationWarning   )expand)	TypeAliasDistribution)DistributionMetadatar   SingleCommandOptionsAllCommandOptionsTargetr    r!   c                v    ddl m}  |       }|r|j                         ng }t        || ||      }t	        |      S )a,  Read given configuration file and returns options from it as a dict.

    :param str|unicode filepath: Path to configuration file
        to get options from.

    :param bool find_others: Whether to search for other configuration files
        which could be on in various places.

    :param bool ignore_option_errors: Whether to silently ignore
        options, values of which could not be resolved (e.g. due to exceptions
        in directives such as file:, attr:, etc.).
        If False exceptions are propagated as expected.

    :rtype: dict
    r   r   )setuptools.distr    find_config_files_applyconfiguration_to_dict)filepathfind_othersignore_option_errorsr    dist	filenameshandlerss          \/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/setuptools/config/setupcfg.pyread_configurationr1   3   s<    $ ->D,7&&(RIdHi1EFH **    c                >    t        | |       | j                          | S )z`Apply the configuration from a ``setup.cfg`` file into an existing
    distribution object.
    )r(   _finalize_requires)r-   r*   s     r0   apply_configurationr5   M   s     4Kr2   c                D   ddl m} t        j                  j	                  |      }t        j                  j                  |      st        d| d      t        j                         }t        j                  t        j                  j                  |             g ||}	 |j                  | t        t        t           |             t        | | j                  |      }| j!                          t        j                  |       |S # t        j                  |       w xY w)zHRead configuration from ``filepath`` and applies to the ``dist`` object.r   )_DistributionzConfiguration file z does not exist.)r.   )r,   )r&   r7   ospathabspathisfiler   getcwdchdirdirnameparse_config_filesr   liststrparse_configurationcommand_options_finalize_license_files)r-   r*   other_filesr,   r7   current_directoryr.   r/   s           r0   r(   r(   V   s     .wwx(H77>>(#-hZ7GHII		HHRWW__X&'(+(x(I$((d3i9S(T&$&&=Q
 	$$&
"#O 	"#s   !AD Dc                j    d| }t        j                  t        | |      }t        | ||      } |       S )z
    Given a target object and option key, get that option from
    the target object, either through a get_{key} method or
    from an attribute directly.
    get_)	functoolsr   getattr)
target_objkeygetter_nameby_attributegetters        r0   _get_optionrP   u   s8     ,K$$Wj#>LZl;F8Or2   c                    t        t              }| D ];  }|j                  D ]*  }t        |j                  |      }|||j
                     |<   , = |S )zReturns configuration data gathered by given handlers as a dict.

    :param Iterable[ConfigHandler] handlers: Handlers list,
        usually from parse_configuration()

    :rtype: dict
    )r   dictset_optionsrP   rK   section_prefix)r/   config_dicthandleroptionvalues        r0   r)   r)      se     $D)K @)) 	@F 2 2F;E:?K../7	@@
 r2   c           	        t        j                  |       5 }t        | |||      }|j                          | j                  s|j                  | _        t        | j                  |||| j                  | j                        }|j                          | j                  j                  |j                  |j                         ddd       ||fS # 1 sw Y   fS xY w)a  Performs additional parsing of configuration options
    for a distribution.

    Returns a list of used option handlers.

    :param Distribution distribution:
    :param dict command_options:
    :param bool ignore_option_errors: Whether to silently ignore
        options, values of which could not be resolved (e.g. due to exceptions
        in directives such as file:, attr:, etc.).
        If False exceptions are propagated as expected.
    :rtype: list
    N)
r   EnsurePackagesDiscoveredConfigOptionsHandlerparsepackage_dirConfigMetadataHandlermetadatasrc_root_referenced_filesupdate)distributionrC   r,   ensure_discoveredoptionsmetas         r0   rB   rB      s    $ 
	(	(	6 
:K& 	
 	'''.':':L$$!! $$!!
 	

&&--%%t'='=	
+
2 =3
2 =s   B*CCc                l   d|v st              dk7  ryt               j                         }	 t        d         }|j                  |v rt
        j                  | d          yy# t        $ rD}t        fd|D              r&t
        j                  | d         }t        |      |Y d}~yd}~ww xY w)am  Because users sometimes misinterpret this configuration:

    [options.extras_require]
    foo = bar;python_version<"4"

    It looks like one requirement with an environment marker
    but because there is no newline, it's parsed as two requirements
    with a semicolon as separator.

    Therefore, if:
        * input string does not contain a newline AND
        * parsed result contains two requirements AND
        * parsing of the two parts from the result ("<first>;<second>")
        leads in a valid Requirement with a valid marker
    a UserWarning is shown to inform the user about the possible problem.
    
r   Nr   )fieldreqc              3  F   K   | ]  }d    j                  |        yw)r   N
startswith).0markerparseds     r0   	<genexpr>z8_warn_accidental_env_marker_misconfig.<locals>.<genexpr>   s      Bvay##F+Bs   !)
len
marker_envkeysr   name_AmbiguousMarkeremitr   anymessage)label
orig_valuerp   markersrj   exmsgs     `    r0   %_warn_accidental_env_marker_misconfigr      s    " zS[A-l!G2&)$88w!!6!9!=  2B'BB"**F1I*FC$S)r1 C2s   6A& &	B3/:B..B3c                     e Zd ZU dZded<   	 i Zded<   	 	 	 	 	 	 	 	 	 ddZe	 	 	 	 dd       Ze	e
dd              Zdd	Zedd
       Zed        Zed        Zed        ZddZddZed        Zed        Zedd       ZddZddZd Zy)ConfigHandlerz1Handles metadata supplied in configuration files.rA   rT   zClassVar[dict[str, str]]aliasesc                    || _         || _        t        | j                  |            | _        g | _        || _        t        t                  | _	        y N)
r,   rK   rR   _section_optionssectionsrS   rd   setrA   ra   )selfrK   re   r,   rd   s        r0   __init__zConfigHandler.__init__   sM     %9!",T227;<&(!2!$S	r2   c              #     K   |j                         D ]<  \  }}|j                  | j                        \  }}}|r(|j                  d      |f > y w)N.)items	partitionrT   lstrip)clsre   	full_namerX   pre_sepru   s          r0   r   zConfigHandler._section_options  sX      !( 	*Iu'11#2D2DEOCt++c"E))		*s   AAc                F    t        | j                  j                   d      ).Metadata item name to parser function mapping.z must provide .parsers property)NotImplementedError	__class____name__)r   s    r0   parserszConfigHandler.parsers  s'     "~~&&''FG
 	
r2   c                   | j                   }| j                  j                  ||      }	 t        ||      }|ry 	  | j                  j                  |d       |      }t        j                  |j                  |      }t        |d| |      } ||       | j                  j                  |       y # t        $ r}t        |      |d }~ww xY w# t        f| j                  z  $ r Y y w xY w)Nc                    | S r    )xs    r0   <lambda>z+ConfigHandler.__setitem__.<locals>.<lambda>(  s    Q r2   set_)rK   r   getrJ   AttributeErrorKeyErrorr   	Exceptionr,   rI   r   __setattr__rS   append)	r   option_namerX   rK   current_valueerp   simple_settersetters	            r0   __setitem__zConfigHandler.__setitem__  s    __
 ll&&{K@	/#J<M 	?T\\%%k;?FF "))**@*@+NtK=%9=Iv,!  	/;'Q.	/ |d777 		s(   B1 #C 1	C:CCC('C(c                    t        |t              r|S d|v r|j                         }n|j                  |      }|D cg c]#  }|j	                         s|j	                         % c}S c c}w )zRepresents value as a list.

        Value is split either by separator (defaults to comma) or by lines.

        :param value:
        :param separator: List items separator character.
        :rtype: list
        rh   )
isinstancer@   
splitlinessplitstrip)r   rX   	separatorchunks       r0   _parse_listzConfigHandler._parse_list2  sX     eT"L5=$$&EKK	*E+0B%EKKMBBBs   A(A(c                    d}i }| j                  |      D ]K  }|j                  |      \  }}}||k7  rt        d|       |j                         ||j                         <   M |S )zPRepresents value as a dict.

        :param value:
        :rtype: dict
        =z&Unable to parse option value to dict: )r   r   r   r   )r   rX   r   resultlinerL   sepvals           r0   _parse_dictzConfigHandler._parse_dictF  sr     	OOE* 	.D NN95MCci!$J5'"RSS"%))+F399;		. r2   c                *    |j                         }|dv S )zQRepresents value as boolean.

        :param value:
        :rtype: bool
        )1trueyes)lowerr   rX   s     r0   _parse_boolzConfigHandler._parse_boolW  s     ,,,r2   c                    fd}|S )zReturns a parser function to make sure field inputs
        are not files.

        Parses a value after getting the key so error messages are
        more informative.

        :param key:
        :rtype: callable
        c                r    d}| j                  |      rt        d d      t        j                  |       S )Nfile:z"Only strings are accepted for the z field, files are not accepted)rm   
ValueErrorr   Str)rX   exclude_directiverL   s     r0   parserz3ConfigHandler._exclude_files_parser.<locals>.parserm  sG     ' 12 8 >- -  ;;u%%r2   r   )r   rL   r   s    ` r0   _exclude_files_parserz#ConfigHandler._exclude_files_parsera  s    	& r2   c                |   d}t        |t              s|S |j                  |      st        j                  |      S |t        |      d }|j                  d      D cg c]  }|j                          }}| j                  j                  |       t        j                  t        j                  ||            S c c}w )aO  Represents value as a string, allowing including text
        from nearest files using `file:` directive.

        Directive is sandboxed and won't reach anything outside
        directory with setup.py.

        Examples:
            file: README.rst, CHANGELOG.md, src/file.txt

        :param str value:
        :rtype: str
        r   N,)r   rA   rm   r   r   rr   r   r   ra   rb   r   
read_files)r   rX   root_dirinclude_directivespecr9   	filepathss          r0   _parse_filezConfigHandler._parse_filex  s     $%%L 12;;u%%S*+-..2jjo>dTZZ\>	>%%i0{{6,,YABB ?s   B9c                    d}|j                  |      st        j                  |      S |j                  |d      }|j	                  | j
                  j                         t        j                  |||      S )zRepresents value as a module attribute.

        Examples:
            attr: package.attr
            attr: package.module.attr

        :param str value:
        :rtype: str
        zattr: )	rm   r   r   replacerb   rd   r]   r   	read_attr)r   rX   r]   r   attr_directive	attr_descs         r0   _parse_attrzConfigHandler._parse_attr  sg     !/;;u%%MM."5	 	411==>	;AAr2   c                    fd}|S )zReturns parser function to represents value as a list.

        Parses a value applying given methods one after another.

        :param parse_methods:
        :rtype: callable
        c                *    | }D ]
  } ||      } |S r   r   )rX   rp   methodparse_methodss      r0   r\   z1ConfigHandler._get_parser_compound.<locals>.parse  s'    F' (( Mr2   r   )r   r   r\   s    ` r0   _get_parser_compoundz"ConfigHandler._get_parser_compound  s    	 r2   c                X    i }|j                         D ]  \  }\  }} |||      ||<    |S )a  Parses section options into a dictionary.

        Applies a given parser to each option in a section.

        :param dict section_options:
        :param callable values_parser: function with 2 args corresponding to key, value
        :rtype: dict
        )r   )r   section_optionsvalues_parserrX   rL   _r   s          r0   _parse_section_to_dict_with_keyz-ConfigHandler._parse_section_to_dict_with_key  s>     ,224 	1MC!S&sC0E#J	1r2   Nc                <    rfdnd }| j                  ||      S )a   Parses section options into a dictionary.

        Optionally applies a given parser to each value.

        :param dict section_options:
        :param callable values_parser: function with 1 arg corresponding to option value
        :rtype: dict
        c                     |      S r   r   )r   vr   s     r0   r   z6ConfigHandler._parse_section_to_dict.<locals>.<lambda>  s    }Q/ r2   c                    |S r   r   )r   r   s     r0   r   z6ConfigHandler._parse_section_to_dict.<locals>.<lambda>  s    UV r2   )r   )r   r   r   r   s     ` r0   _parse_section_to_dictz$ConfigHandler._parse_section_to_dict  s#     5B/22?FKKr2   c                    |j                         D ]/  \  }\  }}t        j                  t              5  || |<   ddd       1 y# 1 sw Y   <xY w)zQParses configuration file section.

        :param dict section_options:
        N)r   
contextlibsuppressr   )r   r   ru   r   rX   s        r0   parse_sectionzConfigHandler.parse_section  sV    
 !0 5 5 7 	#D*1e$$X. #"T
# #	## #s   AA	c                    | j                   j                         D ]T  \  }}d}|rd| }t        | d| j                  dd      d      }|t	        d| j
                   d| d       ||       V y)	zTParses configuration file items from one
        or more related sections.

        r   r   r   r   __Nz*Unsupported distribution option section: [])r   r   rJ   r   r   rT   )r   section_namer   method_postfixsection_parser_methods        r0   r\   zConfigHandler.parse  s    
 .2]]-@-@-B 	3)L/N#$\N!35</088dC	6! %,!++,Al^1> 
 "/2%	3r2   c                6    t              fd       }|S )zthis function will wrap around parameters that are deprecated

        :param msg: deprecation message
        :param func: function to be wrapped around
        c                 f    j                  dd       t        j                  dfi   | i |S )N
stacklevelr   z Deprecated config in `setup.cfg`)
setdefault_DeprecatedConfigrw   )argskwargsfunckwr~   s     r0   config_handlerz@ConfigHandler._deprecated_config_handler.<locals>.config_handler  s7    MM,*""#EsQbQ(((r2   )r	   )r   r   r~   r   r   s    ``` r0   _deprecated_config_handlerz(ConfigHandler._deprecated_config_handler  s#     
t	) 
	)
 r2   )rK   r$   re   r#   rd   expand.EnsurePackagesDiscoveredreturnNone)re   r#   r   z*Iterator[tuple[str, SingleCommandOptions]]r   zdict[str, Callable]r   r   )r   )r   StrPath | None)r   r   r   )r   
__module____qualname____doc____annotations__r   r   classmethodr   propertyr   r   r   r   r   r   r   r   r   r   r   r   r   r\   r   r   r2   r0   r   r      s=   ;
 )+G%* #
 ; 
" *'*	3* * 
  
-4 C C&    - -  ,C6B(  &   
L 
L#32r2   r   c                       e Zd ZdZdddddZdZ	 dej                  f	 	 	 	 	 	 	 	 	 	 	 	 	 d fd	Ze	dd
       Z
d Z xZS )r^   r_   urldescriptionclassifiers	platforms)	home_pagesummary
classifierplatformFNc                F    t         |   ||||       || _        || _        y r   )superr   r]   r   )r   rK   re   r,   rd   r]   r   r   s          r0   r   zConfigMetadataHandler.__init__  s)     	W.BDUV& r2   c                V   | j                  | j                  t        j                        }| j                  | j                  t        j
                        }t        | j                  | j                        }| j                  }i dt        j                  dt        j                  dt        j                  dt        j                  d|d|d|d	|d
| j                  ||      d |d      d|d|d|dt        j                  d| j                  dt        j                  d|S )r   r   authorauthor_email
maintainermaintainer_emailr  keywordsprovides	obsoletesr  licenselicense_filesr
  long_descriptionlong_description_content_typeversionr	  project_urls)r   r   r   Listr   Dictr   r   r   r   r   _parse_version)r   parse_list_staticparse_dict_static
parse_fileexclude_files_parsers        r0   r   zConfigMetadataHandler.parsers'  sj    !55d6F6FU 55d6F6FUT--F
#99
gkk
GKK
 '++
 	

 *
 )
 )
 *
 444ZARS
 +I6
 .
 :
 

 ,W[[
 t**
  7;;!
" -#
 	
r2   c                :   | j                  || j                        }||k7  r|j                         }	 t        |       |S t        j                  | j                  || j                  | j                              S # t        $ r}t        d| d|       |d}~ww xY w)zSParses `version` option value.

        :param value:
        :rtype: str

        zVersion loaded from z does not comply with PEP 440: N)
r   r   r   r   r   r   r   r   r   r]   )r   rX   r   r   s       r0   r$  z$ConfigMetadataHandler._parse_versionC  s     ""5$--8emmoG  N~~d..ud6F6FVWW " !*5' 2,,396 s   A: :	BBB)rK   r!   re   r#   r,   boolrd   r   r]   zdict | Noner   r  r   r   r   )r   r  r  rT   r   strict_moder8   curdirr   r  r   r$  __classcell__r   s   @r0   r^   r^   
  s    N  #	G K $(#%99!(! #! #	!
 ;! !! !! 
! 
 
6Xr2   r^   c                       e Zd ZdZ	 	 	 	 	 	 	 	 	 	 d fdZed        Zd ZddZe	dd       Z
d Zd Zd	 Zdd
Zd ZddZddZddZddZ xZS )r[   re   c                Z    t         |   ||||       |j                  | _        i | _        y r   )r  r   r`   r   r]   )r   rK   re   r,   rd   r   s        r0   r   zConfigOptionsHandler.__init__`  s/     	W.BDUV"+++-r2   c                (    | j                  |d      S )N;)r   )r   r   s     r0   _parse_list_semicolonz*ConfigOptionsHandler._parse_list_semicolonk  s    u44r2   c                <    | j                  || j                        S )Nr  )r   r   )r   rX   s     r0   _parse_file_in_rootz(ConfigOptionsHandler._parse_file_in_rooto  s    >>r2   c                    | j                  | j                  |            }t        |||       t        j                  d |D              S )Nc              3  D   K   | ]  }|j                  d       r|  yw)#Nrl   )rn   r   s     r0   rq   z@ConfigOptionsHandler._parse_requirements_list.<locals>.<genexpr>x  s     PT4??3;ODPs     )r3  r5  r   r   r"  )r   rz   rX   rp   s       r0   _parse_requirements_listz-ConfigOptionsHandler._parse_requirements_listr  s@    ++D,D,DU,KL-eUFC ||PVPPPr2   c                    | j                   }| j                  }| j                  }||| j                  |||| j	                  |d      t        | j                  d      | j                  | j                  | j                  |t        j                  |dS )r   zeThe namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).install_requires)zip_safeinclude_package_datar]   scriptseager_resourcesdependency_linksnamespace_packagesr;  setup_requirespackagesentry_points
py_modulespython_requirescmdclass)r   r   _parse_cmdclassr   r   r   r9  r3  _parse_packagesr5  r   SpecifierSet)r   
parse_list
parse_boolparse_cmdclasss       r0   r   zConfigOptionsHandler.parsers{  s     %%
%%
-- #$.++!) *"&"A"AH# !(--/A! #88,, 44$&33&+
 	
r2   c                    | j                   j                  }t        j                  | j	                  |      || j
                        S r   )rd   r]   r   rG  r   r   )r   rX   r]   s      r0   rH  z$ConfigOptionsHandler._parse_cmdclass  s5    ,,88t//6T]]SSr2   c                0   ddg}|j                         }||vr| j                  |      S | j                  | j                  j	                  di             }|j                  ||d   k(  | j                  | j                         t        j                  di |S )zTParses `packages` option value.

        :param value:
        :rtype: list
        zfind:zfind_namespace:zpackages.findr   )
namespacesr   fill_package_dirr   )
r   r   parse_section_packages__findr   r   rb   r   r]   r   find_packages)r   rX   find_directivestrimmed_valuefind_kwargss        r0   rI  z$ConfigOptionsHandler._parse_packages  s     #$56/##E** 77MMor2
 	%);;]]!-- 	 	
 ##2k22r2   c                    | j                  || j                        }g d}|j                         D ci c]  \  }}||v s|s|| }}}|j                  d      }||d   |d<   |S c c}}w )zParses `packages.find` configuration file section.

        To be used in conjunction with _parse_packages().

        :param dict section_options:
        )whereincludeexcluderX  r   )r   r   r   r   )r   r   section_data
valid_keyskr   rV  rX  s           r0   rR  z1ConfigOptionsHandler.parse_section_packages__find  s|     22?DDTDTU4
(4(:(:(<V1ZTUq!tVV(#(8K  Ws   A)A)A)c                F    | j                  || j                        }|| d<   y)z`Parses `entry_points` configuration file section.

        :param dict section_options:
        rD  N)r   r   r   r   rp   s      r0   parse_section_entry_pointsz/ConfigOptionsHandler.parse_section_entry_points  s&    
 ,,_d>N>NO%^r2   c                d    | j                  || j                        }t        j                  |      S r   )r   r   r   canonic_package_data)r   r   package_datas      r0   _parse_package_dataz(ConfigOptionsHandler._parse_package_data  s+    22?DDTDTU**<88r2   c                ,    | j                  |      | d<   y)z`Parses `package_data` configuration file section.

        :param dict section_options:
        rc  Nrd  r   r   s     r0   parse_section_package_dataz/ConfigOptionsHandler.parse_section_package_data  s    
  $77H^r2   c                ,    | j                  |      | d<   y)zhParses `exclude_package_data` configuration file section.

        :param dict section_options:
        exclude_package_dataNrf  rg  s     r0   "parse_section_exclude_package_dataz7ConfigOptionsHandler.parse_section_exclude_package_data  s    
 (,'?'?'P#$r2   c                `      j                  | fd      }t        j                  |       d<   y)zbParses `extras_require` configuration file section.

        :param dict section_options:
        c                0    j                  d|  d|      S )Nzextras_require[r   )r9  )r]  r   r   s     r0   r   zCConfigOptionsHandler.parse_section_extras_require.<locals>.<lambda>  s    6617MqQ r2   extras_requireN)r   r   r#  r_  s   `  r0   parse_section_extras_requirez1ConfigOptionsHandler.parse_section_extras_require  s1    
 55Q

 ")f!5r2   c                    | j                  || j                        }t        j                  || j                        | d<   y)z^Parses `data_files` configuration file section.

        :param dict section_options:
        
data_filesN)r   r   r   canonic_data_filesr   r_  s      r0   parse_section_data_filesz-ConfigOptionsHandler.parse_section_data_files  s7    
 ,,_d>N>NO#66vt}}M\r2   )
rK   r    re   r#   r,   r*  rd   r   r   r   )rz   rA   rX   rA   r   r   )r   r  r  rT   r   r  r3  r5  r9  r  r   rH  rI  rR  r`  rd  rh  rk  ro  rs  r-  r.  s   @r0   r[   r[   ]  s    N	. 	. #	. #		.
 ;	. 
	. 5 5?Q 
 
<T32$&9IQ
6Nr2   r[   c                  (    e Zd ZdZdZdZed        Zy)rv   zAmbiguous requirement marker.z
    One of the parsed requirements in `{field}` looks like a valid environment marker:

        {req!r}

    Please make sure that the configuration file is correct.
    You can use dangling lines to avoid this problem.
    z'userguide/declarative_config.html#opt-2c                r    d| j                    }| j                  | j                  | j                  ||      S )Nz%https://setuptools.pypa.io/en/latest/)see_urlformat_args)	_SEE_DOCS_format_SUMMARY_DETAILS)r   r   docss      r0   ry   z_AmbiguousMarker.message  s2    6s}}oF{{3<<tQS{TTr2   N)r   r  r  rz  r{  rx  r  ry   r   r2   r0   rv   rv     s+    .HH :I U Ur2   rv   c                      e Zd ZdZy)r   z!userguide/declarative_config.htmlN)r   r  r  rx  r   r2   r0   r   r     s    3Ir2   r   )FF)r*   r   r+   r*  r,   r*  r   rR   )r-   r    r*   r   r   r    )r   F)
r-   r    r*   r   rE   zIterable[StrPath]r,   r*  r   2tuple[ConfigMetadataHandler, ConfigOptionsHandler])rK   z#Distribution | DistributionMetadatarL   rA   )r/   zKIterable[ConfigHandler[Distribution] | ConfigHandler[DistributionMetadata]]r   rR   )F)rc   r    rC   r#   r,   r*  r   r~  )rz   rA   r{   rA   rp   r@   )Cr  
__future__r   r   rI   r8   abcr   collectionsr   collections.abcr   r   r   r	   typingr
   r   r   r   r   r   r   packaging.markersr   rs   packaging.requirementsr   r   packaging.versionr   r   r   r   _pathr   errorsr   r   warningsr   r   typing_extensionsr   r&   r    distutils.distr!   rR   rA   tupler"   r  r#   r$   r1   r5   r(   rP   r)   rB   r   r   r^   r[   rv   r   r   r2   r0   <module>r     s  	 #   	  # . $ Q Q Q ? B 5   + 3 +,3"&sE#s(O';"< i <
  $C)=$=> 9 > 	>+A	B PU++$(+HL+	+4 &(!&	
 # 	
 8>	 
	2 "'++&+ + 8	+\2@bGFO bJ	PXM*@A PXfYN=8 YNxU3 U(44 4r2   