docs: preserve us-cpa workspace virtualenv on sync
This commit is contained in:
@@ -19,7 +19,7 @@ Install the skill into the OpenClaw workspace copy, not only in the repo checkou
|
||||
1. Sync the skill into the workspace:
|
||||
|
||||
```bash
|
||||
rsync -a --delete \
|
||||
rsync -a --delete --exclude '.venv' \
|
||||
~/.openclaw/workspace/projects/stef-openclaw-skills/skills/us-cpa/ \
|
||||
~/.openclaw/workspace/skills/us-cpa/
|
||||
```
|
||||
@@ -43,6 +43,8 @@ python3 -m pip install -e '.[dev]'
|
||||
|
||||
The wrapper now prefers `~/.openclaw/workspace/skills/us-cpa/.venv/bin/python` when present and falls back to `python3` otherwise.
|
||||
|
||||
Keep the `--exclude '.venv'` flag on future syncs, otherwise the workspace virtualenv will be deleted by `rsync --delete`.
|
||||
|
||||
## Run
|
||||
|
||||
Installed entry point:
|
||||
|
||||
@@ -52,11 +52,13 @@ class UsCpaCliSmokeTests(unittest.TestCase):
|
||||
self.assertIn(".venv/bin/python", readme)
|
||||
self.assertIn("python3 -m ensurepip --upgrade", readme)
|
||||
self.assertIn("python3 -m pip install --upgrade pip setuptools wheel", readme)
|
||||
self.assertIn("--exclude '.venv'", readme)
|
||||
self.assertNotIn("/Users/stefano/", readme)
|
||||
self.assertIn("OpenClaw installation", operator_doc)
|
||||
self.assertIn("rsync -a --delete", operator_doc)
|
||||
self.assertIn("python3 -m ensurepip --upgrade", operator_doc)
|
||||
self.assertIn("python3 -m pip install --upgrade pip setuptools wheel", operator_doc)
|
||||
self.assertIn("--exclude '.venv'", operator_doc)
|
||||
self.assertIn("~/", operator_doc)
|
||||
self.assertNotIn("/Users/stefano/", operator_doc)
|
||||
self.assertIn("~/.openclaw/workspace/skills/us-cpa/scripts/us-cpa", skill_doc)
|
||||
|
||||
Reference in New Issue
Block a user