Skip to content

Commit f3bbc15

Browse files
committed
Betterize requirements header
1 parent 8edd7bd commit f3bbc15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/fixate-requirements.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ def write_requirements(sources=None, fixed_requirements=None, output_file=None,
183183
data = '\n'.join(lines_to_write) + '\n'
184184
with open(output_file, 'w') as fp:
185185
fp.write('# Don\'t edit this file. It\'s generated automatically!\n')
186+
fp.write('# If you want to update global dependencies, modify fixed-requirements.txt\n')
187+
fp.write('# and then run \'make requirements\' to update requirements.txt for all\n')
188+
fp.write('# components.\n')
189+
fp.write('# If you want to update depdencies for a single component, modify the\n')
190+
fp.write('# in-requirements.txt for that component and then run \'make requirements\' to\n')
191+
fp.write('# update the component requirements.txt\n')
186192
fp.write(data)
187193

188194
print('Requirements written to: {0}'.format(output_file))

0 commit comments

Comments
 (0)