nOuS})g 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$fdZ%de$de de&fdZ' d$ddde ddfdZ( d%de ded fdZ) d&de$dee de&ded de$f dZ* 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_CHECKINGCallableDictMappingOptionalSetUnion ) FileErrorInvalidConfigError)SetuptoolsWarning )expand)_PREVIOUSLY_DEFINED_MissingDynamic)applyDistributionfilepathreturnc ddl m} t | d 5 }| | cd d d S # 1 swxY w Y d S )Nr )tomlirb)setuptools.externr openload)r r files /builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py load_filer! s '''''' h zz$ 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_FUNCTIONSgethasattrr% validateValidationErrorsummarynamestrip_loggerdebugdetails ValueError)r" r validatortrove_classifierexr0 errors r r. r. % s 222222 1556HII!455 -**,,, :!!&)))$ : : :6"*66 7==**MM'"""MM"*%%%<"'<<<E..W..//T9:s A C+%BC&&C+Fdistr c H t |d|| }t | || S )zeApply the configuration from a ``pyproject.toml`` file into an existing distribution object. T)read_configuration_apply)r; r ignore_option_errorsr" s r apply_configurationr@ : s* $0Dd K KF$))) Tc t j | } t j | st d| d t | pi }| di }| di }| di }|r|s|si S d|v rt d |r-t |d d | d|j n| dd ||d<