File: //opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/__pycache__/discovery.cpython-311.pyc
�
If�R � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z m
Z
mZmZm
Z
mZmZmZ ddlZddlmZ dd lmZ dd
lmZ ee Zej j Ze rddlmZ ded
e fd�Z! 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� de&� � Z(deded
e
e fd�Z) G d � d!� � Z*d"e
e d
e
e fd#�Z+d"e
e d
e
e fd$�Z,d"e
e d%eeef d&ed
ee fd'�Z-d(ed%eeef d&ed
efd)�Z.d"e
e d*ed
e
eef fd+�Z/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
� N��fnmatchcase)�glob)�Path)�
TYPE_CHECKING�Dict�Iterable�Iterator�List�Mapping�Optional�Tuple� )�StrPath)�log)�convert_path)�Distribution�path�returnc �d � t j � | � � � � � S �N)�osr �basename�isidentifier)r s �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/discovery.py�_valid_namer F s$ � �
�7���D�!�!�.�.�0�0�0� c �>