Skip to content

Commit 25b39d6

Browse files
committed
use uv in Makefile
1 parent 4aa431a commit 25b39d6

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

Makefile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,21 @@ ifneq (,$(findstring xterm,${TERM}))
1212
NORMAL := $(shell tput -Txterm sgr0)
1313
endif
1414

15-
install:
15+
venv:
16+
uv venv -p 3.13.9 --allow-existing
17+
18+
install: venv
1619
@echo "${BOLD}${YELLOW}install:${NORMAL}"
17-
pipx install uv --force
18-
# @if [ ! -d "$(VENV_DIR)" ]; then \
19-
# python3.12 -m venv $(VENV_DIR); \
20-
# fi
21-
# @. $(VENV_DIR)/bin/activate; \
22-
uv sync --frozen --verbose
23-
@echo "To activate manually, run: ${BOLD}${YELLOW}source $(VENV_DIR)/bin/activate${NORMAL}"; \
20+
uv sync --frozen --all-extras --all-groups --verbose
2421

2522
build:
2623
@echo "${BOLD}${YELLOW}mkdocs build:${NORMAL}"
27-
${PYTHON} -m mkdocs build -s
24+
# ! mkdocs build needs to get tools folder as module
25+
uv run mkdocs build -s
2826

2927
run:
3028
@echo "${BOLD}${YELLOW}mkdocs serve:${NORMAL}"
31-
${PYTHON} -m mkdocs serve --dirty
29+
uv run mkdocs serve --dirty
3230

3331
update-venv:
3432
@echo "${BOLD}${YELLOW}update venv:${NORMAL}"

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ dev = [
2525
"ruff>=0.12.4",
2626
"ty>=0.0.1a15",
2727
]
28+
[build-system]
29+
requires = ["setuptools", "wheel"]
30+
build-backend = "setuptools.build_meta"
31+
32+
[tool.setuptools]
33+
packages = ["tools"]

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)