관리-도구
편집 파일: extra_validations.cpython-312.pyc
� t��e� � �d � d Z ddlmZmZ ddlmZ ede�� Z G d� de� Zd ed efd�ZefZ 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). � )�Mapping�TypeVar� )�ValidationError�T)�boundc � � e Zd ZdZy)�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. N)�__name__� __module__�__qualname__�__doc__� � ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/extra_validations.pyr r s � �r r � pyproject�returnc � � | j di � }|j dg � }|D ]0 }||v s�d|� d�}|dz }d|� �}||| ddd|i}t |||d � � � | 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 # ...zPEP 621)�rule)�getr )r � project_tabler �field�msg�name�values r �validate_project_dynamicr s� � ��M�M�)�R�0�M���� �2�.�G�� S���M�!�<�U�G�6�J�C��E�E�C�"�5�'�*�D��M�%�0�%��9�g�V�E�0��e�T� �R�R� S� �r N) r �typingr r �error_reportingr r r r �EXTRA_VALIDATIONSr r r �<module>r"