From cdb90730bd3446ba693ee2846609d1c0336a3eda Mon Sep 17 00:00:00 2001 From: Tanner Date: Sat, 14 Nov 2026 17:15:11 +0000 Subject: [PATCH] Switch virtual environment to `env` --- .gitignore | 1 - AGENTS.md | 8 ++++---- README.md | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 4839229..962984e 100644 --- a/.gitignore +++ b/.gitignore @@ -79,7 +79,6 @@ celerybeat-schedule # Environments .env -.venv env/ venv/ ENV/ diff --git a/AGENTS.md b/AGENTS.md index 7b45348..7d72bfd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ - Target **Minecraft 26.3 / protocol 777 only**. Do not add old-version compatibility. - Put protocol-777 changes in the main modules; do not create `*_26_3.py` copies. -- Entry point: `python mosfet.py` from this repository root; use `.venv` dependencies. +- Entry point: `python mosfet.py` from this repository root; use `env` dependencies. - Use the editable sibling `../pyCraft` checkout for shared protocol packet support. - Keep packet IDs and layouts aligned with `PROTOCOL_777.html` and the local 26.3 server; do not infer them from older protocol versions. - You can test bots on the Minecraft server running locally: `SERVER=127.0.0.1`. @@ -12,8 +12,8 @@ - Stop test bots and confirm no bot process remains afterward. - Don’t change existing job sequencing/behavior unless the request asks for it; port packet and data handling in place. - Check README and command gates before assuming a legacy command is available on 26.3. -- Run tests with `.venv/bin/python -m unittest discover -s tests -v`. -- Run a syntax check with `.venv/bin/python -m compileall -q mosfet tests` and `git diff --check`. +- Run tests with `env/bin/python -m unittest discover -s tests -v`. +- Run a syntax check with `env/bin/python -m compileall -q mosfet tests` and `git diff --check`. - Only add tests for protocol / packet code and world-state behavior, but not job-related tests. - Do not git commit changes until explicitly asked each time. - If changes span both repositories, commit bot and pyCraft changes separately. @@ -34,7 +34,7 @@ - For one-off live checks, start `mosfet.py` inside a Python heredoc so the test can inspect `app.g` and shut the bot down cleanly. Run from the repo root, keep `SERVER=127.0.0.1`. ```sh -SERVER=127.0.0.1 PLAYER_NAME=mosfet1 .venv/bin/python - <<'PY' +SERVER=127.0.0.1 PLAYER_NAME=mosfet1 env/bin/python - <<'PY' import importlib.util, os, threading, time spec = importlib.util.spec_from_file_location( diff --git a/README.md b/README.md index d1f244f..3060383 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ From the repository root, create and activate a virtual environment, then install the connection-mode dependencies: ``` -$ python3 -m venv .venv -$ source .venv/bin/activate -$ python -m pip install astar flask flask-cors munch watchdog -e ../pyCraft +$ uv venv env +$ source env/bin/activate +$ uv pip install --python env/bin/python astar flask flask-cors munch watchdog -e ../pyCraft ``` ## Running