Skip to content

Commit a41baaf

Browse files
update makefile to use uv
1 parent b5b2af3 commit a41baaf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.PHONY: test setup miniwob lint stop-miniwob osworld
22

33
setup:
4-
@pip install -e .
5-
@playwright install chromium --with-deps
6-
@python -c 'import nltk; nltk.download("punkt_tab")'
4+
@uv sync --python 3.12
5+
@uv run playwright install chromium --with-deps
6+
@uv run python -c 'import nltk; nltk.download("punkt_tab")'
77

88
miniwob: stop-miniwob
99
@git clone https://github.com/Farama-Foundation/miniwob-plusplus.git || true
1010
@cd miniwob-plusplus && git checkout 7fd85d71a4b60325c6585396ec4f48377d049838
11-
@python -m http.server 8080 --directory miniwob-plusplus/miniwob/html & echo $$! > .miniwob-server.pid
11+
@uv run python -m http.server 8080 --directory miniwob-plusplus/miniwob/html & echo $$! > .miniwob-server.pid
1212
@sleep 3
1313
@echo "MiniWob server started on http://localhost:8080"
1414

@@ -22,14 +22,14 @@ stop-miniwob:
2222
@echo "MiniWob server stopped"
2323

2424
run-tests:
25-
@MINIWOB_URL="http://localhost:8080/miniwob/" pytest -n 5 --durations=10 -m 'not pricy' tests/
25+
@MINIWOB_URL="http://localhost:8080/miniwob/" uv run pytest -n 5 --durations=10 -m 'not pricy' tests/
2626
@echo "Tests completed"
2727

2828
test: setup miniwob check-miniwob run-tests stop-miniwob
2929

3030
lint: setup
31-
@black src/ --check --diff
32-
@darglint -v 2 -z short src/
31+
@uv run black src/ --check --diff
32+
@uv run darglint -v 2 -z short src/
3333

3434
osworld:
3535
@echo "Setting up OSWorld..."
@@ -42,9 +42,9 @@ osworld:
4242
sed -i.bak 's/tqdm~=.*/tqdm/' requirements.txt && \
4343
sed -i.bak 's/pandas~=.*/pandas/' requirements.txt
4444
@echo "Installing OSWorld requirements..."
45-
@cd OSWorld && pip install -r requirements.txt
45+
@cd OSWorld && uv pip install -r requirements.txt
4646
@echo "Installing OSWorld in development mode..."
47-
@cd OSWorld && pip install -e .
47+
@cd OSWorld && uv pip install -e .
4848
@echo "OSWorld setup completed!"
4949
@echo "Next steps:"
5050
@echo "1. Configure your VM (VMware/VirtualBox) according to OSWorld documentation"

0 commit comments

Comments
 (0)