Skip to content

Install init dependencies into a project .venv - #19

Merged
manish-wekan merged 1 commit into
developfrom
fix/init-install-venv
Sep 8, 2026
Merged

Install init dependencies into a project .venv#19
manish-wekan merged 1 commit into
developfrom
fix/init-install-venv

Conversation

@manish-wekan

@manish-wekan manish-wekan commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • nitrostack-py init answering Y/Enter now runs the existing install path instead of a no-op npm in missing src/widgets.
  • Creates <project>/.venv (or reuses it) and pip-installs requirements.txt / pyproject.toml into that interpreter, not the CLI’s Python.
  • nitrostack-py install uses the same .venv. Widget npm install still runs only if src/widgets exists.

Test plan

  • pytest tests/test_cli.py tests/test_cli_install.py
  • nitrostack-py init /tmp/venv-smoke --template python-starter → Y → .venv/bin/python exists and pip show nitrostack works inside it
  • Answering n still skips install

Y/Enter on init was a no-op for Python packages (npm-only, and templates have no src/widgets). Create .venv and pip-install into it so deps land in the generated project, not the CLI interpreter.
@manish-wekan
manish-wekan merged commit dd17013 into develop Sep 8, 2026
3 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.

1 participant