Ë
    nûàgY  ã                   óp   — d Z ddlm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y)z«The 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).
é    )Úcleandoc)ÚMappingÚTypeVaré   )ÚValidationErrorÚT)Úboundc                   ó   — e Zd ZdZeZdZy)ÚRedefiningStaticFieldAsDynamicz˜According to PEP 621:

    Build back-ends MUST raise an error if the metadata specifies a field
    statically as well as being listed in dynamic.
    zMhttps://packaging.python.org/en/latest/specifications/pyproject-toml/#dynamicN)Ú__name__Ú
__module__Ú__qualname__Ú_DESCÚ__doc__Ú_URL© ó    úu/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/extra_validations.pyr   r      s   „ ð€Eð
 €Gð	"ñ 	r   r   Ú	pyprojectÚreturnc           
      óô   — | j                  di «      }|j                  dg «      }|D ]N  }||v sŒt        d|› d�|||   ddd|id|› �t        t        j                  «      t        j                  dœd	¬
«      ‚ | S )NÚprojectÚdynamicz(You cannot provide a value for `project.z6` and list it under `project.dynamic` at the same timez...z # ...zdata.project.)ÚdescriptionÚseezPEP 621)ÚmessageÚvalueÚnameÚ
definitionÚrule)Úgetr   r   r   r   )r   Úproject_tabler   Úfields       r   Úvalidate_project_dynamicr$      s­   € Ø—M‘M )¨RÓ0€MØ×Ñ 	¨2Ó.€Gàò ˆØ�MÒ!Ü0ØBÀ5À'ð JCð Cð ˜=¨Ñ/Ø˜8Ø˜wðð
 % U GÐ,ä#+Ô,J×,PÑ,PÓ#QÜ9×>Ñ>ñð ôð ðð$ Ðr   N)r   Úinspectr   Útypingr   r   Úerror_reportingr   r   r   r$   ÚEXTRA_VALIDATIONSr   r   r   ú<module>r)      sK   ðñõ
 ß #å ,áˆC�wÔ€ô
 _ô 
ð¨ð ¨aó ð2 .Ð/Ñ r   