simple-module-cli 0.0.48__tar.gz → 0.0.50__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/PKG-INFO +2 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/README.md +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/pyproject.toml +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/cli.py +21 -20
- simple_module_cli-0.0.50/simple_module_cli/commands/__init__.py +1 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/add_cmd.py +4 -4
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/dev_cmd.py +3 -3
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/docker_cmd.py +1 -1
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/gen_cmd.py +32 -30
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/migrations_cmd.py +3 -3
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/module_cmd.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/new.py +22 -10
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/openapi_cmd.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/update_cmd.py +9 -4
- simple_module_cli-0.0.50/simple_module_cli/migrations/__init__.py +1 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/migrations}/_migration_support.py +4 -1
- simple_module_cli-0.0.50/simple_module_cli/scaffold/__init__.py +1 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/_app_project_manifests.py +4 -3
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/_lint_tooling.py +1 -1
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/_local_env.py +1 -1
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/_templating.py +1 -1
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/app_project.py +9 -9
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/docker_assets.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/recipes.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/scaffolding.py +7 -7
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/wizard.py +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-cli/SKILL.md +27 -7
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-conventions/SKILL.md +32 -9
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-creating/SKILL.md +3 -3
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-database/SKILL.md +3 -3
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-doctor/SKILL.md +15 -6
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-inertia-pages/SKILL.md +4 -4
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-locales/SKILL.md +2 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-migrations/SKILL.md +10 -5
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-page-perf/SKILL.md +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-registries/SKILL.md +11 -11
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-testing/SKILL.md +1 -1
- simple_module_cli-0.0.50/simple_module_cli/sources/__init__.py +1 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/_add_install.py +7 -5
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/_add_sources.py +4 -4
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/_project_cli_check.py +3 -3
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/_version_check.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/catalog.py +18 -5
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/git_source.py +6 -1
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/git_versions.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/pins.py +2 -1
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/pypi.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/pyproject_edit.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/requirements.py +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/host-flat.Dockerfile +1 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/host.Dockerfile +1 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/Makefile +3 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/README.md.tpl +2 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/package.json.tpl +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/pages/Landing.tsx +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/vite.config.ts +1 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/vite.dev-url.ts +1 -3
- simple_module_cli-0.0.48/simple_module_cli/templates/host/main.py → simple_module_cli-0.0.50/simple_module_cli/templates/host/main.py.tpl +2 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/migrations/env.py +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/routes.py +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/core/constants.py.tpl +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/models.py.tpl +2 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/module.py.tpl +2 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/pages/i18n.generated.ts.tpl +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/web/deps.py.tpl +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/web/endpoints/api.py.tpl +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/web/endpoints/views.py.tpl +16 -4
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/_optional/settings/__PACKAGE__/core/settings.py.tpl +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/workspace/Makefile +3 -2
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/workspace/README.md.tpl +2 -2
- simple_module_cli-0.0.50/simple_module_cli/tooling/__init__.py +1 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/tooling}/_module_build.py +2 -2
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/tooling}/_module_host.py +1 -1
- simple_module_cli-0.0.50/simple_module_cli/updates/__init__.py +1 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/updates}/package_update.py +6 -49
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/updates}/package_update_deps.py +4 -4
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/updates}/package_update_git.py +12 -3
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/updates}/package_update_npm.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_add_cmd.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_docker_workers.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_migrations_new.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_new_migration_bootstrap.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_new_quiet_install.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_openapi_export.py +4 -2
- simple_module_cli-0.0.50/tests/commands/test_cli_openapi_gen_types.py +26 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_prepare_validation.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_skill_links.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_skill_page_audit.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_unified_update.py +5 -17
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_update_sources.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_dev.py +10 -10
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_generation.py +42 -19
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_module_cmd_e2e.py +4 -4
- simple_module_cli-0.0.50/tests/commands/test_module_cmd_verify.py +97 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_module_css_assets.py +17 -17
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_module_css_subdir_sources.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_module_npm_aliases.py +7 -7
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_module_pages_manifest.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_plugin_discovery.py +5 -5
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_skills_cmd.py +1 -1
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/tests/conftest.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/migrations}/test_cli_prepare_data_migrations.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/migrations}/test_no_framework_deps.py +4 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_case.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_alembic_ini.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_app_install_flow.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_docker_assets.py +6 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_docker_persistence_secrets.py +4 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_gen_types_scaffold.py +5 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_module_pages_keyed.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_new.py +5 -5
- simple_module_cli-0.0.50/tests/scaffold/test_cli_new_published_modules.py +30 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_new_regressions.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_new_scaffold_layout.py +10 -11
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_recipes.py +5 -5
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_scaffold_vite8.py +34 -5
- simple_module_cli-0.0.50/tests/scaffold/test_cli_scaffold_vite_ui_smoke.py +67 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_wizard.py +3 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_wizard_git.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_create_module_ci_skip.py +6 -6
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_env_helper.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_framework_repo_wiring.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_module_optional_js_packaging.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_portable_i18n.py +6 -6
- simple_module_cli-0.0.50/tests/scaffold/test_scaffold_api_equivalents.py +43 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffold_app_tsx_spa_links.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffold_host_import.py +2 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffold_lint_tooling.py +5 -5
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffold_module_defaults.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffold_optional_settings.py +4 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffold_rollback.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffolded_host_admin_overview.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffolded_host_setup_wizard.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffolding_area_layout.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffolding_framework_repo.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffolding_host.py +12 -12
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffolding_module.py +19 -19
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_scaffolding_module_js.py +6 -6
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_template_requires_framework.py +1 -1
- simple_module_cli-0.0.50/tests/scaffold/test_wheel_scaffold_regressions.py +132 -0
- simple_module_cli-0.0.50/tests/scaffold/vite_ui_optimize_smoke.mjs +28 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/sources}/test_cli_add_spec_parse.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/sources}/test_cli_add_workspace_member.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/sources}/test_cli_catalog.py +4 -4
- simple_module_cli-0.0.50/tests/sources/test_cli_catalog_depends_on.py +70 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/sources}/test_cli_git_scan.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/sources}/test_cli_project_cli_check.py +4 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/sources}/test_cli_pyproject_edit.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/sources}/test_cli_version_check.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/tooling}/test_build_packaging.py +2 -2
- simple_module_cli-0.0.48/tests/test_module_cmd_build.py → simple_module_cli-0.0.50/tests/tooling/test_module_build.py +9 -9
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/tooling}/test_module_css_build.py +1 -1
- simple_module_cli-0.0.50/tests/tooling/test_module_host.py +98 -0
- simple_module_cli-0.0.48/tests/test_cli_openapi_gen_types.py → simple_module_cli-0.0.50/tests/tooling/test_openapi_types.py +3 -21
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/tooling}/test_vite_plugin_package.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_package_update.py +5 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_package_update_groups.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_package_update_npm.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_package_update_pins.py +4 -4
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_package_update_release_order.py +2 -2
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_package_update_workspace_excludes.py +1 -1
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_update_cohort.py +3 -3
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/updates}/test_cli_update_release_policy.py +3 -3
- simple_module_cli-0.0.48/tests/test_cli_catalog_depends_on.py +0 -49
- simple_module_cli-0.0.48/tests/test_module_cmd_verify.py +0 -174
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/.gitignore +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/LICENSE +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/__init__.py +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/plugins.py +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/commands}/skills_cmd.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/migration_recipes/__init__.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/migration_recipes/mail_settings.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/migration_recipes/users_tokens.py +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/_env.py +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/case.py +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/scaffold}/framework_repo.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/README.md +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-page-perf/scripts/page_audit/__main__.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-page-perf/scripts/page_audit/audit_browser.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-page-perf/scripts/page_audit/audit_crawl.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-page-perf/scripts/page_audit/audit_report.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/skills/simple-module-page-perf/scripts/page_audit/audit_server.py +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/sources}/uv_workspace.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/Makefile.snippet +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/compose-base-postgres.yml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/compose-base-sqlite.yml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/compose-tasks-postgres.yml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/compose-tasks-sqlite.yml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/compose-worker.yml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/dockerignore +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/docker/worker.Dockerfile.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/.env.example +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/.gitignore +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/_optional/background_tasks/Makefile.snippet +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/_optional/background_tasks/run_worker.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/alembic.ini +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/app.tsx +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/main.tsx +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/module-assets.ts +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/pages/Error.tsx +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/pages.ts +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/styles.css +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/tsconfig.json +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/client_app/vite.i18n.ts +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/migrations/script.py.mako +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/migrations/versions/.gitkeep +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/pyproject.toml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/host/templates/index.html +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/.github/workflows/ci.yml +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/.github/workflows/publish.yml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/.gitignore +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/README.md.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/__init__.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/contracts/__init__.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/contracts/schemas.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/core/__init__.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/locales/en.json.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/pages/Browse.tsx.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/pages/Create.tsx.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/pages/Edit.tsx.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/pages/api.generated.ts.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/py.typed +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/web/__init__.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/web/endpoints/__init__.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/__PACKAGE__/web/service.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/_optional/framework_repo/LICENSE +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/_optional/framework_repo/README.md.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/_optional/framework_repo/pyproject.toml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/_optional/settings/__PACKAGE__/core/services.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/_optional/settings-hook.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/pyproject.toml.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/tests/conftest.py +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/tests/core/contracts/test___PACKAGE___schemas.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/tests/core/module/test___PACKAGE___module.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/module/tests/web/crud/test___PACKAGE___crud.py.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/workspace/.env.example +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/workspace/.gitignore +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/workspace/package.json.tpl +0 -0
- {simple_module_cli-0.0.48 → simple_module_cli-0.0.50}/simple_module_cli/templates/workspace/pyproject.toml.tpl +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/tooling}/_generation_cache.py +0 -0
- {simple_module_cli-0.0.48/simple_module_cli → simple_module_cli-0.0.50/simple_module_cli/tooling}/openapi_types.py +0 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/commands}/test_cli_new_git_module.py +0 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/migrations}/test_cli_prepare_data_postgres.py +0 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_asset_prerequisites.py +0 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_new_dest_tolerance.py +0 -0
- {simple_module_cli-0.0.48/tests → simple_module_cli-0.0.50/tests/scaffold}/test_cli_vite_port_env.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: simple_module_cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.50
|
|
4
4
|
Summary: Standalone scaffolder for the SimpleModule framework — `smpy new`, `smpy create-module`, plugin host.
|
|
5
5
|
Project-URL: Homepage, https://github.com/antosubash/simple_module_python
|
|
6
6
|
Project-URL: Repository, https://github.com/antosubash/simple_module_python
|
|
@@ -53,7 +53,7 @@ uv run smpy create-host bare-host # scaffold a bare host (no opiniona
|
|
|
53
53
|
Built-in commands: `uv run smpy new`, `uv run smpy create-host`, `uv run smpy create-module`, `uv run smpy update`, and `uv run smpy skills {list,add,update}`.
|
|
54
54
|
|
|
55
55
|
`uv run smpy update` handles PyPI and git pins, syncs lockfiles and generates the
|
|
56
|
-
frontend.
|
|
56
|
+
frontend. Creating a
|
|
57
57
|
module inside an app workspace also wires and installs it; then use
|
|
58
58
|
`uv run smpy migrations new <module> -m "init"`, review, `make migrate` and restart.
|
|
59
59
|
|
|
@@ -26,7 +26,7 @@ uv run smpy create-host bare-host # scaffold a bare host (no opiniona
|
|
|
26
26
|
Built-in commands: `uv run smpy new`, `uv run smpy create-host`, `uv run smpy create-module`, `uv run smpy update`, and `uv run smpy skills {list,add,update}`.
|
|
27
27
|
|
|
28
28
|
`uv run smpy update` handles PyPI and git pins, syncs lockfiles and generates the
|
|
29
|
-
frontend.
|
|
29
|
+
frontend. Creating a
|
|
30
30
|
module inside an app workspace also wires and installs it; then use
|
|
31
31
|
`uv run smpy migrations new <module> -m "init"`, review, `make migrate` and restart.
|
|
32
32
|
|
|
@@ -19,29 +19,31 @@ from typing import Annotated
|
|
|
19
19
|
|
|
20
20
|
import typer
|
|
21
21
|
|
|
22
|
-
from simple_module_cli import
|
|
23
|
-
from simple_module_cli.
|
|
22
|
+
from simple_module_cli.commands.add_cmd import add_module, run_add
|
|
23
|
+
from simple_module_cli.commands.dev_cmd import dev_command
|
|
24
|
+
from simple_module_cli.commands.docker_cmd import docker_app
|
|
25
|
+
from simple_module_cli.commands.gen_cmd import gen_command
|
|
26
|
+
from simple_module_cli.commands.migrations_cmd import migrations_app
|
|
27
|
+
from simple_module_cli.commands.module_cmd import module_app
|
|
28
|
+
from simple_module_cli.commands.new import new_project
|
|
29
|
+
from simple_module_cli.commands.openapi_cmd import openapi_app
|
|
30
|
+
from simple_module_cli.commands.plugins import discover_and_mount
|
|
31
|
+
from simple_module_cli.commands.skills_cmd import app as skills_app
|
|
32
|
+
from simple_module_cli.commands.update_cmd import update_modules
|
|
33
|
+
from simple_module_cli.scaffold.case import to_kebab_case
|
|
34
|
+
from simple_module_cli.scaffold.scaffolding import create_host as _create_host
|
|
35
|
+
from simple_module_cli.scaffold.scaffolding import create_module as _create_module
|
|
36
|
+
from simple_module_cli.scaffold.scaffolding import (
|
|
37
|
+
is_inside_existing_repo,
|
|
38
|
+
resolve_framework_version,
|
|
39
|
+
)
|
|
40
|
+
from simple_module_cli.sources import _add_install
|
|
41
|
+
from simple_module_cli.sources._project_cli_check import (
|
|
24
42
|
app_framework_pin,
|
|
25
43
|
running_cli,
|
|
26
44
|
warn_if_not_the_apps_cli,
|
|
27
45
|
)
|
|
28
|
-
from simple_module_cli.
|
|
29
|
-
from simple_module_cli.case import to_kebab_case
|
|
30
|
-
from simple_module_cli.dev_cmd import dev_command
|
|
31
|
-
from simple_module_cli.docker_cmd import docker_app
|
|
32
|
-
from simple_module_cli.gen_cmd import gen_command
|
|
33
|
-
from simple_module_cli.migrations_cmd import migrations_app
|
|
34
|
-
from simple_module_cli.module_cmd import module_app
|
|
35
|
-
from simple_module_cli.new import new_project
|
|
36
|
-
from simple_module_cli.openapi_cmd import openapi_app
|
|
37
|
-
from simple_module_cli.package_update import package_update
|
|
38
|
-
from simple_module_cli.plugins import discover_and_mount
|
|
39
|
-
from simple_module_cli.scaffolding import create_host as _create_host
|
|
40
|
-
from simple_module_cli.scaffolding import create_module as _create_module
|
|
41
|
-
from simple_module_cli.scaffolding import is_inside_existing_repo, resolve_framework_version
|
|
42
|
-
from simple_module_cli.skills_cmd import app as skills_app
|
|
43
|
-
from simple_module_cli.update_cmd import update_modules
|
|
44
|
-
from simple_module_cli.uv_workspace import find_workspace_root, is_workspace_member
|
|
46
|
+
from simple_module_cli.sources.uv_workspace import find_workspace_root, is_workspace_member
|
|
45
47
|
|
|
46
48
|
app = typer.Typer(
|
|
47
49
|
help="SimpleModule developer CLI.",
|
|
@@ -60,7 +62,6 @@ app.command("gen")(gen_command)
|
|
|
60
62
|
app.command("dev")(dev_command)
|
|
61
63
|
app.command("add")(add_module)
|
|
62
64
|
app.command("update")(update_modules)
|
|
63
|
-
app.command("package-update")(package_update)
|
|
64
65
|
app.add_typer(docker_app, name="docker")
|
|
65
66
|
app.add_typer(skills_app, name="skills")
|
|
66
67
|
app.add_typer(module_app, name="module")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""CLI commands area."""
|
|
@@ -19,14 +19,14 @@ from typing import Annotated
|
|
|
19
19
|
|
|
20
20
|
import typer
|
|
21
21
|
|
|
22
|
-
from simple_module_cli._add_install import (
|
|
22
|
+
from simple_module_cli.sources._add_install import (
|
|
23
23
|
ExecRunner,
|
|
24
24
|
_default_exec_runner,
|
|
25
25
|
_fail,
|
|
26
26
|
post_install,
|
|
27
27
|
)
|
|
28
|
-
from simple_module_cli._add_sources import _add_path, _add_pypi
|
|
29
|
-
from simple_module_cli.git_source import (
|
|
28
|
+
from simple_module_cli.sources._add_sources import _add_path, _add_pypi
|
|
29
|
+
from simple_module_cli.sources.git_source import (
|
|
30
30
|
FoundModule,
|
|
31
31
|
SpecError,
|
|
32
32
|
classify_ref,
|
|
@@ -35,7 +35,7 @@ from simple_module_cli.git_source import (
|
|
|
35
35
|
scan_modules,
|
|
36
36
|
shallow_clone,
|
|
37
37
|
)
|
|
38
|
-
from simple_module_cli.pyproject_edit import (
|
|
38
|
+
from simple_module_cli.sources.pyproject_edit import (
|
|
39
39
|
has_git_sources,
|
|
40
40
|
load_pyproject,
|
|
41
41
|
save_pyproject,
|
|
@@ -15,8 +15,8 @@ from typing import Annotated
|
|
|
15
15
|
|
|
16
16
|
import typer
|
|
17
17
|
|
|
18
|
-
from simple_module_cli.
|
|
19
|
-
from simple_module_cli.
|
|
18
|
+
from simple_module_cli.commands.gen_cmd import client_app_dir, run_generation
|
|
19
|
+
from simple_module_cli.migrations._migration_support import resolve_project_root
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
def check_port(port: int) -> None:
|
|
@@ -82,7 +82,7 @@ def stop_children(children: list[subprocess.Popen]) -> None:
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
def run_dev(root: Path, *, port: int = 8000, vite_port: int | None = None) -> int:
|
|
85
|
-
from simple_module_core.dotenv import load_dotenv_into_environ
|
|
85
|
+
from simple_module_core.settings.dotenv import load_dotenv_into_environ
|
|
86
86
|
|
|
87
87
|
root = root.resolve()
|
|
88
88
|
client = client_app_dir(root)
|
|
@@ -8,7 +8,7 @@ import typer
|
|
|
8
8
|
import yaml
|
|
9
9
|
from yaml.nodes import MappingNode, ScalarNode
|
|
10
10
|
|
|
11
|
-
from simple_module_cli.docker_assets import _read, _template_root
|
|
11
|
+
from simple_module_cli.scaffold.docker_assets import _read, _template_root
|
|
12
12
|
|
|
13
13
|
_GROUP = "docker"
|
|
14
14
|
_COMMAND = "add-worker"
|
|
@@ -8,8 +8,9 @@ from pathlib import Path
|
|
|
8
8
|
|
|
9
9
|
import typer
|
|
10
10
|
|
|
11
|
-
from simple_module_cli.
|
|
12
|
-
from simple_module_cli.
|
|
11
|
+
from simple_module_cli.migrations._migration_support import resolve_project_root
|
|
12
|
+
from simple_module_cli.tooling import _generation_cache
|
|
13
|
+
from simple_module_cli.tooling._generation_cache import GenerationCache, file_hashes, source_files
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
def client_app_dir(root: Path) -> Path:
|
|
@@ -38,40 +39,41 @@ def _sync_deps(client: Path, deps: dict[str, dict[str, str]]) -> None:
|
|
|
38
39
|
|
|
39
40
|
|
|
40
41
|
def run_generation(project_root: Path | None = None) -> list[str]:
|
|
41
|
-
from simple_module_core import get_module_package_name, select_auth_provider
|
|
42
|
-
from simple_module_core.dotenv import load_dotenv_into_environ
|
|
43
|
-
from simple_module_hosting.
|
|
44
|
-
from simple_module_hosting.
|
|
45
|
-
from simple_module_hosting.admin_surfaces import render_admin_surfaces
|
|
46
|
-
from simple_module_hosting.assets import (
|
|
42
|
+
from simple_module_core import discover_modules, get_module_package_name, select_auth_provider
|
|
43
|
+
from simple_module_core.settings.dotenv import load_dotenv_into_environ
|
|
44
|
+
from simple_module_hosting.frontend.admin_surfaces import render_admin_surfaces
|
|
45
|
+
from simple_module_hosting.frontend.assets import (
|
|
47
46
|
compute_module_assets,
|
|
48
47
|
framework_assets,
|
|
49
48
|
render_assets_json,
|
|
50
49
|
)
|
|
50
|
+
from simple_module_hosting.frontend.manifest import (
|
|
51
|
+
collect_module_js_deps,
|
|
52
|
+
write_module_pages_manifest,
|
|
53
|
+
)
|
|
51
54
|
from simple_module_hosting.host_cli import _declares_workspaces
|
|
52
|
-
from simple_module_hosting.
|
|
53
|
-
from simple_module_hosting.
|
|
55
|
+
from simple_module_hosting.i18n._i18n_modules import module_key_outputs
|
|
56
|
+
from simple_module_hosting.i18n._i18n_target import app_i18n_dir, resolve_i18n_types_dir
|
|
57
|
+
from simple_module_hosting.i18n.i18n_manifest import emit_frontend_types_for_modules
|
|
54
58
|
|
|
55
|
-
from simple_module_cli.
|
|
56
|
-
from simple_module_cli.
|
|
59
|
+
from simple_module_cli.commands import openapi_cmd
|
|
60
|
+
from simple_module_cli.commands.openapi_cmd import _build_app
|
|
61
|
+
from simple_module_cli.tooling import openapi_types
|
|
62
|
+
from simple_module_cli.tooling.openapi_types import generate, module_targets
|
|
57
63
|
|
|
58
64
|
root = (project_root or resolve_project_root()).resolve()
|
|
59
65
|
client = client_app_dir(root)
|
|
60
66
|
load_dotenv_into_environ(root / ".env")
|
|
61
67
|
settings, installed = _settings_and_modules()
|
|
62
68
|
enabled = settings.modules_enabled
|
|
63
|
-
active = (
|
|
64
|
-
installed
|
|
65
|
-
if enabled is None
|
|
66
|
-
else [m for m in installed if m.meta.name.lower() in {name.lower() for name in enabled}]
|
|
67
|
-
)
|
|
69
|
+
active = installed if enabled is None else discover_modules(enabled=enabled, strict=True)
|
|
68
70
|
modules = select_auth_provider(active, settings.auth_provider)
|
|
69
71
|
roots = [Path(str(importlib.resources.files(get_module_package_name(m)))) for m in installed]
|
|
70
72
|
hosting = Path(str(importlib.resources.files("simple_module_hosting")))
|
|
71
73
|
cache = GenerationCache(root / ".smpy/gen.json")
|
|
72
74
|
changed = []
|
|
73
75
|
# Code changes in the pipeline itself invalidate old cache formats and decisions.
|
|
74
|
-
version = file_hashes([Path(
|
|
76
|
+
version = file_hashes([Path(p) for p in (__file__, _generation_cache.__file__) if p])
|
|
75
77
|
|
|
76
78
|
def run(name, inputs, outputs, action):
|
|
77
79
|
if cache.run(name, lambda: {"version": version, "data": inputs()}, outputs, action):
|
|
@@ -96,10 +98,10 @@ def run_generation(project_root: Path | None = None) -> list[str]:
|
|
|
96
98
|
"locales": [settings.i18n_default_locale, settings.i18n_supported_locales],
|
|
97
99
|
"generator": file_hashes(
|
|
98
100
|
[
|
|
99
|
-
hosting / "i18n_manifest.py",
|
|
100
|
-
hosting / "_i18n_build.py",
|
|
101
|
-
hosting / "_i18n_target.py",
|
|
102
|
-
hosting / "_i18n_modules.py",
|
|
101
|
+
hosting / "i18n/i18n_manifest.py",
|
|
102
|
+
hosting / "i18n/_i18n_build.py",
|
|
103
|
+
hosting / "i18n/_i18n_target.py",
|
|
104
|
+
hosting / "i18n/_i18n_modules.py",
|
|
103
105
|
]
|
|
104
106
|
),
|
|
105
107
|
},
|
|
@@ -127,11 +129,12 @@ def run_generation(project_root: Path | None = None) -> list[str]:
|
|
|
127
129
|
"sources": sorted(str(p) for p in page_sources),
|
|
128
130
|
"generator": file_hashes(
|
|
129
131
|
[
|
|
130
|
-
hosting / "manifest.py",
|
|
131
|
-
hosting / "assets.py",
|
|
132
|
-
hosting / "
|
|
133
|
-
hosting / "
|
|
134
|
-
hosting / "
|
|
132
|
+
hosting / "frontend/manifest.py",
|
|
133
|
+
hosting / "frontend/assets.py",
|
|
134
|
+
hosting / "frontend/_asset_sources.py",
|
|
135
|
+
hosting / "frontend/page_globs.py",
|
|
136
|
+
hosting / "frontend/admin_surfaces.py",
|
|
137
|
+
hosting / "frontend/frontend_extensions.py",
|
|
135
138
|
]
|
|
136
139
|
),
|
|
137
140
|
},
|
|
@@ -156,7 +159,7 @@ def run_generation(project_root: Path | None = None) -> list[str]:
|
|
|
156
159
|
lambda: {
|
|
157
160
|
"dependencies": deps,
|
|
158
161
|
"manifests": file_hashes(manifests),
|
|
159
|
-
"generator": file_hashes([hosting / "host_cli.py", hosting / "manifest.py"]),
|
|
162
|
+
"generator": file_hashes([hosting / "host_cli.py", hosting / "frontend/manifest.py"]),
|
|
160
163
|
},
|
|
161
164
|
dep_files,
|
|
162
165
|
lambda: _sync_deps(client, deps),
|
|
@@ -177,9 +180,8 @@ def run_generation(project_root: Path | None = None) -> list[str]:
|
|
|
177
180
|
api_files += [
|
|
178
181
|
root / "pyproject.toml",
|
|
179
182
|
root / "uv.lock",
|
|
180
|
-
Path(__file__).with_name("openapi_cmd.py"),
|
|
181
|
-
Path(__file__).with_name("openapi_types.py"),
|
|
182
183
|
]
|
|
184
|
+
api_files += [Path(p) for p in (openapi_cmd.__file__, openapi_types.__file__) if p]
|
|
183
185
|
|
|
184
186
|
def api():
|
|
185
187
|
if targets:
|
|
@@ -10,14 +10,14 @@ from uuid import uuid4
|
|
|
10
10
|
|
|
11
11
|
import typer
|
|
12
12
|
|
|
13
|
-
from simple_module_cli.
|
|
14
|
-
from simple_module_cli._migration_support import (
|
|
13
|
+
from simple_module_cli.migrations._migration_support import (
|
|
15
14
|
NO_ALEMBIC_CONFIG,
|
|
16
15
|
data_upgrade_entry_points,
|
|
17
16
|
resolve_alembic_ini,
|
|
18
17
|
resolve_project_root,
|
|
19
18
|
)
|
|
20
|
-
from simple_module_cli.case import to_snake_case
|
|
19
|
+
from simple_module_cli.scaffold.case import to_snake_case
|
|
20
|
+
from simple_module_cli.sources._add_install import _default_exec_runner
|
|
21
21
|
|
|
22
22
|
migrations_app = typer.Typer(help="Create and prepare host-owned Alembic revisions.")
|
|
23
23
|
|
|
@@ -7,7 +7,7 @@ from pathlib import Path
|
|
|
7
7
|
|
|
8
8
|
import typer
|
|
9
9
|
|
|
10
|
-
from simple_module_cli._module_host import (
|
|
10
|
+
from simple_module_cli.tooling._module_host import (
|
|
11
11
|
ModuleInfo,
|
|
12
12
|
ensure_verify_host,
|
|
13
13
|
read_module_info,
|
|
@@ -79,6 +79,6 @@ def build_command(
|
|
|
79
79
|
),
|
|
80
80
|
) -> None:
|
|
81
81
|
"""Bundle <pkg>/assets_src/ into <pkg>/static/dist/ for static_mounts()."""
|
|
82
|
-
from simple_module_cli._module_build import run_build
|
|
82
|
+
from simple_module_cli.tooling._module_build import run_build
|
|
83
83
|
|
|
84
84
|
run_build(read_module_info(Path.cwd()), fresh=fresh)
|
|
@@ -11,14 +11,18 @@ from typing import Annotated
|
|
|
11
11
|
|
|
12
12
|
import typer
|
|
13
13
|
|
|
14
|
-
from simple_module_cli.
|
|
15
|
-
from simple_module_cli.
|
|
16
|
-
from simple_module_cli.
|
|
17
|
-
from simple_module_cli.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
from simple_module_cli.commands.add_cmd import run_add
|
|
15
|
+
from simple_module_cli.migrations._migration_support import NO_ALEMBIC_CONFIG, resolve_alembic_ini
|
|
16
|
+
from simple_module_cli.scaffold.app_project import create_app_project
|
|
17
|
+
from simple_module_cli.scaffold.case import (
|
|
18
|
+
InvalidScaffoldNameError,
|
|
19
|
+
to_kebab_case,
|
|
20
|
+
validate_scaffold_name,
|
|
21
|
+
)
|
|
22
|
+
from simple_module_cli.scaffold.wizard import run_wizard
|
|
23
|
+
from simple_module_cli.sources._version_check import warn_if_outdated
|
|
24
|
+
from simple_module_cli.sources.catalog import PRESETS, expand_deps
|
|
25
|
+
from simple_module_cli.sources.pins import resolve_framework_version
|
|
22
26
|
|
|
23
27
|
__all__ = ["new_project"]
|
|
24
28
|
|
|
@@ -144,6 +148,9 @@ def new_project(
|
|
|
144
148
|
typer.echo("Aborted.", err=True)
|
|
145
149
|
raise typer.Exit(code=1) from None
|
|
146
150
|
|
|
151
|
+
if tenancy_final:
|
|
152
|
+
resolved, _ = expand_deps([*resolved, "tenants"])
|
|
153
|
+
|
|
147
154
|
try:
|
|
148
155
|
host_dir, preserved = create_app_project(
|
|
149
156
|
target,
|
|
@@ -178,7 +185,11 @@ def new_project(
|
|
|
178
185
|
rel = path.relative_to(target) if path.is_relative_to(target) else path
|
|
179
186
|
typer.echo(f" {rel}")
|
|
180
187
|
typer.echo("\nGenerated secrets were written to .env (gitignored), not .env.example.")
|
|
181
|
-
manual_setup = [
|
|
188
|
+
manual_setup = [
|
|
189
|
+
"make install",
|
|
190
|
+
'uv run smpy migrations new initial -m "initial schema"',
|
|
191
|
+
"make migrate",
|
|
192
|
+
]
|
|
182
193
|
if no_install:
|
|
183
194
|
_echo_next_steps(target, manual_setup, resolved)
|
|
184
195
|
return
|
|
@@ -282,4 +293,5 @@ def _bootstrap_initial_migration(target: Path, host_dir: Path, alembic: list[str
|
|
|
282
293
|
versions_dir = host_dir / "migrations" / "versions"
|
|
283
294
|
if any(p.name != "__init__.py" for p in versions_dir.glob("*.py")):
|
|
284
295
|
return True
|
|
285
|
-
|
|
296
|
+
rev = [*alembic, "revision", "--autogenerate", "-m", "initial schema"]
|
|
297
|
+
return _run_quietly([*rev, "--branch-label", "initial"], target)
|
|
@@ -19,7 +19,7 @@ from typing import Annotated, Any
|
|
|
19
19
|
|
|
20
20
|
import typer
|
|
21
21
|
|
|
22
|
-
from simple_module_cli.openapi_types import (
|
|
22
|
+
from simple_module_cli.tooling.openapi_types import (
|
|
23
23
|
GenTypesError,
|
|
24
24
|
filter_operations,
|
|
25
25
|
generate,
|
|
@@ -43,7 +43,7 @@ def _project_root() -> Path:
|
|
|
43
43
|
def _build_app(project_root: Path) -> Any:
|
|
44
44
|
"""The host app, built in process; never serves a request."""
|
|
45
45
|
try:
|
|
46
|
-
from simple_module_core.dotenv import load_dotenv_into_environ
|
|
46
|
+
from simple_module_core.settings.dotenv import load_dotenv_into_environ
|
|
47
47
|
from simple_module_hosting import create_app, merge_host_settings
|
|
48
48
|
except ImportError:
|
|
49
49
|
typer.echo(
|
|
@@ -5,10 +5,15 @@ from typing import Annotated
|
|
|
5
5
|
|
|
6
6
|
import typer
|
|
7
7
|
|
|
8
|
-
from simple_module_cli._add_install import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
from simple_module_cli.sources._add_install import (
|
|
9
|
+
ExecRunner,
|
|
10
|
+
_default_exec_runner,
|
|
11
|
+
_fail,
|
|
12
|
+
sync_project,
|
|
13
|
+
)
|
|
14
|
+
from simple_module_cli.sources.pypi import Fetcher
|
|
15
|
+
from simple_module_cli.sources.uv_workspace import find_workspace_root, is_workspace_member
|
|
16
|
+
from simple_module_cli.updates.package_update import run_update as update_manifests
|
|
12
17
|
|
|
13
18
|
|
|
14
19
|
def run_update(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""CLI migrations area."""
|
|
@@ -22,7 +22,7 @@ def resolve_project_root(*, fallback: Path | None = None) -> Path:
|
|
|
22
22
|
except RuntimeError:
|
|
23
23
|
home = None
|
|
24
24
|
for depth, root in enumerate((cwd, *cwd.parents[:_PROJECT_WALK_LIMIT])):
|
|
25
|
-
if root
|
|
25
|
+
if root != cwd and (root == home or root.stat().st_mode & 0o002):
|
|
26
26
|
break
|
|
27
27
|
if any((root / marker).exists() for marker in _PROJECT_MARKERS):
|
|
28
28
|
return root
|
|
@@ -32,6 +32,7 @@ def resolve_project_root(*, fallback: Path | None = None) -> Path:
|
|
|
32
32
|
if (
|
|
33
33
|
root.name == "host"
|
|
34
34
|
and depth < _PROJECT_WALK_LIMIT
|
|
35
|
+
and root != home
|
|
35
36
|
and parent != home
|
|
36
37
|
and not parent.stat().st_mode & 0o002
|
|
37
38
|
and any(
|
|
@@ -45,6 +46,8 @@ def resolve_project_root(*, fallback: Path | None = None) -> Path:
|
|
|
45
46
|
return root
|
|
46
47
|
if package_root is None and (root / "pyproject.toml").is_file():
|
|
47
48
|
package_root = root
|
|
49
|
+
if root == home:
|
|
50
|
+
break
|
|
48
51
|
return package_root or fallback or cwd
|
|
49
52
|
|
|
50
53
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""CLI scaffold area."""
|
|
@@ -4,8 +4,8 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from collections.abc import Sequence
|
|
6
6
|
|
|
7
|
-
from simple_module_cli._lint_tooling import TY_REQUIREMENT
|
|
8
|
-
from simple_module_cli.scaffolding import resolve_framework_version
|
|
7
|
+
from simple_module_cli.scaffold._lint_tooling import TY_REQUIREMENT
|
|
8
|
+
from simple_module_cli.scaffold.scaffolding import resolve_framework_version
|
|
9
9
|
|
|
10
10
|
_FRAMEWORK_VERSION = resolve_framework_version()
|
|
11
11
|
|
|
@@ -49,7 +49,8 @@ _APP_NPM_DEV_DEPS = {
|
|
|
49
49
|
"@vitejs/plugin-react": "^6.1.1",
|
|
50
50
|
"tailwindcss": "^4.0.0",
|
|
51
51
|
"typescript": "^7.0.2",
|
|
52
|
-
|
|
52
|
+
# 8.4 needs @simple-module-py/ui without package self-imports (#1245).
|
|
53
|
+
"vite": "^8.4.0",
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
# `@tailwindcss/typography` (pulled in by @simple-module-py/ui) pins
|
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
# ty is pre-1.0 and renames rules between releases, so
|
|
6
6
|
# new apps get the range this repo is tested on, not the newest ty.
|
|
7
7
|
# ``test_scaffold_lint_tooling.py`` fails once ``uv.lock`` moves past it.
|
|
8
|
-
TY_REQUIREMENT = "ty>=0.0.
|
|
8
|
+
TY_REQUIREMENT = "ty>=0.0.107,<0.0.108"
|
|
9
9
|
|
|
10
10
|
# Apps turn ty's ``invalid-assignment`` off, so this ignore would be reported as
|
|
11
11
|
# unused there; only a module inside the framework repo, which checks the rule,
|
|
@@ -12,7 +12,7 @@ import secrets
|
|
|
12
12
|
from collections.abc import Iterable
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
|
|
15
|
-
from simple_module_cli._env import env_values, set_env_key
|
|
15
|
+
from simple_module_cli.scaffold._env import env_values, set_env_key
|
|
16
16
|
|
|
17
17
|
__all__ = ["add_postgres_password_placeholder", "comment_out_env_key", "write_local_env"]
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Package-data template engine shared by the scaffolders.
|
|
2
2
|
|
|
3
|
-
Extracted from :mod:`simple_module_cli.scaffolding` (which keeps the public
|
|
3
|
+
Extracted from :mod:`simple_module_cli.scaffold.scaffolding` (which keeps the public
|
|
4
4
|
``create_workspace`` / ``create_host`` / ``create_module`` entry points) so
|
|
5
5
|
each file has one job: this one renders template trees, that one decides what
|
|
6
6
|
to render.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Greenfield ``simple-module new`` scaffolding.
|
|
2
2
|
|
|
3
|
-
Wraps :func:`simple_module_cli.scaffolding.create_host` (and, in
|
|
3
|
+
Wraps :func:`simple_module_cli.scaffold.scaffolding.create_host` (and, in
|
|
4
4
|
workspace mode, :func:`create_workspace`) with the opinionated bits —
|
|
5
5
|
module-list resolution from the CLI catalog, secret generation, DB URL
|
|
6
6
|
selection, ``pyproject.toml`` / ``package.json`` rewriting, and
|
|
@@ -19,7 +19,7 @@ from collections.abc import Sequence
|
|
|
19
19
|
from pathlib import Path
|
|
20
20
|
from typing import Any
|
|
21
21
|
|
|
22
|
-
from simple_module_cli._app_project_manifests import (
|
|
22
|
+
from simple_module_cli.scaffold._app_project_manifests import (
|
|
23
23
|
_APP_NPM_DEPS,
|
|
24
24
|
_APP_NPM_DEV_DEPS,
|
|
25
25
|
_APP_NPM_OVERRIDES,
|
|
@@ -28,23 +28,23 @@ from simple_module_cli._app_project_manifests import (
|
|
|
28
28
|
_db_url,
|
|
29
29
|
_rewrite_pyproject,
|
|
30
30
|
)
|
|
31
|
-
from simple_module_cli._env import set_env_key
|
|
32
|
-
from simple_module_cli._local_env import (
|
|
31
|
+
from simple_module_cli.scaffold._env import set_env_key
|
|
32
|
+
from simple_module_cli.scaffold._local_env import (
|
|
33
33
|
add_postgres_password_placeholder,
|
|
34
34
|
comment_out_env_key,
|
|
35
35
|
write_local_env,
|
|
36
36
|
)
|
|
37
|
-
from simple_module_cli.case import to_kebab_case, to_pascal_case, to_snake_case
|
|
38
|
-
from simple_module_cli.
|
|
39
|
-
from simple_module_cli.
|
|
40
|
-
from simple_module_cli.
|
|
41
|
-
from simple_module_cli.scaffolding import (
|
|
37
|
+
from simple_module_cli.scaffold.case import to_kebab_case, to_pascal_case, to_snake_case
|
|
38
|
+
from simple_module_cli.scaffold.docker_assets import scaffold_docker_assets
|
|
39
|
+
from simple_module_cli.scaffold.recipes import RECIPES, ScaffoldCtx
|
|
40
|
+
from simple_module_cli.scaffold.scaffolding import (
|
|
42
41
|
SAFE_PRESERVED_NAMES,
|
|
43
42
|
_module_to_pypi_name,
|
|
44
43
|
create_host,
|
|
45
44
|
create_module,
|
|
46
45
|
create_workspace,
|
|
47
46
|
)
|
|
47
|
+
from simple_module_cli.sources.catalog import CATALOG, PRESETS, expand_deps
|
|
48
48
|
|
|
49
49
|
__all__ = ["create_app_project"]
|
|
50
50
|
|
|
@@ -19,8 +19,8 @@ import importlib.resources
|
|
|
19
19
|
import shutil
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
|
|
22
|
-
from simple_module_cli.case import to_snake_case
|
|
23
|
-
from simple_module_cli.recipes import ScaffoldCtx
|
|
22
|
+
from simple_module_cli.scaffold.case import to_snake_case
|
|
23
|
+
from simple_module_cli.scaffold.recipes import ScaffoldCtx
|
|
24
24
|
|
|
25
25
|
__all__ = ["scaffold_docker_assets"]
|
|
26
26
|
|
|
@@ -16,7 +16,7 @@ from dataclasses import dataclass
|
|
|
16
16
|
from pathlib import Path
|
|
17
17
|
from typing import Protocol
|
|
18
18
|
|
|
19
|
-
from simple_module_cli._env import set_env_key
|
|
19
|
+
from simple_module_cli.scaffold._env import set_env_key
|
|
20
20
|
|
|
21
21
|
__all__ = [
|
|
22
22
|
"RECIPES",
|
|
@@ -53,7 +53,7 @@ class BackgroundTasksRecipe:
|
|
|
53
53
|
|
|
54
54
|
The compose services (redis/worker/beat) and the shared app image come
|
|
55
55
|
from the default Docker assets every scaffold gets — see
|
|
56
|
-
:mod:`simple_module_cli.docker_assets`.
|
|
56
|
+
:mod:`simple_module_cli.scaffold.docker_assets`.
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
59
|
def apply(self, target: Path, ctx: ScaffoldCtx) -> None:
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
``simple_module_cli/templates/module/``.
|
|
10
10
|
|
|
11
11
|
The frontend pages manifest + per-module JS dep discovery live in
|
|
12
|
-
:mod:`simple_module_hosting.manifest` (those need module-discovery and
|
|
12
|
+
:mod:`simple_module_hosting.frontend.manifest` (those need module-discovery and
|
|
13
13
|
stay in hosting).
|
|
14
14
|
"""
|
|
15
15
|
|
|
@@ -21,20 +21,20 @@ from collections.abc import Sequence
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
from typing import TypeGuard
|
|
23
23
|
|
|
24
|
-
from simple_module_cli._lint_tooling import (
|
|
24
|
+
from simple_module_cli.scaffold._lint_tooling import (
|
|
25
25
|
MODEL_CONFIG_TY_IGNORE,
|
|
26
26
|
TY_REQUIREMENT,
|
|
27
27
|
)
|
|
28
28
|
|
|
29
29
|
# The template engine lives in _templating.py; the private names are imported
|
|
30
30
|
# here because long-standing tests monkeypatch them on this module.
|
|
31
|
-
from simple_module_cli._templating import (
|
|
31
|
+
from simple_module_cli.scaffold._templating import (
|
|
32
32
|
_PACKAGE_PATH_TOKEN,
|
|
33
33
|
_apply_template_files,
|
|
34
34
|
_require_empty_dest,
|
|
35
35
|
_resolve_template_root,
|
|
36
36
|
)
|
|
37
|
-
from simple_module_cli.case import (
|
|
37
|
+
from simple_module_cli.scaffold.case import (
|
|
38
38
|
to_kebab_case,
|
|
39
39
|
to_pascal_case,
|
|
40
40
|
to_singular,
|
|
@@ -44,7 +44,7 @@ from simple_module_cli.case import (
|
|
|
44
44
|
|
|
45
45
|
# Re-exported so the scaffolders and their long-standing callers keep importing
|
|
46
46
|
# version pinning from one place; the implementations live in pins.py.
|
|
47
|
-
from simple_module_cli.pins import pin_framework_deps, resolve_framework_version
|
|
47
|
+
from simple_module_cli.sources.pins import pin_framework_deps, resolve_framework_version
|
|
48
48
|
|
|
49
49
|
__all__ = [
|
|
50
50
|
"SAFE_PRESERVED_NAMES",
|
|
@@ -212,7 +212,7 @@ def create_module(
|
|
|
212
212
|
|
|
213
213
|
``framework_repo=True`` overlays workspace metadata, LICENSE and README
|
|
214
214
|
for ``make new-module`` and implies no ``.github/``. Wiring the repo's
|
|
215
|
-
pyproject files is :mod:`simple_module_cli.framework_repo`'s job.
|
|
215
|
+
pyproject files is :mod:`simple_module_cli.scaffold.framework_repo`'s job.
|
|
216
216
|
|
|
217
217
|
Every layout ships portable module-local translation keys (#958).
|
|
218
218
|
"""
|
|
@@ -236,7 +236,7 @@ def create_module(
|
|
|
236
236
|
),
|
|
237
237
|
"{{SETTINGS_FASTAPI_IMPORT}}": "from fastapi import FastAPI\n" if with_settings else "",
|
|
238
238
|
"{{SETTINGS_IMPORT}}": (
|
|
239
|
-
"from simple_module_core.module_settings import register_module_settings\n"
|
|
239
|
+
"from simple_module_core.settings.module_settings import register_module_settings\n"
|
|
240
240
|
if with_settings
|
|
241
241
|
else ""
|
|
242
242
|
),
|