discovery.pyc
1 o 2 ���c?Q � @ s d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z m 3 Z 4 mZmZm Z mZmZmZmZmZ ddlZddlmZ ddlmZ eeejf Ze 5 egef Ze e Zejj Z!e rbdd l"m#Z# d 6 edefdd �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*dededee fdd�Z+G dd� d�Z,d ee dee fd!d"�Z-d ee dee fd#d$�Z.d ee d%eeef d&edee fd'd(�Z/d)ed%eeef d&edefd*d+�Z0d ee d,edeeef fd-d.�Z1dS )/u_ Automatic discovery of Python modules and packages (for inclusion in the 7 distribution) and other config values. 8 9 For the purposes of this module, the following nomenclature is used: 10 11 - "src-layout": a directory representing a Python project that contains a "src" 12 folder. Everything under the "src" folder is meant to be included in the 13 distribution when packaging the project. Example:: 14 15 . 16 ├── tox.ini 17 ├── pyproject.toml 18 └── src/ 19 └── mypkg/ 20 ├── __init__.py 21 ├── mymodule.py 22 └── my_data_file.txt 23 24 - "flat-layout": a Python project that does not use "src-layout" but instead 25 have a directory under the project root for each package:: 26 27 . 28 ├── tox.ini 29 ├── pyproject.toml 30 └── mypkg/ 31 ├── __init__.py 32 ├── mymodule.py 33 └── my_data_file.txt 34 35 - "single-module": a project that contains a single Python script direct under 36 the project root (no directory used):: 37 38 . 39 ├── tox.ini 40 ├── pyproject.toml 41 └── mymodule.py 42 43 � N��fnmatchcase)�glob)�Path) 44 � TYPE_CHECKING�Callable�Dict�Iterable�Iterator�List�Mapping�Optional�Tuple�Union)�log)�convert_path)�Distribution�path�returnc C s t j�| ��� S �N)�osr �basename�isidentifier)r � r ��C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\discovery.py�_valid_nameI s r c @ s� e Zd ZU dZdZeedf ed<