docs: use python3 pip bootstrap for us-cpa install

This commit is contained in:
Stefano Fiorini
2026-03-15 04:01:07 -05:00
parent 850e89d339
commit 31ed267027
3 changed files with 18 additions and 11 deletions

View File

@@ -7,8 +7,9 @@ Standalone Python CLI package for the `us-cpa` skill.
From `skills/us-cpa/`:
```bash
python -m pip install --upgrade pip setuptools wheel
pip install -e '.[dev]'
python3 -m ensurepip --upgrade
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -e '.[dev]'
```
## OpenClaw installation
@@ -29,8 +30,9 @@ rsync -a --delete \
cd ~/.openclaw/workspace/skills/us-cpa
python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
pip install -e '.[dev]'
python3 -m ensurepip --upgrade
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -e '.[dev]'
```
3. Run the workspace wrapper:

View File

@@ -37,7 +37,8 @@ class UsCpaCliSmokeTests(unittest.TestCase):
def test_readme_documents_install_and_script_usage(self) -> None:
readme = (SKILL_DIR / "README.md").read_text()
self.assertIn("pip install -e '.[dev]'", readme)
self.assertIn("python -m pip install --upgrade pip setuptools wheel", readme)
self.assertIn("python3 -m ensurepip --upgrade", readme)
self.assertIn("python3 -m pip install --upgrade pip setuptools wheel", readme)
self.assertIn("scripts/us-cpa", readme)
self.assertIn("python -m unittest", readme)
@@ -49,11 +50,13 @@ class UsCpaCliSmokeTests(unittest.TestCase):
self.assertIn("OpenClaw installation", readme)
self.assertIn("~/.openclaw/workspace/skills/us-cpa", readme)
self.assertIn(".venv/bin/python", readme)
self.assertIn("python -m pip install --upgrade pip setuptools wheel", readme)
self.assertIn("python3 -m ensurepip --upgrade", readme)
self.assertIn("python3 -m pip install --upgrade pip setuptools wheel", readme)
self.assertNotIn("/Users/stefano/", readme)
self.assertIn("OpenClaw installation", operator_doc)
self.assertIn("rsync -a --delete", operator_doc)
self.assertIn("python -m pip install --upgrade pip setuptools wheel", operator_doc)
self.assertIn("python3 -m ensurepip --upgrade", operator_doc)
self.assertIn("python3 -m pip install --upgrade pip setuptools wheel", operator_doc)
self.assertIn("~/", operator_doc)
self.assertNotIn("/Users/stefano/", operator_doc)
self.assertIn("~/.openclaw/workspace/skills/us-cpa/scripts/us-cpa", skill_doc)