
     f                     r    d Z ddlmZmZ ddlmZ  ede          Z G d de          Zd	ed
efdZefZ	dS )zThe purpose of this module is implement PEP 621 validations that are
difficult to express as a JSON Schema (or that are not supported by the current
JSON Schema library).
    )MappingTypeVar   )ValidationErrorT)boundc                       e Zd ZdZdS )RedefiningStaticFieldAsDynamiczAccording to PEP 621:

    Build back-ends MUST raise an error if the metadata specifies a field
    statically as well as being listed in dynamic.
    N)__name__
__module____qualname____doc__     z/var/www/api.educacionweb.es/myenv/lib/python3.11/site-packages/setuptools/config/_validate_pyproject/extra_validations.pyr
   r
      s           r   r
   	pyprojectreturnc                     |                      di           }|                     dg           }|D ]7}||v r1d| d}|dz  }d| }|||         ddd|i}t          |||d	
          8| S )Nprojectdynamicz(You cannot provide a value for `project.z` and z0list it under `project.dynamic` at the same timezdata.project.z...z # ...zPEP 621)rule)getr
   )r   project_tabler   fieldmsgnamevalues          r   validate_project_dynamicr      s    MM)R00M	2..G S SM!!JUJJJCEEC*5**DM%0%9gVE0eT	RRRR " r   N)
r   typingr   r   error_reportingr   r   r
   r   EXTRA_VALIDATIONSr   r   r   <module>r"      s    
 $ # # # # # # # , , , , , ,GCw    _    a     ./   r   