anki/python/update.py
Damien Elmes 70292f07a6 add hashes to most Python deps
pyqt still to do
2021-10-23 08:54:34 +10:00

30 lines
498 B
Python

# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import os
import sys
import click
from piptools.scripts import compile
@click.group()
def cli():
pass
cli.add_command(compile.cli, "compile")
print("Updating deps...")
os.chdir(os.getenv("BUILD_WORKING_DIRECTORY"))
sys.argv[1:] = [
"compile",
"--allow-unsafe",
"--upgrade",
"--no-header",
"--strip-extras",
"--generate-hashes"
]
cli()