| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/setuptools/config/__pycache__/ |
Upload File : |
a
��ed � @ s$ d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZ ddlmZ dd lmZmZ dd
lmZ ddlmZmZ ddl m!Z! dd
l"m#Z#m$Z$ ddl%m&Z& ddl'm(Z( e �rddl)m*Z* ddl+m,Z, ededef f Z-ede-f Z.eded d�Z/d<ee0d�dd�Z1dedd�dd�Z2d=deee e3ed d!�d"d#�Z4e/e5d$�d%d&�Z6ed e0d'�d(d)�Z7d>de.ed* d+�d,d-�Z8e5e5e9d.�d/d0�Z:G d1d2� d2e
e/ �Z;G d3d4� d4e;d5 �Z<G d6d7� d7e;d �Z=G d8d9� d9e&�Z>G d:d;� d;e&�Z?dS )?a<
Load setuptools configuration from ``setup.cfg`` files.
**API will be made private in the future**
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 ``configparser``.
� N)�defaultdict)�partial��wraps)�
TYPE_CHECKING�Callable�Any�Dict�Generic�Iterable�List�Optional�Set�Tuple�TypeVar�Union� )�StrPath)� FileError�OptionError)�default_environment)�InvalidRequirement�Requirement)�SpecifierSet)�InvalidVersion�Version)�SetuptoolsDeprecationWarning� )�expand)�DistributionMetadata��Distribution�str�Target)r! r )�boundF)�filepath�returnc C s8 ddl m} |� }|r|�� ng }t|| ||�}t|�S )a, Read given configuration file and returns options from it as a dict.
:param str|unicode filepath: Path to configuration file
to get options from.
:param bool find_others: Whether to search for other configuration files
which could be on in various places.
:param bool ignore_option_errors: Whether to silently ignore
options, values of which could not be resolved (e.g. due to exceptions
in directives such as file:, attr:, etc.).
If False exceptions are propagated as expected.
:rtype: dict
r r )�setuptools.distr! Zfind_config_files�_apply�configuration_to_dict)r% Zfind_others�ignore_option_errorsr! �dist� filenames�handlers� r. �>/usr/lib/python3.9/site-packages/setuptools/config/setupcfg.py�read_configuration9 s
r0 r! )r+ r% r&