Commit 380e609d authored by Jason R. Coombs's avatar Jason R. Coombs

Write requirements in a deterministic order.

parent 60beb22b
......@@ -359,7 +359,8 @@ def write_requirements(cmd, basename, filename):
dist = cmd.distribution
data = ['\n'.join(yield_lines(dist.install_requires or ()))]
extras_require = dist.extras_require or {}
for extra,reqs in extras_require.items():
for extra in sorted(extras_require):
reqs = extras_require[extra]
data.append('\n\n[%s]\n%s' % (extra, '\n'.join(yield_lines(reqs))))
cmd.write_or_delete_file("requirements", filename, ''.join(data))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment