Skip to content

Add virtual environment support to dev.sh script for Python testsuite #917

@coderabbitai

Description

@coderabbitai

Problem

The current dev.sh script installs Python packages globally using pip3 install -r requirements.txt when running the integration testsuite. This pollutes the global Python environment, which can:

  • Conflict with system packages
  • Interfere with other Python projects
  • Not follow Python best practices for dependency isolation

Proposed Solution

Add functionality to the dev.sh script to:

  1. Create a Python virtual environment in the testsuite/ directory (e.g., testsuite/venv)
  2. Install packages within that virtual environment instead of globally
  3. Use the virtual environment to run the testsuite
  4. Provide an option to control this behavior (e.g., --use-venv flag)

Additional Context

This would improve the development experience and follow Python best practices for dependency management.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions