Python manifest finder that discovers Python manifest files under a directory tree.
When patterns are set (FR-006), file names are matched by regex in order; first match wins.
Parser for Python manifest files (requirements.txt, pyproject.toml, etc.).
Dispatches by manifest file name; returns empty graph for unknown types
(callers should only pass files found by the PythonManifestFinder).
Python manifest file names (FR-005). Overridden by regexes when set (FR-006).
setup.py is parsed via AST (see parser/setup_py.rs); dynamic/runtime deps
are not extracted.
Returns the project directory containing the manifest (parent of manifest_path).
FR-023 uses this as the install target for setup.py, pyproject.toml, and setup.cfg.
Parse pyproject.toml content into a list of packages (name, version).
Supports PEP 621 [project].dependencies and [project].optional-dependencies
and [tool.poetry.dependencies] for Poetry-style pyproject.toml.
Public for fuzzing (NFR-020).
Parse requirements.txt content into a list of packages (name, version).
Skips comments, empty lines, and directive lines (-r, -e, etc.).
Version: exact from ==, first version from >=/<=/~=, else "any".
Public for fuzzing (NFR-020).
Parse setup.cfg content into a list of packages (name, version).
Supports [options] install_requires and [options.extras_require].
Public for fuzzing (NFR-020).