관리-도구
편집 파일: extra_validations.cpython-311.pyc
� ,�Re� � �r � d Z ddlmZmZ ddlmZ ede�� � Z G d� de� � Zd ed efd�ZefZ dS ) 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 ZdZdS )�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-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/config/_validate_pyproject/extra_validations.pyr r s � � � � � �� � � r r � pyproject�returnc �� � | � di � � }|� dg � � }|D ]7}||v r1d|� d�}|dz }d|� �}||| ddd|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 # ...zPEP 621)�rule)�getr )r � project_tabler �field�msg�name�values r �validate_project_dynamicr s� � ��M�M�)�R�0�0�M���� �2�.�.�G�� S� S���M�!�!�J�U�J�J�J�C��E�E�C�*�5�*�*�D��M�%�0�%��9�g�V�E�0��e�T� �R�R�R�R� "� �r N) r �typingr r �error_reportingr r r r �EXTRA_VALIDATIONSr r r �<module>r"