17 lines
376 B
Plaintext
Raw Normal View History

2024-11-24 16:03:43 +00:00
#!/usr/bin/env python3
import pathlib
import os
import sys
if not pathlib.Path(".venv").exists():
os.system("python3 -m venv .venv")
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 .")