Title: feat(forge-analyzer): pyproject.toml, requirements.txt, and lockfile dependency parsers · Issue #150 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-analyzer): pyproject.toml, requirements.txt, and lockfile dependency parsers · Issue #150 · elcode-id/elcode-forge
X Title: feat(forge-analyzer): pyproject.toml, requirements.txt, and lockfile dependency parsers · Issue #150 · elcode-id/elcode-forge
Description: Description Implement deterministic manifest and dependency parsing for Python ecosystems in crates/forge-analyzer/src/python_manifest.rs adhering to the zero-panic policy. Detailed Requirements Manifest Support: Standard PEP 621 pyproje...
Open Graph Description: Description Implement deterministic manifest and dependency parsing for Python ecosystems in crates/forge-analyzer/src/python_manifest.rs adhering to the zero-panic policy. Detailed Requirements Ma...
X Description: Description Implement deterministic manifest and dependency parsing for Python ecosystems in crates/forge-analyzer/src/python_manifest.rs adhering to the zero-panic policy. Detailed Requirements Ma...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/150
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-analyzer): pyproject.toml, requirements.txt, and lockfile dependency parsers","articleBody":"## Description\nImplement deterministic manifest and dependency parsing for Python ecosystems in `crates/forge-analyzer/src/python_manifest.rs` adhering to the zero-panic policy.\n\n## Detailed Requirements\n1. **Manifest Support:**\n - Standard PEP 621 `pyproject.toml` (`[project.dependencies]`, `[project.optional-dependencies]`).\n - Poetry configuration (`[tool.poetry.dependencies]`, `[tool.poetry.group.*.dependencies]`).\n - Standard `requirements.txt` (handling `-r`, `--index-url`, environment markers like `python_version >= '3.10'`, version specifiers `==`, `>=`, `~=`).\n2. **Lockfile Hygiene & Resolution:**\n - Detect and extract exact resolved versions from `uv.lock` and `poetry.lock`.\n - Populate `Dependency` structs in `forge-core::ir`:\n - `name`: normalized lowercased package name (e.g. `pydantic-core`).\n - `version_req`: declared version constraint.\n - `resolved_version`: resolved exact version from lockfile if available.\n - `ecosystem`: `\"pypi\"`.\n - `is_dev`: true for test/dev dependencies.\n - `is_direct`: true for root manifest entries.\n3. **Dependency Health Findings:**\n - Emit `deps/unpinned-version` for wildcard (`*`) or unbound constraints.\n - Emit `deps/duplicate-dependency` when the same package is defined multiple times.\n4. **Security & Boundary:**\n - Zero-panic: No `.unwrap()` or `.expect()`.\n - Safe path resolution and canonical path validation.\n\n## Verification\n- Unit test suite `crates/forge-analyzer/tests/python_manifest_test.rs` covering valid and malformed `pyproject.toml` and `requirements.txt` files.\n- Selective CI: Tier 1 (`cargo clippy -p forge-analyzer` & `cargo test -p forge-analyzer`).\n\nPart of #149\n","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-10-21T05:57:07Z","url":"https://github.com/elcode-id/elcode-forge/issues/150"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2cd064cb-ecb1-34a6-5f25-408719ce41ee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E67E:3ED092:780A45:A7393B:6B0596BF |
| html-safe-nonce | 2e541afc3748ebf63896da0e34c37bb1ef980a42ac4d32d409d13d1d2c6a6813 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjdFOjNFRDA5Mjo3ODBBNDU6QTczOTNCOjZCMDU5NkJGIiwidmlzaXRvcl9pZCI6IjYwNzM1MTQ1ODIyMTQwMjI4NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | be5030f28b8016abf5e5c354a9507924417a6b25ae4ee528d0345847ca43480b |
| hovercard-subject-tag | issue:5955193322 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/elcode-id/elcode-forge/150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/145c3395651063fab19e2d44084e677523bee1db9fcfd24ed46e9318fe7184b9/elcode-id/elcode-forge/issues/150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/145c3395651063fab19e2d44084e677523bee1db9fcfd24ed46e9318fe7184b9/elcode-id/elcode-forge/issues/150 |
| og:image:alt | Description Implement deterministic manifest and dependency parsing for Python ecosystems in crates/forge-analyzer/src/python_manifest.rs adhering to the zero-panic policy. Detailed Requirements Ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luksluki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| turbo-cache-control | no-preview |
| go-import | github.com/elcode-id/elcode-forge git https://github.com/elcode-id/elcode-forge.git |
| octolytics-dimension-user_id | 337957755 |
| octolytics-dimension-user_login | elcode-id |
| octolytics-dimension-repository_id | 1423983661 |
| octolytics-dimension-repository_nwo | elcode-id/elcode-forge |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1423983661 |
| octolytics-dimension-repository_network_root_nwo | elcode-id/elcode-forge |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width