Path: blob/main/test/lib/python3.9/site-packages/setuptools/__pycache__/discovery.cpython-39.pyc
4799 views
a
���b1Q � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
mZmZm
Z
mZmZmZmZ ddlZddlmZ dd lmZ eeejf Ze
egef Zee ZejjZ e r�dd
l!m"Z" eed�dd
�Z#G dd� d�Z$G dd� de$�Z%G dd� de%�Z&G dd� de$�Z'G dd� de&�Z(G dd� de'�Z)eeee d�dd�Z*G dd� d�Z+ee ee d�d d!�Z,ee ee d�d"d#�Z-ee eeef eee d$�d%d&�Z.eeeef eed'�d(d)�Z/ee eeeef d*�d+d,�Z0dS )-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)�Callable�Dict�Iterator�Iterable�List�Optional�Tuple�Union)�log)�convert_path)�Distribution)�path�returnc C s t j�| ��� S �N)�osr �basename�isidentifier)r � r �h/Users/keewenaw/Desktop/ethereum-wallet-cracker/test/lib/python3.9/site-packages/setuptools/discovery.py�_valid_name? s r c @ s� e Zd ZU dZdZeedf ed<