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