Skip to content

Commit

Permalink
fiddling with poetry export, updating py deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarsoo committed Jul 20, 2024
1 parent 0d52559 commit 38c2e5e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
10 changes: 9 additions & 1 deletion admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,16 @@ def export_filtered_dependencies(self):
# filtered = [i[:-2] for i in filtered] # get rid of space and slash at end of line
filtered = [i.split(';')[0] for i in depend]

final_filtered = []
for f in filtered:
if f.count('@') == 2:
final_filtered.append(f[:f.rindex('@') + 1] + "master")
else:
final_filtered.append(f)


with open('requirements.txt', 'w') as f:
f.write("\n".join(filtered))
f.write("\n".join(final_filtered))

# FRONT-END

Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38c2e5e

Please sign in to comment.