U
    aÊ¹jÉd  ã                   @  s4  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m	Z	 ddl
mZmZmZmZ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 dd
lmZ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/ ee0ee0ef f Z1de2d< ee0e1f Z3de2d< edddƒZ4dDdddddœdd „Z5dddd!œd"d#„Z6dEddd%dd&d'œd(d)„Z7d*d+d,œd-d.„Z8d/dd0œd1d2„Z9dFdddd&d3œd4d5„Z:d+d+d6d7œd8d9„Z;G d:d;„ d;ee4 ƒZ<G d<d=„ d=e<d ƒZ=G d>d?„ d?e<d ƒZ>G d@dA„ dAe'ƒZ?G dBdC„ dCe'ƒZ@dS )Ga<  
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)Údefaultdict)ÚpartialÚwraps)ÚTYPE_CHECKINGÚAnyÚCallableÚDictÚGenericÚIterableÚIteratorÚListÚTupleÚTypeVarÚcast)Údefault_environment)ÚInvalidRequirementÚRequirement)ÚSpecifierSet)ÚInvalidVersionÚVersioné   )ÚStrPath)Ú	FileErrorÚOptionError)ÚSetuptoolsDeprecationWarningé   )Úexpand)Ú	TypeAlias©ÚDistribution)ÚDistributionMetadatar   ÚSingleCommandOptionsÚAllCommandOptionsÚTargetr    r!   Fr   ÚboolÚdict)ÚfilepathÚfind_othersÚignore_option_errorsÚreturnc                 C  s8   ddl m} |ƒ }|r| ¡ 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)r'   r(   r)   r    ÚdistÚ	filenamesÚhandlers© r2   úY/var/www/html/bwave/python/venv/lib/python3.8/site-packages/setuptools/config/setupcfg.pyÚread_configuration=   s
    r4   )r/   r'   r*   c                 C  s   t | |ƒ |  ¡  | S )z`Apply the configuration from a ``setup.cfg`` file into an existing
    distribution object.
    )r-   Z_finalize_requires)r/   r'   r2   r2   r3   Úapply_configurationW   s    
r5   r2   zIterable[StrPath]z2tuple[ConfigMetadataHandler, ConfigOptionsHandler])r/   r'   Úother_filesr)   r*   c              	   C  sž   ddl m} tj |¡}tj |¡s4td|› d�ƒ‚t ¡ }t tj 	|¡¡ ||f•}z4|j
| ttt |ƒd� t| | j|d�}|  ¡  W 5 t |¡ X |S )zHRead configuration from ``filepath`` and applies to the ``dist`` object.r   )Ú_DistributionzConfiguration file z does not exist.)r0   )r)   )r+   r7   ÚosÚpathÚabspathÚisfiler   ÚgetcwdÚchdirÚdirnameÚparse_config_filesr   r   ÚstrÚparse_configurationÚcommand_optionsZ_finalize_license_files)r/   r'   r6   r)   r7   Zcurrent_directoryr0   r1   r2   r2   r3   r-   `   s"    
  ÿr-   z#Distribution | DistributionMetadatar@   )Ú
target_objÚkeyc                 C  s*   d|› �}t  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)rC   rD   Zgetter_nameZby_attributeÚgetterr2   r2   r3   Ú_get_option   s    
rI   zKIterable[ConfigHandler[Distribution] | ConfigHandler[DistributionMetadata]])r1   r*   c                 C  s<   t tƒ}| D ]*}|jD ]}t|j|ƒ}|||j |< qq|S )z¿Returns configuration data gathered by given handlers as a dict.

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

    :rtype: dict
    )r   r&   Úset_optionsrI   rC   Úsection_prefix)r1   Zconfig_dictÚhandlerÚoptionÚvaluer2   r2   r3   r.   ‹   s    
r.   )ÚdistributionrB   r)   r*   c              	   C  st   t  | ¡�\}t| |||ƒ}| ¡  | js0|j| _t| j|||| j| jƒ}| ¡  | j 	|j|j¡ W 5 Q R X ||fS )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
    )
r   ZEnsurePackagesDiscoveredÚConfigOptionsHandlerÚparseÚpackage_dirÚConfigMetadataHandlerÚmetadataÚsrc_rootÚ_referenced_filesÚupdate)rO   rB   r)   Úensure_discoveredÚoptionsÚmetar2   r2   r3   rA   ¡   s0    üú ÿrA   Úlist)ÚlabelÚ
orig_valueÚparsedc              
     s¨   d|kst ˆ ƒdkrdS tƒ  ¡ }z,tˆ d ƒ}|j|krLtj| ˆ d d� W nT tk
r¢ } z6t‡ fdd„|D ƒƒr’tj	| ˆ d d�}t|ƒ|‚W 5 d}~X Y nX dS )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  s   | ]}ˆ d    |¡V  qdS )r   N©Ú
startswith)Ú.0Úmarker©r^   r2   r3   Ú	<genexpr>ê   s     z8_warn_accidental_env_marker_misconfig.<locals>.<genexpr>)
ÚlenÚ
marker_envÚkeysr   ÚnameÚ_AmbiguousMarkerÚemitr   ÚanyÚmessage)r\   r]   r^   Úmarkersra   ÚexÚmsgr2   rf   r3   Ú%_warn_accidental_env_marker_misconfigÏ   s    

rs   c                   @  sø   e Zd ZU dZded< i Zded< dddd	œd
d„Zedddœdd„ƒZe	dd„ ƒZ
ddœdd„Zed3dd„ƒZedd„ ƒZedd„ ƒZedd„ ƒZdd œd!d"„Zd#d œd$d%„Zed&d'„ ƒZed(d)„ ƒZed4d+d,„ƒZd-d.„ Zddœd/d0„Zd1d2„ Zd*S )5ÚConfigHandlerz1Handles metadata supplied in configuration files.r@   rK   zdict[str, str]Úaliasesr$   r#   úexpand.EnsurePackagesDiscovered)rC   rY   rX   c                 C  s4   || _ || _t|  |¡ƒ| _g | _|| _tƒ | _d S ©N)	r)   rC   r&   Ú_section_optionsÚsectionsrJ   rX   ÚsetrV   ©ÚselfrC   rY   r)   rX   r2   r2   r3   Ú__init__ÿ   s    zConfigHandler.__init__z*Iterator[tuple[str, SingleCommandOptions]])rY   r*   c                 c  s>   |  ¡ D ]0\}}| | j¡\}}}|r(q| d¡|fV  qd S )NÚ.)ÚitemsÚ	partitionrK   Úlstrip)ÚclsrY   Z	full_namerN   ÚpreÚseprk   r2   r2   r3   rx     s
    zConfigHandler._section_optionsc                 C  s   t d| jj ƒ‚dS )ú.Metadata item name to parser function mapping.z!%s must provide .parsers propertyN)ÚNotImplementedErrorÚ	__class__Ú__name__©r|   r2   r2   r3   Úparsers  s    
ÿzConfigHandler.parsersÚNone)r*   c           	   
   C  sÊ   | j }| j ||¡}zt||ƒ}W n, tk
rN } zt|ƒ|‚W 5 d }~X Y nX |rXd S z| j |dd„ ¡|ƒ}W n tf| j k
r�   Y d S X t	 
|j|¡}t|d|› �|ƒ}||ƒ | j |¡ d S )Nc                 S  s   | S rw   r2   )Úxr2   r2   r3   Ú<lambda>1  ó    z+ConfigHandler.__setitem__.<locals>.<lambda>Úset_)rC   ru   ÚgetrG   ÚAttributeErrorÚKeyErrorrŠ   Ú	Exceptionr)   rF   r   Ú__setattr__rJ   Úappend)	r|   Zoption_namerN   rC   Úcurrent_valueÚer^   Zsimple_setterÚsetterr2   r2   r3   Ú__setitem__!  s     zConfigHandler.__setitem__ú,c                 C  s8   t |tƒr|S d|kr | ¡ }n
| |¡}dd„ |D ƒS )z×Represents 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
        r_   c                 S  s   g | ]}|  ¡ r|  ¡ ‘qS r2   ©Ústrip)rd   Úchunkr2   r2   r3   Ú
<listcomp>M  s      z-ConfigHandler._parse_list.<locals>.<listcomp>)Ú
isinstancer[   Ú
splitlinesÚsplit)r‚   rN   Ú	separatorr2   r2   r3   Ú_parse_list;  s    



zConfigHandler._parse_listc                 C  sR   d}i }|   |¡D ]:}| |¡\}}}||kr<td|› �ƒ‚| ¡ || ¡ < q|S )zPRepresents value as a dict.

        :param value:
        :rtype: dict
        ú=z&Unable to parse option value to dict: )r£   r€   r   rœ   )r‚   rN   r¢   ÚresultÚlinerD   r„   Úvalr2   r2   r3   Ú_parse_dictO  s    zConfigHandler._parse_dictc                 C  s   |  ¡ }|dkS )zQRepresents value as boolean.

        :param value:
        :rtype: bool
        )Ú1ÚtrueÚyes)Úlower©r‚   rN   r2   r2   r3   Ú_parse_bool`  s    zConfigHandler._parse_boolc                   s   ‡ fdd„}|S )zßReturns 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                   s"   d}|   |¡rtdˆ › d�ƒ‚| S )Núfile:z"Only strings are accepted for the z field, files are not accepted)rc   Ú
ValueError)rN   Zexclude_directive©rD   r2   r3   Úparserv  s    

ÿz3ConfigHandler._exclude_files_parser.<locals>.parserr2   )r‚   rD   r²   r2   r±   r3   Ú_exclude_files_parserj  s    	z#ConfigHandler._exclude_files_parserúStrPath | None©Úroot_dirc                 C  s\   d}t |tƒs|S | |¡s |S |t|ƒd… }dd„ | d¡D ƒ}| j |¡ t ||¡S )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¯   Nc                 S  s   g | ]}|  ¡ ‘qS r2   r›   )rd   r9   r2   r2   r3   rž   —  s     z-ConfigHandler._parse_file.<locals>.<listcomp>rš   )	rŸ   r@   rc   rh   r¡   rV   rW   r   Z
read_files)r|   rN   r¶   Zinclude_directiveÚspecZ	filepathsr2   r2   r3   Ú_parse_file�  s    

zConfigHandler._parse_filer   c                 C  s:   d}|  |¡s|S | |d¡}| | jj¡ t |||¡S )z·Represents value as a module attribute.

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

        :param str value:
        :rtype: str
        zattr:Ú )rc   ÚreplacerW   rX   rR   r   Z	read_attr)r|   rN   rR   r¶   Zattr_directiveZ	attr_descr2   r2   r3   Ú_parse_attr›  s    

zConfigHandler._parse_attrc                   s   ‡ fdd„}|S )z¹Returns parser function to represents value as a list.

        Parses a value applying given methods one after another.

        :param parse_methods:
        :rtype: callable
        c                   s   | }ˆ D ]}||ƒ}q|S rw   r2   )rN   r^   Úmethod©Úparse_methodsr2   r3   rQ   ¹  s    
z1ConfigHandler._get_parser_compound.<locals>.parser2   )r‚   r¾   rQ   r2   r½   r3   Ú_get_parser_compound¯  s    
z"ConfigHandler._get_parser_compoundc                 C  s,   i }|  ¡ D ]\}\}}|||ƒ||< q|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_parserrN   rD   Ú_r§   r2   r2   r3   Ú_parse_section_to_dict_with_keyÃ  s    
z-ConfigHandler._parse_section_to_dict_with_keyNc                   s$   ˆ r‡ fdd„ndd„ }|   ||¡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   ˆ |ƒS rw   r2   ©rÂ   Úv©rÁ   r2   r3   r�   Ü  rŽ   z6ConfigHandler._parse_section_to_dict.<locals>.<lambda>c                 S  s   |S rw   r2   rÄ   r2   r2   r3   r�   Ü  rŽ   ©rÃ   )r‚   rÀ   rÁ   r²   r2   rÆ   r3   Ú_parse_section_to_dictÒ  s    
z$ConfigHandler._parse_section_to_dictc              
   C  s8   |  ¡ D ]*\}\}}t t¡� || |< W 5 Q R X qdS )zQParses configuration file section.

        :param dict section_options:
        N)r   Ú
contextlibÚsuppressr’   )r|   rÀ   rk   rÂ   rN   r2   r2   r3   Úparse_sectionß  s    zConfigHandler.parse_sectionc                 C  sl   | j  ¡ D ]\\}}d}|r$d|› �}t| d|› � dd¡dƒ}|dkr^td| j› d|› d�ƒ‚||ƒ q
dS )	zTParses configuration file items from one
        or more related sections.

        r¹   rÂ   rË   r~   Ú__Nz*Unsupported distribution option section: [ú])ry   r   rG   rº   r   rK   )r|   Úsection_namerÀ   Zmethod_postfixZsection_parser_methodr2   r2   r3   rQ   é  s    
üÿzConfigHandler.parsec                   s   t ˆ ƒ‡ ‡‡fdd„ƒ}|S )z¢this function will wrap around parameters that are deprecated

        :param msg: deprecation message
        :param func: function to be wrapped around
        c                    s&   ˆ  dd¡ tjdˆfˆŽ ˆ | |ŽS )NÚ
stacklevelr   z Deprecated config in `setup.cfg`)Ú
setdefaultÚ_DeprecatedConfigrm   )ÚargsÚkwargs©ÚfuncÚkwrr   r2   r3   Úconfig_handler	  s    z@ConfigHandler._deprecated_config_handler.<locals>.config_handler)r   )r|   rÕ   rr   rÖ   r×   r2   rÔ   r3   Ú_deprecated_config_handler  s    z(ConfigHandler._deprecated_config_handler)rš   )N)rˆ   Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__ru   r}   Úclassmethodrx   ÚpropertyrŠ   r™   r£   r¨   r®   r³   r¸   r»   r¿   rÃ   rÈ   rË   rQ   rØ   r2   r2   r2   r3   rt   ï   s8   
	


	



rt   c                      s^   e Zd ZdZdddddœZdZdejfd	d
dddddœ‡ fdd„Ze	dd„ ƒZ
dd„ Z‡  ZS )rS   rT   ÚurlÚdescriptionÚclassifiersÚ	platforms)Z	home_pageÚsummaryÚ
classifierÚplatformFNr!   r#   r%   rv   zdict | Noner´   )rC   rY   r)   rX   rR   r¶   c                   s"   t ƒ  ||||¡ || _|| _d S rw   )Úsuperr}   rR   r¶   )r|   rC   rY   r)   rX   rR   r¶   ©r‡   r2   r3   r}   "  s    	zConfigMetadataHandler.__init__c                 C  sL   | j }t| j| jd�}| j}| j}|||||  ||¡|dƒ|||| j|dœS )r…   rµ   Úlicense)râ   ÚkeywordsÚprovidesÚ	obsoletesrá   rè   Zlicense_filesrà   Úlong_descriptionÚversionZproject_urls)r£   r   r¸   r¶   r¨   r³   r¿   Ú_parse_version)r|   Ú
parse_listZ
parse_fileÚ
parse_dictZexclude_files_parserr2   r2   r3   rŠ   /  s     
õzConfigMetadataHandler.parsersc              
   C  s€   |   || j¡}||krh| ¡ }zt|ƒ W n8 tk
rb } ztd|› d|› �ƒ|‚W 5 d}~X Y nX |S t |  || j	| j¡¡S )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»   rR   )r|   rN   rí   r—   r2   r2   r3   rî   E  s    ÿýz$ConfigMetadataHandler._parse_version)rˆ   rÙ   rÚ   rK   ru   Zstrict_moder8   Úcurdirr}   rÞ   rŠ   rî   Ú__classcell__r2   r2   rç   r3   rS     s   üù
rS   c                      s¤   e Zd ZdZdddddœ‡ fdd„Zed	d
„ ƒZdd„ Zdddœdd„Ze	dd„ ƒZ
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd!d"„ Zd#d$„ Z‡  ZS )%rP   rY   r    r#   r%   rv   )rC   rY   r)   rX   c                   s$   t ƒ  ||||¡ |j| _i | _d S rw   )ræ   r}   rU   r¶   rR   r{   rç   r2   r3   r}   b  s    zConfigOptionsHandler.__init__c                 C  s   | j |dd�S )Nú;)r¢   )r£   r­   r2   r2   r3   Ú_parse_list_semicolonm  s    z*ConfigOptionsHandler._parse_list_semicolonc                 C  s   | j || jd�S )Nrµ   )r¸   r¶   )r|   rN   r2   r2   r3   Ú_parse_file_in_rootq  s    z(ConfigOptionsHandler._parse_file_in_rootr@   )r\   rN   c                 C  s*   |   |  |¡¡}t|||ƒ dd„ |D ƒS )Nc                 S  s   g | ]}|  d ¡s|‘qS )ú#rb   )rd   r¦   r2   r2   r3   rž   z  s     
 zAConfigOptionsHandler._parse_requirements_list.<locals>.<listcomp>)rô   rõ   rs   )r|   r\   rN   r^   r2   r2   r3   Ú_parse_requirements_listt  s    z-ConfigOptionsHandler._parse_requirements_listc                 C  sP   | j }| j}| j}| j}|||||||  |d¡t| jdƒ| j| j| j	|t
|dœS )r…   zeThe namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).Úinstall_requires)Zzip_safeZinclude_package_datarR   ÚscriptsZeager_resourcesZdependency_linksÚnamespace_packagesrø   Zsetup_requiresÚpackagesÚentry_pointsÚ
py_modulesZpython_requiresÚcmdclass)r£   r®   r¨   Ú_parse_cmdclassrØ   r   r÷   rô   Ú_parse_packagesrõ   r   )r|   rï   Z
parse_boolrð   Zparse_cmdclassr2   r2   r3   rŠ   |  s2    þ ÿëzConfigOptionsHandler.parsersc                 C  s   | j j}t |  |¡|| j¡S rw   )rX   rR   r   rþ   r¨   r¶   )r|   rN   rR   r2   r2   r3   rÿ   œ  s    z$ConfigOptionsHandler._parse_cmdclassc                 C  s^   ddg}|  ¡ }||kr"|  |¡S |  | j di ¡¡}|j||d k| j| jd� tj	f |ŽS )zTParses `packages` option value.

        :param value:
        :rtype: list
        zfind:zfind_namespace:zpackages.findr   )Ú
namespacesr¶   Zfill_package_dir)
rœ   r£   Úparse_section_packages__findry   r�   rW   r¶   rR   r   Zfind_packages)r|   rN   Zfind_directivesZtrimmed_valueÚfind_kwargsr2   r2   r3   r      s    
ÿ
ýz$ConfigOptionsHandler._parse_packagesc                   sP   |   || j¡}dddg‰ ‡ fdd„| ¡ D ƒ}| d¡}|dk	rL|d |d< |S )zœParses `packages.find` configuration file section.

        To be used in conjunction with _parse_packages().

        :param dict section_options:
        ÚwhereÚincludeÚexcludec                   s"   i | ]\}}|ˆ kr|r||“qS r2   r2   )rd   ÚkrÅ   ©Z
valid_keysr2   r3   Ú
<dictcomp>Ã  s
        zEConfigOptionsHandler.parse_section_packages__find.<locals>.<dictcomp>Nr   )rÈ   r£   r   r�   )r|   rÀ   Zsection_datar  r  r2   r  r3   r  ¹  s    

z1ConfigOptionsHandler.parse_section_packages__findc                 C  s   |   || j¡}|| d< dS )z`Parses `entry_points` configuration file section.

        :param dict section_options:
        rü   N)rÈ   r£   ©r|   rÀ   r^   r2   r2   r3   Úparse_section_entry_pointsË  s    z/ConfigOptionsHandler.parse_section_entry_pointsc                 C  s   |   || j¡}t |¡S rw   )rÈ   r£   r   Zcanonic_package_data)r|   rÀ   Úpackage_datar2   r2   r3   Ú_parse_package_dataÓ  s    z(ConfigOptionsHandler._parse_package_datac                 C  s   |   |¡| d< dS )z`Parses `package_data` configuration file section.

        :param dict section_options:
        r  N©r  ©r|   rÀ   r2   r2   r3   Úparse_section_package_data×  s    z/ConfigOptionsHandler.parse_section_package_datac                 C  s   |   |¡| d< dS )zhParses `exclude_package_data` configuration file section.

        :param dict section_options:
        Zexclude_package_dataNr  r  r2   r2   r3   Ú"parse_section_exclude_package_dataÞ  s    z7ConfigOptionsHandler.parse_section_exclude_package_datac                   s    ˆ   |‡ fdd„¡}|ˆ d< dS )zbParses `extras_require` configuration file section.

        :param dict section_options:
        c                   s   ˆ   d| › d�|¡S )Nzextras_require[rÍ   )r÷   )r  rÅ   r‰   r2   r3   r�   ì  rŽ   zCConfigOptionsHandler.parse_section_extras_require.<locals>.<lambda>Zextras_requireNrÇ   r
  r2   r‰   r3   Úparse_section_extras_requireå  s
    
þz1ConfigOptionsHandler.parse_section_extras_requirec                 C  s$   |   || j¡}t || j¡| d< dS )z^Parses `data_files` configuration file section.

        :param dict section_options:
        Ú
data_filesN)rÈ   r£   r   Zcanonic_data_filesr¶   r
  r2   r2   r3   Úparse_section_data_filesñ  s    z-ConfigOptionsHandler.parse_section_data_files)rˆ   rÙ   rÚ   rK   r}   rÝ   rô   rõ   r÷   rÞ   rŠ   rÿ   r   r  r  r  r  r  r  r  rò   r2   r2   rç   r3   rP   _  s"   

rP   c                   @  s$   e Zd ZdZdZdZedd„ ƒZdS )rl   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                 K  s"   d| j › �}| j| j| j||d�S )Nz%https://setuptools.pypa.io/en/latest/)Zsee_urlZformat_args)Ú	_SEE_DOCSÚ_formatÚ_SUMMARYÚ_DETAILS)r‚   rÖ   Údocsr2   r2   r3   ro     s    z_AmbiguousMarker.messageN)rˆ   rÙ   rÚ   r  r  r  rÝ   ro   r2   r2   r2   r3   rl   ú  s
   rl   c                   @  s   e Zd ZdZdS )rÑ   z!userguide/declarative_config.htmlN)rˆ   rÙ   rÚ   r  r2   r2   r2   r3   rÑ     s   rÑ   )FF)r2   F)F)ArÛ   Ú
__future__r   rÉ   rF   r8   Úcollectionsr   r   r   Útypingr   r   r   r	   r
   r   r   r   r   r   r   Zpackaging.markersr   ri   Zpackaging.requirementsr   r   Zpackaging.specifiersr   Zpackaging.versionr   r   Ú_pathr   Úerrorsr   r   Úwarningsr   r¹   r   Útyping_extensionsr   r+   r    Údistutils.distr!   r@   r"   rÜ   r#   r$   r4   r5   r-   rI   r.   rA   rs   rt   rS   rP   rl   rÑ   r2   r2   r2   r3   Ú<module>   sT   4   ÿ  ü ý.   %M 