10000 Merge pull request #38 from hwright/empty-requirements · bazel-contrib/rules_python@49a434b · GitHub
[go: up one dir, main page]

Skip to content

Commit 49a434b

Browse files
authored
Merge pull request #38 from hwright/empty-requirements
Handle empty requirements.txt
2 parents 33da846 + 9cec235 commit 49a434b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

rules_python/piptool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def requirement(name):
141141
name = name.replace("-", "_").lower()
142142
return _requirements[name]
143143
""".format(input=args.input,
144-
whl_libraries='\n'.join(map(whl_library, whls)),
144+
whl_libraries='\n'.join(map(whl_library, whls)) if whls else "pass",
145145
mappings=','.join([
146146
'"%s": "@%s//:pkg"' % (wheel.distribution().lower(), wheel.repository_name())
147147
for wheel in whls

tools/piptool.par

27 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
0