관리-도구
편집 파일: pyprojecttoml.cpython-311.pyc
� N�Dg�C � � � d Z ddlZddlZddlmZ ddlmZ ddlmZm Z m Z mZmZm Z mZ ddlmZmZ ddlmZ d d lmZ d dlmZmZ d dlmZ erdd lmZ eeej f Z ej! e"� � Z#de de$fd�Z%de$de de&fd�Z' d$ddde ddfd�Z( d%de ded fd�Z) d&de$dee de&ded de$f d�Z* G d� d� � Z+d� Z,ede&fd�� � Z- G d � d!ej. � � Z/ G d"� d#e� � Z0dS )'ac Load setuptools configuration from ``pyproject.toml`` files. **PRIVATE MODULE**: API reserved for setuptools internal usage only. To read project metadata, consider using ``build.util.project_wheel_metadata`` (https://pypi.org/project/build/). For simple scenarios, you can also try parsing the file directly with the help of ``tomllib`` or ``tomli``. � N)�contextmanager)�partial)� TYPE_CHECKING�Callable�Dict�Mapping�Optional�Set�Union� )� FileError�InvalidConfigError)�SetuptoolsWarning� )�expand)�_PREVIOUSLY_DEFINED�_MissingDynamic)�apply��Distribution�filepath�returnc � � ddl m} t | d� � 5 }|� |� � cd d d � � S # 1 swxY w Y d S )Nr )�tomli�rb)�setuptools.externr �open�load)r r �files �/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py� load_filer! s� � �'�'�'�'�'�'� �h�� � � ���z�z�$��� � � � � � � � � � � � ���� � � � � � s �9�=� =�configc �� � ddl m} |j � d� � }t |d� � r|� � � |� | � � S # |j $ r�}d|j � �}|j � d� � dk r9t � |� � t � |j � � d|j � d �}t |� d |� �� � d �d }~ww xY w)Nr )�_validate_pyprojectztrove-classifier�_disable_downloadzconfiguration error: �`�projectzinvalid pyproject.toml config: �.� )� r$ �FORMAT_FUNCTIONS�get�hasattrr% �validate�ValidationError�summary�name�strip�_logger�debug�details� ValueError)r"