anki/pip/update.py

19 lines
273 B
Python
Raw Normal View History

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