import Base_pyproject from './base_pyproject.js'; /** * Python provider for pyproject.toml files using PEP 621 format without a lock file. * Uses `pip install --dry-run --ignore-installed --report` to resolve the full dependency tree. * Acts as the fallback provider when no lock file (uv.lock/poetry.lock) is found. */ export default class Python_pip_pyproject extends Base_pyproject { /** @returns {string} */ _lockFileName(): string; /** @returns {string} */ _cmdName(): string; /** * Always returns true — pip provider is the fallback when no lock file is found. * @param {string} manifestDir * @param {{}} [opts={}] * @returns {boolean} */ validateLockFile(manifestDir: string, opts?: {}): boolean; /** * Get pip report output from env var override or by running pip. * @param {string} manifestDir - directory containing pyproject.toml * @param {{}} [opts={}] * @returns {string} pip report JSON string */ _getPipReportOutput(manifestDir: string, opts?: {}): string; /** * Parse pip report JSON and build dependency graph. * @param {string} reportJson - pip report JSON string * @returns {{directDeps: string[], graph: Map}} */ _parsePipReport(reportJson: string): { directDeps: string[]; graph: Map; }; /** * Check if a requires_dist entry is an extras-only dependency. * @param {string} req - e.g. "PySocks!=1.5.7,>=1.5.6; extra == \"socks\"" * @returns {boolean} */ _hasExtraMarker(req: string): boolean; /** * Extract package name from a requires_dist entry. * @param {string} req - e.g. "charset_normalizer<4,>=2" * @returns {string|null} */ _extractDepName(req: string): string | null; /** * Resolve dependencies using pip install --dry-run --report. * @param {string} manifestDir * @param {string} _workspaceDir - unused (pip resolves from manifest directory) * @param {object} parsed - parsed pyproject.toml * @param {{}} [opts={}] * @returns {Promise<{directDeps: string[], graph: Map}>} */ _getDependencyData(manifestDir: string, _workspaceDir: string, parsed: object, opts?: {}): Promise<{ directDeps: string[]; graph: Map; }>; _findEggInfoDirs(dir: any): string[]; _cleanupEggInfo(dir: any, existing: any): void; }