anki/pip/update.py
2021-02-03 13:34:44 +10:00

19 lines
273 B
Python

import sys
import os
import click
from piptools.scripts import compile
@click.group()
def cli():
pass
cli.add_command(compile.cli, "compile")
print("Updating deps...")
os.chdir("pip")
sys.argv[1:] = ["compile", "--allow-unsafe", "--upgrade", "--no-header"]
cli()