anki/pip/update.py
Damien Elmes 198639a095 update setuptools; remove header
So users don't need to manually exclude the header from the git commit
2020-12-21 13:44:29 +10:00

18 lines
272 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()