File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/config/_validate_pyproject/__pycache__/extra_validations.cpython-310.pyc
Back
o ;j* � @ s� d Z ddlmZ ddlmZmZ ddlmZ eded�ZG dd � d e�Z G d d� de�Z ded efdd�Zded efdd�ZeefZ 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). � )�cleandoc)�Mapping�TypeVar� )�ValidationError�T)�boundc @ � e Zd ZdZeZdZdS )�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� r r �k/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/config/_validate_pyproject/extra_validations.pyr s �r c @ r )� IncludedDependencyGroupMustExistzDAn included dependency group must exist and must not be cyclic. z!https://peps.python.org/pep-0735/Nr r r r r r s r � pyproject�returnc C sl | � di �}|� dg �}|D ]%}||v r3td|� d�||| ddd|id|� �ttj�tjd�d d ��q| S )NZproject�dynamicz(You cannot provide a value for `project.z6` and list it under `project.dynamic` at the same timez...z # ...z data.project.��descriptionZseezPEP 621��message�value�nameZ definitionZrule)�getr r r r )r Z project_tabler �fieldr r r �validate_project_dynamic"