
    ϶vgd                    t   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 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 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/e0e1e0ef         f         Z2de3d<   	 e/e0e2f         Z4de3d<   	  eddd          Z5	 dEdFd#Z6dGd%Z7	 	 dHdId*Z8dJd/Z9dKd2Z:	 dLdMd5Z;dNd:Z< G d; d<ee5                   Z= G d= d>e=d                   Z> G d? d@e=d                   Z? G dA dBe&          Z@ G dC dDe&          ZAdS )Oa<  
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)IterableIterator)partialwraps)TYPE_CHECKINGAnyCallableClassVarGenericTypeVarcast)default_environment)InvalidRequirementRequirement)SpecifierSet)InvalidVersionVersion   )StrPath)	FileErrorOptionError)SetuptoolsDeprecationWarning   )expand)	TypeAliasDistribution)DistributionMetadatar   SingleCommandOptionsAllCommandOptionsTargetr   r    Ffilepathr   find_othersboolignore_option_errorsreturndictc                    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handlerss          W/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/setuptools/config/setupcfg.pyread_configurationr3   2   s^    $ -,,,,,<>>D,7?&&(((RIdHi1EFFH ***    r/   c                N    t          | |           |                                  | S )z`Apply the configuration from a ``setup.cfg`` file into an existing
    distribution object.
    )r-   _finalize_requires)r/   r$   s     r2   apply_configurationr7   L   s+     4Kr4    other_filesIterable[StrPath]2tuple[ConfigMetadataHandler, ConfigOptionsHandler]c                f   ddl m} t          j                            |          }t          j                            |          st          d| d          t          j                    }t          j        t          j        	                    |                     g ||}	 |
                    | t          t          t                   |                     t          | | j        |          }|                                  t          j        |           n# t          j        |           w xY w|S )zHRead configuration from ``filepath`` and applies to the ``dist`` object.r   )_DistributionzConfiguration file z does not exist.)r0   )r'   )r+   r=   ospathabspathisfiler   getcwdchdirdirnameparse_config_filesr   liststrparse_configurationcommand_options_finalize_license_files)r/   r$   r9   r'   r=   current_directoryr0   r1   s           r2   r-   r-   U   s"    .-----wx((H7>>(## JHhHHHIII	HRW__X&&'''(+(x(I$((d3i9S9S(TTT&$&=Q
 
 
 	$$&&&
"####"####Os   #A D D.
target_obj#Distribution | DistributionMetadatakeyrG   c                x    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)rL   rN   getter_nameby_attributegetters        r2   _get_optionrV   t   s?     ,,K$Wj#>>LZl;;F688Or4   r1   KIterable[ConfigHandler[Distribution] | ConfigHandler[DistributionMetadata]]c                    t          t                    }| D ]1}|j        D ]'}t          |j        |          }|||j                 |<   (2|S )zReturns configuration data gathered by given handlers as a dict.

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

    :rtype: dict
    )r   r)   set_optionsrV   rL   section_prefix)r1   config_dicthandleroptionvalues        r2   r.   r.      sk     $D))K @ @) 	@ 	@F 2F;;E:?K./77	@ r4   distributionrI   c           	        t          j        |           5 }t          | |||          }|                                 | j        s|j        | _        t          | j        |||| j        | j                  }|                                 | j        	                    |j        |j                   ddd           n# 1 swxY 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   EnsurePackagesDiscoveredConfigOptionsHandlerparsepackage_dirConfigMetadataHandlermetadatasrc_root_referenced_filesupdate)r_   rI   r'   ensure_discoveredoptionsmetas         r2   rH   rH      s   $ 
	(	6	6 
:K& 	
 
 	' 	;'.':L$$! $!
 
 	

&--%t'=	
 	
 	
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2 =s   BB77B;>B;label
orig_valueparsedrF   c                   d|v st                    dk    rdS t                                                      }	 t          d                   }|j        |v r$t
                              | d                    dS dS # t          $ rX}t          fd|D                       r2t
          	                    | d                   }t          |          |Y d}~dS 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  N   K   | ]}d                               |          V   dS )r   N
startswith).0markerro   s     r2   	<genexpr>z8_warn_accidental_env_marker_misconfig.<locals>.<genexpr>   s5      BBvay##F++BBBBBBr4   )
len
marker_envkeysr   name_AmbiguousMarkeremitr   anymessage)rm   rn   ro   markersrs   exmsgs     `    r2   %_warn_accidental_env_marker_misconfigr      s   " zS[[A--ll!!G2&)$$8w!!6!9!=====  2 2 2BBBB'BBBBB 	2"**F1I*FFC$S))r1	2 	2 	2 	2 	2 	22s   A B   
C"
ACC"c                  2   e Zd ZU dZded<   	 i Zded<   	 d$dZed%d            Ze	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dS )+ConfigHandlerz1Handles metadata supplied in configuration files.rG   rZ   zClassVar[dict[str, str]]aliasesrL   r#   rk   r"   rj   expand.EnsurePackagesDiscoveredr(   Nonec                    || _         || _        t          |                     |                    | _        g | _        || _        t                      | _        d S N)	r'   rL   r)   _section_optionssectionsrY   rj   setrh   )selfrL   rk   r'   rj   s        r2   __init__zConfigHandler.__init__   sV     %9!",T227;;<<&(!2+.55	 	r4   *Iterator[tuple[str, SingleCommandOptions]]c              #     K   |                                 D ]?\  }}|                    | j                  \  }}}|r&|                    d          |fV  @d S )N.)items	partitionrZ   lstrip)clsrk   	full_namer^   pre_sepr}   s          r2   r   zConfigHandler._section_options  su       !( 	* 	*Iu'11#2DEEOCt ++c""E)))))		* 	*r4   c                :    t          d| j        j        z            ).Metadata item name to parser function mapping.z!%s must provide .parsers property)NotImplementedError	__class____name__)r   s    r2   parserszConfigHandler.parsers  s#     "/$.2II
 
 	
r4   c                   | j         }| j                            ||          }	 t          ||          }n"# t          $ r}t          |          |d }~ww xY w|rd S 	  | j                            |d           |          }n# t          f| j        z  $ r Y d S w xY wt          j
        |j        |          }t          |d| |          } ||           | j                            |           d S )Nc                    | S r   r8   )xs    r2   <lambda>z+ConfigHandler.__setitem__.<locals>.<lambda>&  s    Q r4   set_)rL   r   getrR   AttributeErrorKeyErrorr   	Exceptionr'   rQ   r   __setattr__rY   append)	r   option_namer^   rL   current_valueero   simple_settersetters	            r2   __setitem__zConfigHandler.__setitem__  s'   _
 l&&{K@@	/#J<<MM 	/ 	/ 	/;''Q.	/  	F	?T\%%k;;??FFFF|d77 	 	 	FF	 ")**@+NN%9K%9%9=IIv,,,,,s&   5 
AAA%B BB,c                    t          |t                    r|S d|v r|                                }n|                    |          }d |D             S )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
        rq   c                ^    g | ]*}|                                 |                                 +S r8   strip)rw   chunks     r2   
<listcomp>z-ConfigHandler._parse_list.<locals>.<listcomp>B  s-    BBB%EKKMMBBBBr4   )
isinstancerF   
splitlinessplit)r   r^   	separators      r2   _parse_listzConfigHandler._parse_list0  s\     eT"" 	L5==$$&&EEKK	**EBB5BBBBr4   c                    d}i }|                      |          D ]\}|                    |          \  }}}||k    rt          d|           |                                ||                                <   ]|S )zPRepresents value as a dict.

        :param value:
        :rtype: dict
        =z&Unable to parse option value to dict: )r   r   r   r   )r   r^   r   resultlinerN   sepvals           r2   _parse_dictzConfigHandler._parse_dictD  s     	OOE** 	. 	.D NN955MCci!"R5"R"RSSS"%))++F399;;r4   c                2    |                                 }|dv S )zQRepresents value as boolean.

        :param value:
        :rtype: bool
        )1trueyes)lowerr   r^   s     r2   _parse_boolzConfigHandler._parse_boolU  s     ,,,r4   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                \    d}|                      |          rt          d d          | S )Nfile:z"Only strings are accepted for the z field, files are not accepted)rv   
ValueError)r^   exclude_directiverN   s     r2   parserz3ConfigHandler._exclude_files_parser.<locals>.parserk  sO     ' 122  - - - -   Lr4   r8   )r   rN   r   s    ` r2   _exclude_files_parserz#ConfigHandler._exclude_files_parser_  s#    	 	 	 	 	 r4   root_dirStrPath | Nonec                ,   d}t          |t                    s|S |                    |          s|S |t          |          d         }d |                    d          D             }| j                            |           t          j        ||          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                6    g | ]}|                                 S r8   r   )rw   r?   s     r2   r   z-ConfigHandler._parse_file.<locals>.<listcomp>  s     >>>dTZZ\\>>>r4   r   )	r   rG   rv   rz   r   rh   ri   r   
read_files)r   r^   r   include_directivespec	filepathss         r2   _parse_filezConfigHandler._parse_filev  s     $%%% 	L 122 	LS*++--.>>djjoo>>>	%%i000 H555r4   r   c                    d}|                     |          s|S |                    |d          }|                    | 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: )rv   replaceri   rj   rd   r   	read_attr)r   r^   rd   r   attr_directive	attr_descs         r2   _parse_attrzConfigHandler._parse_attr  sh     !// 	LMM."55	 	41=>>>	;AAAr4   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   r8   )r^   ro   methodparse_methodss      r2   rc   z1ConfigHandler._get_parser_compound.<locals>.parse  s+    F' ( (Mr4   r8   )r   r   rc   s    ` r2   _get_parser_compoundz"ConfigHandler._get_parser_compound  s#    	 	 	 	 	 r4   c                b    i }|                                 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_parserr^   rN   _r   s          r2   _parse_section_to_dict_with_keyz-ConfigHandler._parse_section_to_dict_with_key  sH     ,2244 	1 	1MC!S&sC00E#JJr4   Nc                D    rfdn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 r   r8   )r   vr   s     r2   r   z6ConfigHandler._parse_section_to_dict.<locals>.<lambda>  s    }}Q// r4   c                    |S r   r8   )r   r   s     r2   r   z6ConfigHandler._parse_section_to_dict.<locals>.<lambda>  s    UV r4   r   )r   r   r   r   s     ` r2   _parse_section_to_dictz$ConfigHandler._parse_section_to_dict  s7     5BW/////22?FKKKr4   c                    |                                 D ]>\  }\  }}t          j        t                    5  || |<   ddd           n# 1 swxY w Y   ?dS )zQParses configuration file section.

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

        r   r   r   r   __Nz*Unsupported distribution option section: [])r   r   rR   r   r   rZ   )r   section_namer   method_postfixsection_parser_methods        r2   rc   zConfigHandler.parse  s    
 .2]-@-@-B-B 	3 	3)L/N 4!3\!3!35<00088dCC	6 6! %,!>+> >.:> > >  
 "!/2222%	3 	3r4   c                D    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                         dd           t          j        dfi   | i |S )N
stacklevelr   z Deprecated config in `setup.cfg`)
setdefault_DeprecatedConfigr   )argskwargsfunckwr   s     r2   config_handlerz@ConfigHandler._deprecated_config_handler.<locals>.config_handler  sH    MM,***"#EsQQbQQQ4((((r4   )r   )r   r  r   r  r  s    ``` r2   _deprecated_config_handlerz(ConfigHandler._deprecated_config_handler  sB     
t	) 	) 	) 	) 	) 	) 
	)
 r4   )rL   r#   rk   r"   rj   r   r(   r   )rk   r"   r(   r   r(   r   )r   )r   r   )r   r   r   )r   
__module____qualname____doc____annotations__r   r   classmethodr   propertyr   r   r   r   r   r   r   r   r   r   r   r   rc   r  r8   r4   r2   r   r      s        ;;
 )+G****   " * * * [* 
 
 X
- - - -4 C C C [C&   [  - - [-   [,6 6 6 64B B B B(   [&   [ 
L 
L 
L [
L# # # #3 3 3 32    r4   r   c                  d     e Zd ZdZdddddZdZ	 dej        fd fdZe	d             Z
d Z xZS )re   rf   urldescriptionclassifiers	platforms)	home_pagesummary
classifierplatformFNrL   r    rk   r"   r'   r&   rj   r   rd   dict | Noner   r   r(   r   c                l    t                                          ||||           || _        || _        d S r   )superr   rd   r   )r   rL   rk   r'   rj   rd   r   r   s          r2   r   zConfigMetadataHandler.__init__  s8     	W.BDUVVV& r4   c                    | j         }t          | j        | j                  }| 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)r   
parse_list
parse_file
parse_dictexclude_files_parsers        r2   r   zConfigMetadataHandler.parsers$  s     %
T-FFF
%
#9 $""#44ZLL++I66'% **&
 
 	
r4   c                H   |                      || j                  }||k    rO|                                }	 t          |           n(# t          $ r}t          d| d|           |d}~ww xY w|S t          j        |                     || 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   rd   )r   r^   r$  r   s       r2   r&  z$ConfigMetadataHandler._parse_version:  s     ""5$-88emmooG    !   !65 6 6,36 6   N~d..ud6FVVWWWs   A 
A,A''A,)rL   r    rk   r"   r'   r&   rj   r   rd   r  r   r   r(   r   )r   r
  r  rZ   r   strict_moder>   curdirr   r  r   r&  __classcell__r   s   @r2   re   re     s        N  #	 G K $(#%9! ! ! ! ! ! ! 
 
 X
*X X X X X X Xr4   re   c                       e Zd ZdZd fdZed             Zd ZddZe	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 )rb   rk   rL   r   r"   r'   r&   rj   r   r(   r   c                v    t                                          ||||           |j        | _        i | _        d S r   )r  r   rg   r   rd   )r   rL   rk   r'   rj   r   s        r2   r   zConfigOptionsHandler.__init__W  s=     	W.BDUVVV"++-r4   c                0    |                      |d          S )N;)r   )r   r   s     r2   _parse_list_semicolonz*ConfigOptionsHandler._parse_list_semicolonb  s    u444r4   c                :    |                      || j                  S )Nr  )r   r   )r   r^   s     r2   _parse_file_in_rootz(ConfigOptionsHandler._parse_file_in_rootf  s    >>>r4   rm   rG   r^   c                    |                      |                     |                    }t          |||           d |D             S )Nc                <    g | ]}|                     d           |S )#ru   )rw   r   s     r2   r   zAConfigOptionsHandler._parse_requirements_list.<locals>.<listcomp>o  s)    DDDts/C/CDDDDr4   )r4  r6  r   )r   rm   r^   ro   s       r2   _parse_requirements_listz-ConfigOptionsHandler._parse_requirements_listi  sL    ++D,D,DU,K,KLL-eUFCCC EDDDDDr4   c                    | 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)zip_safeinclude_package_datard   scriptseager_resourcesdependency_linksnamespace_packagesr<  setup_requirespackagesentry_points
py_modulespython_requirescmdclass)r   r   r   _parse_cmdclassr  r   r:  r4  _parse_packagesr6  r   )r   r'  
parse_boolr)  parse_cmdclasss        r2   r   zConfigOptionsHandler.parsersq  s     %
%
%
- #$.%!) *"&"A"AH# # !(-/A! ! #8, 4$+&+
 
 	
r4   c                v    | j         j        }t          j        |                     |          || j                  S r   )rj   rd   r   rH  r   r   )r   r^   rd   s      r2   rI  z$ConfigOptionsHandler._parse_cmdclass  s1    ,8t//66T]SSSr4   c                :   ddg}|                                 }||vr|                     |          S |                     | j                            di                     }|                    ||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_dirr8   )
r   r   parse_section_packages__findr   r   ri   r   rd   r   find_packages)r   r^   find_directivestrimmed_valuefind_kwargss        r2   rJ  z$ConfigOptionsHandler._parse_packages  s     #$56//##E*** 77Mor22
 
 	%);;]!- 	 	
 	
 	
 #22k222r4   c                    |                      || j                  }g dfd|                                D             }|                    d          }||d         |d<   |S )zParses `packages.find` configuration file section.

        To be used in conjunction with _parse_packages().

        :param dict section_options:
        )whereincludeexcludec                (    i | ]\  }}|v 	|||S r8   r8   )rw   kr   
valid_keyss      r2   
<dictcomp>zEConfigOptionsHandler.parse_section_packages__find.<locals>.<dictcomp>  s)    VVV1ZTUq!r4   rW  Nr   )r   r   r   r   )r   r   section_datarU  rW  r\  s        @r2   rQ  z1ConfigOptionsHandler.parse_section_packages__find  sx     22?DDTUU444
VVVV(:(:(<(<VVV((#(8K r4   c                F    |                      || j                  }|| d<   dS )z`Parses `entry_points` configuration file section.

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

        :param dict section_options:
        rd  Nre  r   r   s     r2   parse_section_package_dataz/ConfigOptionsHandler.parse_section_package_data  s"    
  $77HH^r4   c                6    |                      |          | d<   dS )zhParses `exclude_package_data` configuration file section.

        :param dict section_options:
        exclude_package_dataNrg  rh  s     r2   "parse_section_exclude_package_dataz7ConfigOptionsHandler.parse_section_exclude_package_data  s#    
 (,'?'?'P'P#$$$r4   c                D                           | fd          }| d<   dS )zbParses `extras_require` configuration file section.

        :param dict section_options:
        c                8                         d|  d|          S )Nzextras_require[r   )r:  )r[  r   r   s     r2   r   zCConfigOptionsHandler.parse_section_extras_require.<locals>.<lambda>  s#    667M7M7M7MqQQ r4   extras_requireNr   r`  s   `  r2   parse_section_extras_requirez1ConfigOptionsHandler.parse_section_extras_require  s<    
 55QQQQ
 

 "(r4   c                v    |                      || j                  }t          j        || j                  | d<   dS )z^Parses `data_files` configuration file section.

        :param dict section_options:
        
data_filesN)r   r   r   canonic_data_filesr   r`  s      r2   parse_section_data_filesz-ConfigOptionsHandler.parse_section_data_files  s;    
 ,,_d>NOO#6vt}MM\r4   )
rL   r   rk   r"   r'   r&   rj   r   r(   r   )rm   rG   r^   rG   r	  )r   r
  r  rZ   r   r  r4  r6  r:  r  r   rI  rJ  rQ  ra  re  ri  rl  rp  rt  r.  r/  s   @r2   rb   rb   T  sR       N	. 	. 	. 	. 	. 	. 5 5 [5? ? ?E E E E 
 
 X
>T T T3 3 32  $& & & &9 9 9I I I IQ Q Q Q
( 
( 
( 
(N N N N N N N Nr4   rb   c                  0    e Zd ZdZdZdZed             ZdS )r~   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                \    d| j          }|                     | j        | j        ||          S )Nz%https://setuptools.pypa.io/en/latest/)see_urlformat_args)	_SEE_DOCS_format_SUMMARY_DETAILS)r   r  docss      r2   r   z_AmbiguousMarker.message  s0    Fs}FF{{3<tQS{TTTr4   N)r   r
  r  r{  r|  ry  r  r   r8   r4   r2   r~   r~     sG        .HH :I U U [U U Ur4   r~   c                      e Zd ZdZdS )r  z!userguide/declarative_config.htmlN)r   r
  r  ry  r8   r4   r2   r  r    s        3IIIr4   r  )FF)r$   r   r%   r&   r'   r&   r(   r)   )r/   r   r$   r   r(   r   )r8   F)
r/   r   r$   r   r9   r:   r'   r&   r(   r;   )rL   rM   rN   rG   )r1   rW   r(   r)   )F)r_   r   rI   r"   r'   r&   r(   r;   )rm   rG   rn   rG   ro   rF   )Br  
__future__r   r   rQ   r>   collectionsr   collections.abcr   r   r   r   typingr	   r
   r   r   r   r   r   packaging.markersr   r{   packaging.requirementsr   r   packaging.specifiersr   packaging.versionr   r   _pathr   errorsr   r   warningsr   r   r   typing_extensionsr   r+   r   distutils.distr    r)   rG   tupler!   r  r"   r#   r3   r7   r-   rV   r.   rH   r   r   re   rb   r~   r  r8   r4   r2   <module>r     s  	 	 	 # " " " " "         				 # # # # # # . . . . . . . . $ $ $ $ $ $ $ $ Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q ? ? ? ? ? ? B B B B B B B B - - - - - - 5 5 5 5 5 5 5 5       + + + + + + + + 3 3 3 3 3 3       4++++++,,,,,,333333"&sE#s(O';"<  < < < <
  $C)=$=>  > > > > 	>+A	B	B PU+ + + + +4    &(!&	    >	 	 	 	   2 "'+ + + + +\2 2 2 2@` ` ` ` `GFO ` ` `F	JX JX JX JX JXM*@A JX JX JXZXN XN XN XN XN=8 XN XN XNvU U U U U3 U U U(4 4 4 4 44 4 4 4 4 4r4   