Skip to content

Detect src layout Python entry points - #97

Merged
study8677 merged 1 commit into
mainfrom
codex/src-layout-entrypoints
Jul 7, 2026
Merged

Detect src layout Python entry points#97
study8677 merged 1 commit into
mainfrom
codex/src-layout-entrypoints

Conversation

@Lling0000

Copy link
Copy Markdown
Collaborator

Summary

  • detect console script modules under both flat and src-layout Python package paths
  • add a regression test for pyproject.toml [project.scripts] pointing to src/ag_cli/cli.py

Why

The scanner used project.scripts entries to infer entry-point files, but only checked flat package paths such as ag_cli/cli.py. Modern Python projects commonly use src layout, including this repository's cli package. When scanning the cli subproject, the entry point was missed and the generated project report lacked the main CLI file.

Validation

  • python -m pytest engine/tests/test_hub_scanner.py -q
  • python -m pytest engine/tests/test_hub_pipeline.py::test_format_scan_report_includes_entry_points -q
  • Manual scan of the cli subproject returns src/ag_cli/cli.py in report.entry_points

@study8677
study8677 marked this pull request as ready for review July 7, 2026 08:32
@study8677
study8677 merged commit 33d47b5 into main Jul 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants