Repository URL to install this package:
Version:
0.1.5-1 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
setuptools
/
config
/
__pycache__
/
expand.cpython-311.pyc
|
---|
§ ãbgÎ= ã óD d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z mZ ddlmZ ddlmZ dd lmZmZ dd lmZmZmZmZmZmZmZ ddlmZmZ dd l!m"Z" ddl#m$Z$ ddl%m&Z& erddl'm(Z( ddl)m*Z* ed¦ « Z+ edd¬¦ « Z, G d d¦ « Z- dZd[dZ. dZd\d"Z/d]d%Z0d^d(Z1d_d*Z2 d`dad/Z3dbd3Z4dcd6Z5ddd8Z6 d`ded;Z7 d`dfd?Z8dddd@dgdCZ9dhdFZ:didIZ;djdLZ< dZdkdPZ=dldmdUZ> G dV dW¦ « Z? G dX dYee+e,f ¦ « Z@dS )nai 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. é )ÚannotationsN)ÚConfigParser)Úiglob)Ú ModuleSpecÚall_suffixes)Úchain)ÚPath)Ú ModuleTypeÚ TracebackType)Ú TYPE_CHECKINGÚAnyÚCallableÚIterableÚIteratorÚMappingÚTypeVaré )ÚStrPathÚ same_path)Úfind_package_path)ÚSetuptoolsWarning)ÚDistutilsOptionError)ÚSelf)ÚDistributionÚ_KÚ_V_coT)Ú covariantc ó* e Zd ZdZd dZdd ZddZdS )ÚStaticModulez>Proxy to a module object that avoids executing arbitrary code.ÚnameÚstrÚspecr c óà t j t j |j ¦ « ¦ « ¦ « }t | ¦ « t ¦ « ¦ « | ` d S ©N) ÚastÚparseÚpathlibr ÚoriginÚ read_bytesÚvarsÚupdateÚlocalsÚself)r- r r" Úmodules ú?/tmp/pip-target-vp8_xwat/lib/python/setuptools/config/expand.pyÚ__init__zStaticModule.__init__6 sP Ý7<¨¬Ñ4Ô4×?Ò?ÑAÔAÑBÔBÝT ×Ò&((Ñ#Ô#Ð#ØIIIó Úreturnú!Iterator[tuple[ast.AST, ast.AST]]c # óô K | j j D ]gt t j ¦ « rfdj D ¦ « E d {V 6t t j ¦ « rj rj j fV hd S )Nc 3 ó* K | ] }|j fV d S r$ )Úvalue)Ú.0ÚtargetÚ statements r/ ú <genexpr>z1StaticModule._find_assignments.<locals>.<genexpr>>