Skip to content

fix: remove invalid CLI entrypoint from pyproject.toml - #521

Merged
jariy17 merged 2 commits into
aws:mainfrom
citizen204:fix-364-remove-invalid-cli-entrypoint
Jun 24, 2026
Merged

fix: remove invalid CLI entrypoint from pyproject.toml#521
jariy17 merged 2 commits into
aws:mainfrom
citizen204:fix-364-remove-invalid-cli-entrypoint

Conversation

@citizen204

Copy link
Copy Markdown
Contributor

Summary

The [project.scripts] section in pyproject.toml declared a bedrock-agentcore CLI command pointing to bedrock_agentcore.cli:main, but no cli module exists in the package. Running the installed command failed immediately with:

ModuleNotFoundError: No module named 'bedrock_agentcore.cli'

This PR removes the invalid entrypoint. There is no CLI implementation in the source tree and no associated tests, so the declaration is simply incorrect.

Fixes #364

Changes

  • pyproject.toml: remove [project.scripts] section containing the broken bedrock-agentcore entrypoint

The [project.scripts] section referenced bedrock_agentcore.cli:main,
but no cli module exists in the package, causing ModuleNotFoundError
when running the installed bedrock-agentcore command.

Fixes aws#364

@jariy17 jariy17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix.

@codecov-commenter

codecov-commenter commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@56b215d). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #521   +/-   ##
=======================================
  Coverage        ?   89.39%           
=======================================
  Files           ?       98           
  Lines           ?     8575           
  Branches        ?     1271           
=======================================
  Hits            ?     7666           
  Misses          ?      585           
  Partials        ?      324           
Flag Coverage Δ
unittests 89.39% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jariy17
jariy17 enabled auto-merge (squash) June 24, 2026 15:16
@jariy17
jariy17 merged commit e937f9a into aws:main Jun 24, 2026
23 of 32 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.

bug: pyproject.toml defines an invalid CLI entrypoint

3 participants