wjust/python/justfile
2025-11-22 21:48:11 -06:00

30 lines
508 B
Makefile

set working-directory := '..'
set export
set shell := ["bash", "-uc"]
venv:
#!/usr/bin/env bash
[ -d .venv ] || uv venv
[ -f requirements.txt ] && uv pip install -r requirements.txt
source .venv/bin/activate
clean:
rm -rf .venv
rm -rf **/*/__pycache__
rm -rf **/*/*.pyc
rm -rf **/*/*.pyo
install: venv
#!/usr/bin/env bash
uv pip install .
check: venv
#!/usr/bin/env bash
which python
ipython: venv
uv run ipython
install-uv:
curl -LsSf https://astral.sh/uv/install.sh | sh