Switch virtual environment to env

This commit is contained in:
Tanner committed 2026-11-14 17:15:11 +00:00
1 parent cee0aa0bbd
commit cdb90730bd
3 files changed
+7 -8

No files matched your search

-1
View File
@@ -79,7 +79,6 @@ celerybeat-schedule
# Environments
.env
.venv
env/
venv/
ENV/
+4 -4
View File
@@ -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(
+3 -3
View File
@@ -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