File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/config/__pycache__/pyprojecttoml.cpython-310.pyc
Back
o �h�G � @ sr d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ddl mZmZmZ d d lmZ d dlmZmZ d dlmZ d dlmZ d dlmZmZmZ erdddl m!Z! ddl"m#Z# e�$e%�Z&d8dd�Z'd9dd�Z( d:d;d d!�Z) " d<d=d&d'�Z* d>d?d*d+�Z+G d,d-� d-�Z,d.d/� Z-ed@d0d1��Z.G d2d3� d3ej/�Z0G d4d5� d5e�Z1G d6d7� d7e�Z2dS )Aac 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 C sD ddl m} t| d�� }|�|�W d � S 1 sw Y d S )Nr )�tomllib�rb)�compat.py310r �open�load)r r �file� r �U/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py� load_file$ s $�r"