Repository URL to install this package:
|
Version:
0.1.3 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
setuptools
/
__pycache__
/
discovery.cpython-311.pyc
|
|---|
§
O>gÔR ã óÐ d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z ddl
mZ ddlm
Z
mZmZ ddlZd d
lmZ ddlmZ ddlmZ e
rdd
lmZ ej j Zd5dZ G d d¦ « Z G d d¦ « Z G d de¦ « Z G d de ¦ « Z! G d de¦ « Z" G d de!¦ « Z# G d d e"¦ « Z$d6d%Z% G d& d'¦ « Z&d7d)Z'd7d*Z(d8d/Z)d9d1Z*d:d4Z+dS );u_ Automatic discovery of Python modules and packages (for inclusion in the
distribution) and other config values.
For the purposes of this module, the following nomenclature is used:
- "src-layout": a directory representing a Python project that contains a "src"
folder. Everything under the "src" folder is meant to be included in the
distribution when packaging the project. Example::
.
├── tox.ini
├── pyproject.toml
└── src/
└── mypkg/
├── __init__.py
├── mymodule.py
└── my_data_file.txt
- "flat-layout": a Python project that does not use "src-layout" but instead
have a directory under the project root for each package::
.
├── tox.ini
├── pyproject.toml
└── mypkg/
├── __init__.py
├── mymodule.py
└── my_data_file.txt
- "single-module": a project that contains a single Python script direct under
the project root (no directory used)::
.
├── tox.ini
├── pyproject.toml
└── mymodule.py
é )ÚannotationsN)ÚIterator©Úfnmatchcase)Úglob)ÚPath)Ú
TYPE_CHECKINGÚIterableÚMappingé )ÚStrPath)Úlog)Úconvert_path)ÚDistributionÚpathr
ÚreturnÚboolc ód t j | ¦ « ¦ « S ©N)Úosr ÚbasenameÚisidentifier)r s ú;/tmp/pip-target-qlpkiub5/lib/python/setuptools/discovery.pyÚ_valid_namer ? s$ å
7×ÒDÑ!Ô!×.Ò.Ñ0Ô0Ð0ó c ó* e Zd ZdZddZddZdd Zd
S )
Ú_Filterz
Given a list of patterns, create a callable that will be true only if
the input matches at least one of the patterns.
ÚpatternsÚstrc óD t |¦ « | _ d S r )ÚdictÚfromkeysÚ _patterns)Úselfr s r Ú__init__z_Filter.__init__J s Ý xÑ0Ô0r Úitemr r c óD t fd| j D ¦ « ¦ « S )Nc 3 ó8 K | ]}t |¦ « V d S r r )Ú.0Úpatr&