o
    4ôjd  ã                   @   sF  d 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 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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, ededef f Z-	 ede-f Z.eded d�Z/	dBdede0fdd„Z1dddeddfdd„Z2	 	dCddded!ee d"e3ded# f
d$d%„Z4d&e/d'e5fd(d)„Z6d*ed# de0fd+d,„Z7	dDd-dd.e.ded/ fd0d1„Z8d2e5d3e5d4e9fd5d6„Z:G d7d8„ d8ee/ ƒZ;G d9d:„ d:e;d; ƒZ<G d<d=„ d=e;d ƒZ=G d>d?„ d?e&ƒZ>G d@dA„ dAe&ƒZ?dS )Ea<  
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``.
é    N)Údefaultdict)Úpartial©Úwraps)ÚTYPE_CHECKINGÚCallableÚAnyÚDictÚGenericÚIterableÚListÚOptionalÚSetÚTupleÚTypeVarÚUnioné   )ÚStrPath)Ú	FileErrorÚOptionError)Údefault_environment)ÚInvalidRequirementÚRequirement)ÚSpecifierSet)ÚInvalidVersionÚVersion)ÚSetuptoolsDeprecationWarningé   )Úexpand)ÚDistributionMetadata©ÚDistributionÚstrÚTarget)r!   r   )ÚboundFÚfilepathÚ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%   Zfind_othersÚignore_option_errorsr!   ÚdistÚ	filenamesÚhandlers© r/   úm/var/www/html/academy/tools/voices/clone/cosy-venv/lib/python3.10/site-packages/setuptools/config/setupcfg.pyÚread_configuration9   s
   r1   r,   r!   c                 C   s   t | |ƒ |  ¡  | S )z`Apply the configuration from a ``setup.cfg`` file into an existing
    distribution object.
    )r)   Ú_finalize_requires)r,   r%   r/   r/   r0   Úapply_configurationS   s   
r3   r/   Úother_filesr+   )ÚConfigHandler.c              	   C   sž   ddl m} tj |¡}tj |¡std|› d�ƒ‚t ¡ }t tj 	|¡¡ g |¢|‘}z|j
| |d� t| | j|d�}|  ¡  W t |¡ |S t |¡ w )zHRead configuration from ``filepath`` and applies to the ``dist`` object.r   )Ú_DistributionzConfiguration file z does not exist.)r-   )r+   )r'   r6   ÚosÚpathÚabspathÚisfiler   ÚgetcwdÚchdirÚdirnameÚparse_config_filesÚparse_configurationÚcommand_optionsÚ_finalize_license_files)r,   r%   r4   r+   r6   Zcurrent_directoryr-   r.   r/   r/   r0   r)   \   s    ÿ

þr)   Ú
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)rB   rC   Zgetter_nameZby_attributeÚgetterr/   r/   r0   Ú_get_optionz   s   
rH   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 list[ConfigHandler] handlers: Handlers list,
        usually from parse_configuration()

    :rtype: dict
    )r   ÚdictÚset_optionsrH   rB   Úsection_prefix)r.   Zconfig_dictÚhandlerÚoptionÚvaluer/   r/   r0   r*   †   s   
þr*   Údistributionr@   )ÚConfigMetadataHandlerÚConfigOptionsHandlerc                 C   sŽ   t  | ¡�6}t| |||ƒ}| ¡  | js|j| _t| j|||| j| jƒ}| ¡  | j 	|j|j¡ W d  ƒ ||fS 1 s>w   Y  ||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
    N)
r   ÚEnsurePackagesDiscoveredrQ   ÚparseÚpackage_dirrP   ÚmetadataÚsrc_rootÚ_referenced_filesÚupdate)rO   r@   r+   Úensure_discoveredÚoptionsÚmetar/   r/   r0   r?   ˜   s4   üúÿ
ëçr?   ÚlabelÚ
orig_valueÚparsedc              
      s°   d|v s
t ˆ ƒdkrdS tƒ  ¡ }ztˆ d ƒ}|j|v r)tj| ˆ d d� W dS W dS  tyW } z t‡ fdd„|D ƒƒrLtj	| ˆ d d�}t|ƒ|‚W Y d}~dS d}~w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   s   � | ]
}ˆ d    |¡V  qdS )r   N©Ú
startswith)Ú.0Úmarker©r^   r/   r0   Ú	<genexpr>á   s   € z8_warn_accidental_env_marker_misconfig.<locals>.<genexpr>)
ÚlenÚ
marker_envÚkeysr   ÚnameÚ_AmbiguousMarkerÚemitr   ÚanyÚmessage)r\   r]   r^   Úmarkersra   ÚexÚmsgr/   rf   r0   Ú%_warn_accidental_env_marker_misconfigÆ   s   

ÿ
þ€ÿrs   c                   @   sþ   e Zd ZU dZeed< 	 i Zeeef ed< 	 dede	de
jfdd„Zede	fd	d
„ƒZedd„ ƒZdd„ Zed+dd„ƒZedd„ ƒZedd„ ƒZedd„ ƒZdefdd„Zdefdd„Zedd„ ƒZedd „ ƒZed,d"d#„ƒZd$d%„ Zd-d'd(„Zd)d*„ Zd!S ).r5   z1Handles metadata supplied in configuration files.rK   ÚaliasesrB   rZ   rY   c                 C   s4   || _ || _t|  |¡ƒ| _g | _|| _tƒ | _d S ©N)	r+   rB   rI   Ú_section_optionsÚsectionsrJ   rY   ÚsetrW   ©ÚselfrB   rZ   r+   rY   r/   r/   r0   Ú__init__ö   s   zConfigHandler.__init__c                 c   s@   � |  ¡ D ]\}}| | j¡\}}}|rq| d¡|fV  qd S )NÚ.)ÚitemsÚ	partitionrK   Úlstrip)ÚclsrZ   Ú	full_namerN   ÚpreÚseprk   r/   r/   r0   rv     s   €üzConfigHandler._section_optionsc                 C   s   t d| jj ƒ‚)ú.Metadata item name to parser function mapping.z!%s must provide .parsers property)ÚNotImplementedErrorÚ	__class__Ú__name__©rz   r/   r/   r0   Úparsers  s   
ÿzConfigHandler.parsersc           	   
   C   s¼   | j }| j ||¡}zt||ƒ}W n ty" } zt|ƒ|‚d }~ww |r'd S z| j |dd„ ¡|ƒ}W n tf| j yB   Y d S w t	 
|j|¡}t|d| |ƒ}||ƒ | j |¡ d S )Nc                 S   s   | S ru   r/   )Úxr/   r/   r0   Ú<lambda>&  ó    z+ConfigHandler.__setitem__.<locals>.<lambda>zset_%s)rB   rt   ÚgetrF   ÚAttributeErrorÚKeyErrorr‰   Ú	Exceptionr+   rE   r   Ú__setattr__rJ   Úappend)	rz   Zoption_namerN   rB   Zcurrent_valueÚer^   Zsimple_setterÚsetterr/   r/   r0   Ú__setitem__  s&   
€ÿÿzConfigHandler.__setitem__ú,c                 C   s8   t |tƒr|S d|v 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 r/   ©Ústrip)rd   Úchunkr/   r/   r0   Ú
<listcomp>B  s    z-ConfigHandler._parse_list.<locals>.<listcomp>)Ú
isinstanceÚlistÚ
splitlinesÚsplit)r€   rN   Ú	separatorr/   r/   r0   Ú_parse_list0  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ÚlinerC   rƒ   Úvalr/   r/   r0   Ú_parse_dictD  s   zConfigHandler._parse_dictc                 C   s   |  ¡ }|dv S )zQRepresents value as boolean.

        :param value:
        :rtype: bool
        )Ú1ÚtrueÚyes)Úlower©r€   rN   r/   r/   r0   Ú_parse_boolU  s   zConfigHandler._parse_boolc                    ó   ‡ 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 ˆ ¡ƒ‚| S )Núfile:zCOnly strings are accepted for the {0} field, files are not accepted)rc   Ú
ValueErrorÚformat)rN   Zexclude_directive©rC   r/   r0   Úparserk  s   
þz3ConfigHandler._exclude_files_parser.<locals>.parserr/   )r€   rC   r±   r/   r°   r0   Ú_exclude_files_parser_  s   	z#ConfigHandler._exclude_files_parserÚ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 r/   r—   )rd   r8   r/   r/   r0   rš   Œ  ó    z-ConfigHandler._parse_file.<locals>.<listcomp>r–   )	r›   r"   rc   rh   rž   rW   rX   r   Z
read_files)rz   rN   r³   Zinclude_directiveÚspecZ	filepathsr/   r/   r0   Ú_parse_filev  s   

zConfigHandler._parse_filec                 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   ÚreplacerX   rY   rT   r   Z	read_attr)rz   rN   rT   r³   Zattr_directiveZ	attr_descr/   r/   r0   Ú_parse_attr�  s   

zConfigHandler._parse_attrc                    r¬   )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 ru   r/   )rN   r^   Úmethod©Úparse_methodsr/   r0   rS   ®  s   
z1ConfigHandler._get_parser_compound.<locals>.parser/   )r€   r¼   rS   r/   r»   r0   Ú_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   rC   Ú_r¤   r/   r/   r0   Ú_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 ru   r/   ©rÀ   Úv©r¿   r/   r0   r‹   Ñ  s    z6ConfigHandler._parse_section_to_dict.<locals>.<lambda>c                 S   s   |S ru   r/   rÂ   r/   r/   r0   r‹   Ñ  rŒ   ©rÁ   )r€   r¾   r¿   r±   r/   rÄ   r0   Ú_parse_section_to_dictÇ  s   
z$ConfigHandler._parse_section_to_dictc              	   C   sL   |  ¡ D ]\}\}}t t¡� || |< W d  ƒ n1 sw   Y  qdS )zQParses configuration file section.

        :param dict section_options:
        N)r}   Ú
contextlibÚsuppressr�   )rz   r¾   rk   rÀ   rN   r/   r/   r0   Úparse_sectionÔ  s   
þ€ÿzConfigHandler.parse_sectionr&   c                 C   sh   | j  ¡ D ],\}}d}|rd| }t| d|  dd¡dƒ}|du r-td| j› d|› d�ƒ‚||ƒ qdS )	zTParses configuration file items from one
        or more related sections.

        r·   z_%szparse_section%sr|   Ú__Nz*Unsupported distribution option section: [ú])rw   r}   rF   r¸   r   rK   )rz   Úsection_namer¾   Zmethod_postfixZsection_parser_methodr/   r/   r0   rS   Þ  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i ˆ¤Ž ˆ | i |¤ŽS )NÚ
stacklevelr   z Deprecated config in `setup.cfg`)Ú
setdefaultÚ_DeprecatedConfigrm   )ÚargsÚkwargs©ÚfuncÚkwrr   r/   r0   Úconfig_handlerþ  s   z@ConfigHandler._deprecated_config_handler.<locals>.config_handlerr   )rz   rÓ   rr   rÔ   rÕ   r/   rÒ   r0   Ú_deprecated_config_handler÷  s   z(ConfigHandler._deprecated_config_handler)r–   ru   )r&   N)r‡   Ú
__module__Ú__qualname__Ú__doc__r"   Ú__annotations__rt   r	   r#   ÚAllCommandOptionsr   rR   r{   Úclassmethodrv   Úpropertyr‰   r•   r    r¥   r«   r²   r   r¶   r¹   r½   rÁ   rÆ   rÉ   rS   rÖ   r/   r/   r/   r0   r5   æ   sJ   
 þý
û


	




r5   c                       sp   e Zd ZdZdddddœZdZ	 dejfd	d
dede	de
jdee def‡ fdd„Zedd„ ƒZdd„ Z‡  ZS )rP   rU   ÚurlÚdescriptionÚclassifiersÚ	platforms)Z	home_pageÚsummaryÚ
classifierÚplatformFNrB   r   rZ   r+   rY   rT   r³   c                    s"   t ƒ  ||||¡ || _|| _d S ru   )Úsuperr{   rT   r³   )rz   rB   rZ   r+   rY   rT   r³   ©r†   r/   r0   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è   Úlicense_filesrß   Úlong_descriptionÚversionÚproject_urls)r    r   r¶   r³   r¥   r²   r½   Ú_parse_version)rz   Ú
parse_listZ
parse_fileÚ
parse_dictZexclude_files_parserr/   r/   r0   r‰   $  s    
õzConfigMetadataHandler.parsersc              
   C   st   |   || j¡}||kr.| ¡ }zt|ƒ W |S  ty- } ztd|› d|› �ƒ|‚d}~ww 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¹   rT   )rz   rN   rî   r“   r/   r/   r0   rð   :  s"   
úÿÿý€ÿz$ConfigMetadataHandler._parse_version)r‡   r×   rØ   rK   rt   Zstrict_moder7   ÚcurdirrÛ   Úboolr   rR   r   rI   r   r{   rÝ   r‰   rð   Ú__classcell__r/   r/   ræ   r0   rP     s6    üùþýüûúù
rP   r   c                       s®   e Zd ZdZdddededejf‡ fdd„Ze	dd	„ ƒZ
d
d„ Zdedef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 )$rQ   rZ   rB   r!   r+   rY   c                    s$   t ƒ  ||||¡ |j| _i | _d S ru   )rå   r{   rV   r³   rT   ry   ræ   r/   r0   r{   W  s   
zConfigOptionsHandler.__init__c                 C   s   | j |dd�S )Nú;)rŸ   )r    rª   r/   r/   r0   Ú_parse_list_semicolonb  s   z*ConfigOptionsHandler._parse_list_semicolonc                 C   s   | j || jd�S )Nrç   )r¶   r³   )rz   rN   r/   r/   r0   Ú_parse_file_in_rootf  s   z(ConfigOptionsHandler._parse_file_in_rootr\   rN   c                 C   s*   |   |  |¡¡}t|||ƒ dd„ |D ƒS )Nc                 S   s   g | ]	}|  d ¡s|‘qS )ú#rb   )rd   r£   r/   r/   r0   rš   o  s    zAConfigOptionsHandler._parse_requirements_list.<locals>.<listcomp>)r÷   rø   rs   )rz   r\   rN   r^   r/   r/   r0   Ú_parse_requirements_listi  s   z-ConfigOptionsHandler._parse_requirements_listc                 C   sT   | j }| j}| j}| j}|||||||  |d¡t| jdƒ| j| 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_datarT   ÚscriptsZeager_resourcesÚdependency_linksZnamespace_packagesrû   Úsetup_requiresZtests_requireÚpackagesÚentry_pointsÚ
py_modulesÚpython_requiresÚcmdclass)r    r«   r¥   Ú_parse_cmdclassrÖ   r   rú   r÷   Ú_parse_packagesrø   r   )rz   rñ   Z
parse_boolrò   Zparse_cmdclassr/   r/   r0   r‰   q  s2   þÿêzConfigOptionsHandler.parsersc                 C   s   | j j}t |  |¡|| j¡S ru   )rY   rT   r   r  r¥   r³   )rz   rN   rT   r/   r/   r0   r  ’  s   z$ConfigOptionsHandler._parse_cmdclassc                 C   sb   ddg}|  ¡ }||vr|  |¡S |  | j di ¡¡}|j||d k| j| jd� tj	di |¤ŽS )zTParses `packages` option value.

        :param value:
        :rtype: list
        zfind:zfind_namespace:zpackages.findr   )Z
namespacesr³   Zfill_package_dirNr/   )
r˜   r    Úparse_section_packages__findrw   r�   rX   r³   rT   r   Úfind_packages)rz   rN   Zfind_directivesZtrimmed_valueÚfind_kwargsr/   r/   r0   r  –  s   
ÿ
ýz$ConfigOptionsHandler._parse_packagesc                    sR   |   || j¡}g d¢‰ t‡ fdd„| ¡ D ƒƒ}| d¡}|dur'|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$   g | ]\}}|ˆ v r|r||f‘qS r/   r/   )rd   ÚkrÃ   ©Z
valid_keysr/   r0   rš   º  s    zEConfigOptionsHandler.parse_section_packages__find.<locals>.<listcomp>r	  Nr   )rÆ   r    rI   r}   r�   )rz   r¾   Zsection_datar  r	  r/   r  r0   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    ©rz   r¾   r^   r/   r/   r0   Úparse_section_entry_pointsÄ  s   z/ConfigOptionsHandler.parse_section_entry_pointsc                 C   s   |   || j¡}t |¡S ru   )rÆ   r    r   Zcanonic_package_data)rz   r¾   Úpackage_datar/   r/   r0   Ú_parse_package_dataÌ  s   
z(ConfigOptionsHandler._parse_package_datac                 C   ó   |   |¡| d< dS )z`Parses `package_data` configuration file section.

        :param dict section_options:
        r  N©r  ©rz   r¾   r/   r/   r0   Úparse_section_package_dataÐ  ó   z/ConfigOptionsHandler.parse_section_package_datac                 C   r  )zhParses `exclude_package_data` configuration file section.

        :param dict section_options:
        Zexclude_package_dataNr  r  r/   r/   r0   Ú"parse_section_exclude_package_data×  r  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ˆ   r/   r0   r‹   å  r´   zCConfigOptionsHandler.parse_section_extras_require.<locals>.<lambda>Úextras_requireNrÅ   r  r/   rˆ   r0   Ú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  r/   r/   r0   Úparse_section_data_filesê  s   z-ConfigOptionsHandler.parse_section_data_files)r‡   r×   rØ   rK   rÛ   rô   r   rR   r{   rÜ   r÷   rø   r"   rú   rÝ   r‰   r  r  r  r  r  r  r  r  r  rõ   r/   r/   ræ   r0   rQ   T  s4    þýüû

 rQ   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/)Úsee_urlÚformat_args)Ú	_SEE_DOCSÚ_formatÚ_SUMMARYÚ_DETAILS)r€   rÔ   Údocsr/   r/   r0   ro     s   z_AmbiguousMarker.messageN)r‡   r×   rØ   r   r!  r  rÜ   ro   r/   r/   r/   r0   rl   ó  s    rl   c                   @   s   e Zd ZdZdS )rÏ   z!userguide/declarative_config.htmlN)r‡   r×   rØ   r  r/   r/   r/   r0   rÏ     s    rÏ   )FF)r/   F)F)@rÙ   rÇ   rE   r7   Úcollectionsr   r   r   Útypingr   r   r   r	   r
   r   r   r   r   r   r   r   Ú_pathr   Úerrorsr   r   Úextern.packaging.markersr   ri   Zextern.packaging.requirementsr   r   Úextern.packaging.specifiersr   Úextern.packaging.versionr   r   Úwarningsr   r·   r   Údistutils.distr   r'   r!   ZSingleCommandOptionsrÛ   r#   rI   r1   r3   rô   r)   r"   rH   r*   r?   rœ   rs   r5   rP   rQ   rl   rÏ   r/   r/   r/   r0   Ú<module>   s|    8ÿÿ
þüÿþýü
ûýÿþ
ü.   #M  