Skip to content

Commit b10c157

Browse files
authored
Improve requirements/compile.py (#360)
1 parent 5d3fb49 commit b10c157

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

requirements/compile.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,35 @@
88
os.chdir(Path(__file__).parent)
99
os.environ["CUSTOM_COMPILE_COMMAND"] = "requirements/compile.py"
1010
os.environ.pop("PIP_REQUIRE_VIRTUALENV")
11-
common_args = ["-m", "piptools", "compile", "--generate-hashes"] + sys.argv[1:]
11+
common_args = [
12+
"-m",
13+
"piptools",
14+
"compile",
15+
"--generate-hashes",
16+
"--allow-unsafe",
17+
] + sys.argv[1:]
1218
subprocess.run(
1319
["python3.6", *common_args, "-o", "py36.txt"],
1420
check=True,
21+
capture_output=True,
1522
)
1623
subprocess.run(
1724
["python3.7", *common_args, "-o", "py37.txt"],
1825
check=True,
26+
capture_output=True,
1927
)
2028
subprocess.run(
2129
["python3.8", *common_args, "-o", "py38.txt"],
2230
check=True,
31+
capture_output=True,
2332
)
2433
subprocess.run(
2534
["python3.9", *common_args, "-o", "py39.txt"],
2635
check=True,
36+
capture_output=True,
2737
)
2838
subprocess.run(
2939
["python3.10", *common_args, "-o", "py310.txt"],
3040
check=True,
41+
capture_output=True,
3142
)

0 commit comments

Comments
 (0)