Feature Request Draft
Title: Python Templates Should Include Standard Exclusions in rsync Tasks
Description:
The current Python project templates in the Torizon IDE Extension don’t include standard Python exclusions in rsync tasks by default. This causes unnecessary files like .venv, __pycache__, and .pyc files to be synced to the target device during debugging, which:
-
Significantly slows down deployment
-
Wastes bandwidth and storage
-
Can cause compatibility issues (e.g., venv from x86 host synced to ARM64 target)
Proposed Solution:
Update the default Python template’s rsync tasks (e.g., rsync-torizon-generic) to include standard Python exclusions:
json
"args": [
"-P",
"-av",
"--exclude=.venv",
"--exclude=**/__pycache__",
"--exclude=*.pyc",
"--exclude=.pytest_cache",
"--exclude=.tox",
"-e",
"ssh -p ${config:torizon_debug_ssh_port} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null",
"${workspaceFolder}/your-app",
"${config:torizon_run_as}@${config:torizon_ip}:${config:torizon_app_root}/"
]
This aligns with standard Python .gitignore practices and improves developer experience out-of-the-box.
Environment:
-
Torizon OS 7.3
-
Torizon IDE Extension (current stable/pre-release)
-
Python projects
You can submit this to:
- Toradex Community: https://community.toradex.com/ (Technical Support or Feature Requests category)