Support updating single Python dependency

This commit is contained in:
Damien Elmes 2022-06-03 12:57:31 +10:00
parent 5ae7a4e3c4
commit c4dbaa7970

View file

@ -17,10 +17,16 @@ cli.add_command(compile.cli, "compile")
print("Updating deps...")
os.chdir(os.getenv("BUILD_WORKING_DIRECTORY"))
if pkg := os.getenv("PACKAGE"):
upgrade_args = ["--upgrade-package", pkg]
else:
upgrade_args = ["--upgrade"]
sys.argv[1:] = [
"compile",
"--allow-unsafe",
"--upgrade",
*upgrade_args,
"--no-header",
"--strip-extras",
"--generate-hashes",