PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
_pytest
"""Provides a function to report all internal modules for using freezing tools.""" import types from typing import Iterator from typing import List from typing import Union def freeze_includes() -> List[str]: """Return a list of module names used by pytest that should be included by cx_freeze.""" import _pytest result = list(_iter_all_modules(_pytest)) return result def _iter_all_modules( package: Union[str, types.ModuleType], prefix: str = "", ) -> Iterator[str]: """Iterate over the names of all modules that can be found in the given package, recursively. >>> import _pytest >>> list(_iter_all_modules(_pytest)) ['_pytest._argcomplete', '_pytest._code.code', ...] """ import os import pkgutil if isinstance(package, str): path = package else: # Type ignored because typeshed doesn't define ModuleType.__path__ # (only defined on packages). package_path = package.__path__ # type: ignore[attr-defined] path, prefix = package_path[0], package.__name__ + "." for _, name, is_package in pkgutil.iter_modules([path]): if is_package: for m in _iter_all_modules(os.path.join(path, name), prefix=name + "."): yield prefix + m else: yield prefix + name
[-] setupplan.py
[open]
[+]
assertion
[-] cacheprovider.py
[open]
[+]
..
[-] stash.py
[open]
[+]
__pycache__
[-] logging.py
[open]
[-] _version.py
[open]
[-] pytester.py
[open]
[-] outcomes.py
[open]
[+]
config
[-] warnings.py
[open]
[-] capture.py
[open]
[-] debugging.py
[open]
[-] nose.py
[open]
[+]
_py
[-] terminal.py
[open]
[-] compat.py
[open]
[-] fixtures.py
[open]
[-] skipping.py
[open]
[-] stepwise.py
[open]
[-] main.py
[open]
[-] helpconfig.py
[open]
[-] doctest.py
[open]
[-] setuponly.py
[open]
[-] pathlib.py
[open]
[-] hookspec.py
[open]
[-] freeze_support.py
[open]
[-] timing.py
[open]
[-] _argcomplete.py
[open]
[-] deprecated.py
[open]
[-] runner.py
[open]
[-] monkeypatch.py
[open]
[-] pytester_assertions.py
[open]
[-] reports.py
[open]
[-] threadexception.py
[open]
[-] scope.py
[open]
[-] recwarn.py
[open]
[-] pastebin.py
[open]
[-] __init__.py
[open]
[-] junitxml.py
[open]
[-] python.py
[open]
[-] nodes.py
[open]
[-] unraisableexception.py
[open]
[-] warning_types.py
[open]
[-] unittest.py
[open]
[-] python_api.py
[open]
[-] faulthandler.py
[open]
[-] legacypath.py
[open]
[-] tmpdir.py
[open]
[-] python_path.py
[open]
[+]
mark
[+]
_code
[+]
_io
[-] py.typed
[open]