reqs: Comment out ignored dependencies
This commit is contained in:
parent
1a26c8c61f
commit
136cb19814
@ -9,6 +9,7 @@ glob2==0.4.1
|
|||||||
httpbin==0.4.1
|
httpbin==0.4.1
|
||||||
hypothesis==3.4.0
|
hypothesis==3.4.0
|
||||||
itsdangerous==0.24
|
itsdangerous==0.24
|
||||||
|
# Jinja2==2.8
|
||||||
Mako==1.0.4
|
Mako==1.0.4
|
||||||
MarkupSafe==0.23
|
MarkupSafe==0.23
|
||||||
parse==1.6.6
|
parse==1.6.6
|
||||||
|
@ -49,7 +49,7 @@ def convert_line(line, comments):
|
|||||||
ignored = comments.get('ignore', '').split(',')
|
ignored = comments.get('ignore', '').split(',')
|
||||||
|
|
||||||
if pkgname in ignored:
|
if pkgname in ignored:
|
||||||
return None
|
line = '# ' + line
|
||||||
|
|
||||||
if pkgname in comments:
|
if pkgname in comments:
|
||||||
line += ' # ' + comments[pkgname]
|
line += ' # ' + comments[pkgname]
|
||||||
@ -96,9 +96,7 @@ def main():
|
|||||||
f.write("# This file is automatically generated by "
|
f.write("# This file is automatically generated by "
|
||||||
"scripts/dev/recompile_requirements.py\n\n")
|
"scripts/dev/recompile_requirements.py\n\n")
|
||||||
for line in reqs.splitlines():
|
for line in reqs.splitlines():
|
||||||
converted = convert_line(line, comments)
|
f.write(convert_line(line, comments) + '\n')
|
||||||
if converted is not None:
|
|
||||||
f.write(converted + '\n')
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user