Skip to content

Conversation

@Pijukatel
Copy link
Collaborator

Description

  • Add crawlee-cli option to skip project installation - skips Python packages installation and Playwright installation.
  • Remove manual value from package_manager crawlee-cli option

Issues

Remove `manual` value from package_manager option
@github-actions github-actions bot added this to the 118th sprint - Tooling team milestone Jul 8, 2025
@github-actions github-actions bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Jul 8, 2025
@Pijukatel Pijukatel requested a review from vdusek July 8, 2025 13:28
@Pijukatel Pijukatel added the enhancement New feature or request. label Jul 8, 2025
@Pijukatel Pijukatel requested a review from Copilot July 8, 2025 13:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a new option to control whether generated projects are automatically installed, updates templates and hooks to respect that option, and removes the now-unused manual package manager choice.

  • Introduce --install/--no-install flag to create command, with interactive prompting.
  • Wrap post-generation install steps in a Jinja conditional based on install_project.
  • Update tests and template defaults to include install_project.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/unit/test_cli.py Added assertions and inputs for install_project in unit tests.
tests/e2e/project_template/test_static_crawlers_templates.py Set install_project=False and remove accept_hooks override.
src/crawlee/project_template/hooks/post_gen_project.py Wrapped Poetry/UV and pip install steps in install_project checks.
src/crawlee/project_template/cookiecutter.json Dropped manual option and added install_project default.
src/crawlee/_cli.py Added install_project CLI option, prompt logic, and messaging.
Comments suppressed due to low confidence (1)

src/crawlee/_cli.py:160

  • [nitpick] Consider updating the project documentation (e.g., README or CLI reference) to include the new --install/--no-install option so users know about this feature.
    install_project: bool | None = typer.Option(

@Pijukatel Pijukatel marked this pull request as ready for review July 8, 2025 14:56
Copy link
Collaborator

@vdusek vdusek left a comment

Choose a reason for hiding this comment

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

LGTM, seems to be working as expected.

Although I don't like one more thing there, I opened a follow-up issue because it is not related to this change, see #1295.

@Pijukatel Pijukatel merged commit 4d5aef0 into master Jul 9, 2025
19 checks passed
@Pijukatel Pijukatel deleted the cli-install-environment branch July 9, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to crawlee cli to install the project or not

3 participants