#!/usr/bin/env python3 import pathlib import os import sys args = sys.argv[1:] args_string = " ".join(args) def install(): os.system("./.venv/bin/python -m pip install -e .") if not pathlib.Path(".venv").exists(): os.system("python3 -m venv .venv") install() if "install" in args: install() if "build" in sys.argv: os.system("./.venv/bin/python -m pip install build") os.system("./.venv/bin/python -m build .") os.system("./.venv/bin/python -m pip install black") os.system("./.venv/bin/python -m black .") if "run" in sys.argv: os.system("./.venv/bin/yura " + args_string)