Portability: python/python3 note + cross-shell lab commands (#31,#32) (#62)

Co-authored-by: claude <claude@jpaul.io>
Co-committed-by: claude <claude@jpaul.io>
This commit was merged in pull request #62.
This commit is contained in:
2026-06-22 17:01:27 -04:00
committed by Claude (agent)
parent 90012ca711
commit c34052665f
4 changed files with 40 additions and 2 deletions
@@ -226,10 +226,14 @@ containerize and run the app you already have.
image (that keeps it lean; see *Where it breaks*):
```bash
docker run --rm -v "$PWD":/app -w /app python:3.12-slim \
docker run --rm -v "${PWD}:/app" -w /app python:3.12-slim \
python -m unittest
```
> **On Windows:** this step bind-mounts your code, so the host path matters. Run it from WSL (or
> Git Bash), or from PowerShell — `${PWD}` resolves correctly in each. The other `docker run`
> commands mount nothing of yours and are identical everywhere.
This is, in miniature, exactly what containerized CI does. If it passes here, it passes the same
way on any machine with the engine — your laptop's local Python version is now irrelevant.