Repository URL to install this package:
Version:
0.1.2 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
setuptools
/
config
/
__pycache__
/
setupcfg.cpython-311.pyc
|
---|
§ Õg"d ã ó` d Z ddlmZ ddlZddlZddlZddlmZ ddlmZm Z ddl mZmZm Z mZmZmZmZmZmZmZmZmZ ddlmZ ddlmZmZ dd lmZ dd lm Z m!Z! ddl"m#Z# dd l$m%Z%m&Z& ddl'm(Z( ddl)m*Z* erddl+m,Z, ddl-m.Z. ededef f Z/ ede/f Z0 eded ¬¦ « Z1 dAdBdZ2dCdZ3 dDdEd&Z4dFd)Z5dGd+Z6 dHdId0Z7dJd5Z8 G d6 d7ee1 ¦ « Z9 G d8 d9e9d: ¦ « Z: G d; d<e9d ¦ « Z; G d= d>e(¦ « Z< G d? d@e(¦ « Z=dS )Ka< 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``. é )ÚannotationsN)Údefaultdict)ÚpartialÚwraps)Ú TYPE_CHECKINGÚAnyÚCallableÚDictÚGenericÚIterableÚIteratorÚListÚTupleÚTypeVarÚUnionÚcast)Údefault_environment)ÚInvalidRequirementÚRequirement)ÚSpecifierSet)ÚInvalidVersionÚVersioné )ÚStrPath)Ú FileErrorÚOptionError)ÚSetuptoolsDeprecationWarningé )Úexpand©ÚDistribution)ÚDistributionMetadataÚstrÚTarget)r! r" )ÚboundFÚfilepathr ÚreturnÚdictc ó 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! Úfind_config_filesÚ_applyÚconfiguration_to_dict)r&