fix(cli): pin simple_module_cli in scaffold dev deps so smpy plugins load - #147
Merged
antosubash merged 1 commit intoMay 13, 2026
Conversation
…load
Without simple_module_cli in the project venv, `uv run smpy` falls back to
the globally-installed `uv tool` copy, whose isolated venv can't see the
project's plugin entry points. As a result `smpy users create-admin`
(and every other module CLI plugin) failed "No such command" in fresh
scaffolds, contradicting what the Installation + Quickstart docs advertise.
Adding `simple_module_cli=={FRAMEWORK_VERSION}` to `_APP_PY_DEV_DEPS` means
`make install` installs smpy into the project venv, so `uv run smpy users
create-admin ...` resolves locally and discovers the entry points.
Closes #134.
Deploying simple-module-python with
|
| Latest commit: |
e58c428
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2b386b74.simple-module-python.pages.dev |
| Branch Preview URL: | https://feature-feat-smpy-users-cli.simple-module-python.pages.dev |
This was referenced May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #134 —
smpy users create-admin(and every other module CLI plugin) failedNo such commandin fresh scaffolds.simple_module_cliships thesmpyconsole script, but scaffolded hostpyproject.tomlnever depended on it. Souv run smpyfell through to the globally-installeduv toolcopy, whose isolated venv can't see the project's plugin entry points. The discovery code insimple_module_cli.pluginswas correctly wired — it was just iterating an empty group.simple_module_cli=={FRAMEWORK_VERSION}to_APP_PY_DEV_DEPSinframework/cli/simple_module_cli/app_project.py. Aftersmpy new myapp && make install, the project venv has its ownsmpyanduv run smpy users create-admin …works as advertised.test_sm_new_pins_simple_module_cli_as_host_dev_depasserts the scaffolded host pyproject pinssimple_module_cliso this can't silently drift back.End-to-end verified: scaffolded a fresh app, ran
uv sync --all-packages, thenuv run smpy users --help— now showscreate-admininstead ofNo such command 'users'.Note
Existing 0.0.12 scaffolds in the wild need either an upgrade or a manual
simple_module_clientry added to their host[dependency-groups].dev— worth a line in the 0.0.13 release notes.Test plan
uv run pytest framework/cli/tests/— 106 passeduv run ruff format --check framework/cli/+uv run ruff check framework/cli/— cleanuv run python scripts/check_file_size.py— 300-line cap OK/tmp/smpy-test-myappviasmpy new --yes, ranuv sync --all-packages, verifieduv run smpy users --helpshowscreate-admin