Skip to content

Commit

Permalink
Fix ordering for requirements files PEP517
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdaly committed May 4, 2019
1 parent baa84b4 commit 69527e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-i https://pypi.org/simple
-e . --no-use-pep517
--no-use-pep517 -e .
arpeggio==1.9.0
attrs==19.1.0
parver==0.2.1
Expand Down
4 changes: 2 additions & 2 deletions tasks/develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def update_requirements(ctx):
out = []
for ln in contents:
ln = ln.strip()
if ln.startswith('-e .') and '--no-use-pep517' not in ln:
ln = '%s %s' % (ln, '--no-use-pep517')
if '-e .' in ln and '--no-use-pep517' not in ln:
ln = '%s %s' % ('--no-use-pep517', ln)
out.append(ln)
with open(r_file, 'w') as fout:
fout.write('\n'.join(out))
Expand Down

0 comments on commit 69527e6

Please sign in to comment.