| 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
��eH@ � @ sf d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ ddlm
Z
ddlmZmZmZmZmZmZmZmZmZmZmZmZ ddlmZ dd lmZ dd
lmZ ddl m!Z"m#Z# dd
l$m%Z% er�ddl&m'Z' ddl(m)Z) ddl*m+Z+ e
j,Z-ed�Z.eddd�Z/G dd� d�Z0dOee1 ee# ee1 d�dd�Z2dPee1e3ee# f e1d�dd�Z4ee# ee# d�dd�Z5ee3e#f e1d�d d!�Z6e#e1d"�d#d$�Z7dQe1eee1e1f ee# d%�d&d'�Z8e1ee# ed(�d)d*�Z9ee1ed+�d,d-�Z:e1eee1e1f e#ee#ee1 e1f d.�d/d0�Z;dRe1eee1e1f ee# ed1�d2d3�Z<dSee1e1f eee1e1f ee# ee1ef d4�d5d6�Z=dddd7�eee1e1f ee# ee1 d8�d9d:�Z>e#e#e1d;�d<d=�Z?eeeee1e@f e1f e1d>�d?d@�ZAeBeBdA�dBdC�ZCdTeeDeBf ee# eee1ee1 f dD�dEdF�ZEdUe1ee1eBf dH�dIdJ�ZFG dKdL� dL�ZGG dMdN� dNee.e/f �ZHdS )Vai Utility functions to expand configuration directives or special values
(such glob patterns).
We can split the process of interpreting configuration files into 2 steps:
1. The parsing the file contents from strings to value objects
that can be understand by Python (for example a string with a comma
separated list of keywords into an actual Python list of strings).
2. The expansion (or post-processing) of these values according to the
semantics ``setuptools`` assign to them (for example a configuration field
with the ``file:`` directive should be expanded from a list of file paths to
a single string with the contents of those files concatenated)
This module focus on the second step, and therefore allow sharing the expansion
functions among several configuration file formats.
**PRIVATE MODULE**: API reserved for setuptools internal usage only.
� N)�iglob)�ConfigParser)�
ModuleSpec)�chain)�
TYPE_CHECKING�Callable�Dict�Iterable�Iterator�List�Mapping�Optional�Tuple�TypeVar�Union�cast)�Path)�
ModuleType)�DistutilsOptionError� )� same_path�StrPath)�SetuptoolsWarning)�Distribution)�ConfigDiscovery)�DistributionMetadata�_K�_VT)� covariantc @ sF e Zd ZdZeed�dd�Zeee j
e j
f d�dd�Zdd � Zd
S )�StaticModulez>Proxy to a module object that avoids executing arbitrary code.)�name�specc C s. t �t�|j��� �}t| ��t� � | ` d S �N)
�ast�parse�pathlibr �origin�
read_bytes�vars�update�locals�self)r+ r r! �module� r- �</usr/lib/python3.9/site-packages/setuptools/config/expand.py�__init__A s zStaticModule.__init__��returnc # sZ | j jD ]L� t� tj�r4� fdd�� jD �E d H qt� tj�r� jr� j� jfV qd S )Nc 3 s | ]}|� j fV qd S r"