add standalone exe to generate vivenvs for shim

This commit is contained in:
Daylin Morgan 2023-06-12 13:49:33 -05:00
parent f0ec2f9013
commit 0ebdbec9cb
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -0,0 +1,9 @@
from viv import Env, ViVenv
SPECS = (["black"], ["pre-commit"], ["pdm"])
for spec in SPECS:
vivenv = ViVenv(spec)
if not vivenv.loaded or Env().viv_force:
vivenv.create()
vivenv.install_pkgs()
vivenv.meta.write()