&;FſU d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ddl mZmZmZ d d lmZ d dlmZmZ d dlmZ d dlmZ d dlmZmZmZ erddl m!Z! ddl"m#Z# ej$ e% Z&d1dZ'd2dZ( d3d4dZ) d5d6d#Z* d7d8d&Z+ G d' d( Z,d) Z-ed9d* Z. G d+ d,ej/ Z0 G d- d.e Z1 G d/ d0e Z2dS ):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``. )annotationsN)Mapping)contextmanager)partial) TracebackType) TYPE_CHECKINGAnyCallable )StrPath) FileErrorInvalidConfigError)SetuptoolsWarning )expand)_PREVIOUSLY_DEFINED_MissingDynamicapply)SelfDistributionfilepathr returndictc ddl m} t | d 5 }| | cd d d S # 1 swxY w Y d S )Nr )tomllibrb)compat.py310r openload)r r files q/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py load_filer# $ s &&&&&& h "||D!!" " " " " " " " " " " " " " " " " "s 9= =configboolc 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_classifierexr3 errors r" r1 r1 + s 222222 1556HII!455 -**,,, :!!&)))$ : : :6"*66 7==**MM'"""MM"*%%%<"'<<<E..W..//T9:s A C+%BC&&C+Fdistr ignore_option_errorsc H t |d|| }t | || S )zeApply the configuration from a ``pyproject.toml`` file into an existing distribution object. T)read_configuration_apply)r> r r? r$ s r" apply_configurationrC @ s* $0Dd K KF$))) Tr Distribution | Nonedict[str, Any]c t j | } t j | st d| d t | pi }| di }| di }| di }|r|s|si S d| di v rt d|v rt d |r#|j | d|j n| dd ||d<