docs: use python3 pip bootstrap for us-cpa install
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
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]'
|
||||
us-cpa --help
|
||||
```
|
||||
|
||||
@@ -36,8 +37,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. Verify the installed workspace wrapper:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user