reqs: Comment out ignored dependencies

This commit is contained in:
Florian Bruhin 2016-06-07 22:52:44 +02:00
parent 1a26c8c61f
commit 136cb19814
2 changed files with 3 additions and 4 deletions

View File

@ -9,6 +9,7 @@ glob2==0.4.1
httpbin==0.4.1
hypothesis==3.4.0
itsdangerous==0.24
# Jinja2==2.8
Mako==1.0.4
MarkupSafe==0.23
parse==1.6.6

View File

@ -49,7 +49,7 @@ def convert_line(line, comments):
ignored = comments.get('ignore', '').split(',')
if pkgname in ignored:
return None
line = '# ' + line
if pkgname in comments:
line += ' # ' + comments[pkgname]
@ -96,9 +96,7 @@ def main():
f.write("# This file is automatically generated by "
"scripts/dev/recompile_requirements.py\n\n")
for line in reqs.splitlines():
converted = convert_line(line, comments)
if converted is not None:
f.write(converted + '\n')
f.write(convert_line(line, comments) + '\n')
if __name__ == '__main__':