OwlCyberSecurity - MANAGER
Edit File: pyprojecttoml.cpython-311.pyc
� � h�G � � � 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&d1d�Z'd2d�Z( d3d4d�Z) 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_CHECKING�Any�Callable� )�StrPath)� FileError�InvalidConfigError)�SetuptoolsWarning� )�expand)�_PREVIOUSLY_DEFINED�_MissingDynamic�apply)�Self��Distribution�filepathr �return�dictc � � ddl m} t | d� � 5 }|� |� � cd d d � � S # 1 swxY w Y d S )Nr )�tomllib�rb)�compat.py310r �open�load)r r �files �V/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/config/pyprojecttoml.py� load_filer# $ s� � �&�&�&�&�&�&� �h�� � � "���|�|�D�!�!�"� "� "� "� "� "� "� "� "� "� "� "���� "� "� "� "� "� "s �9�=� =�config�boolc �� � 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'