Skip to content

Commit

Permalink
Fix requrements.py to handle extras
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab committed Sep 11, 2024
1 parent 22b83ca commit b0bf9a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@

if constraint == '*':
print(package)
else:
elif type(constraint) == str:
print(f'{package}=={constraint[1:]}')
else:
print(f'{package}[{constraint["extras"][0]}]=={constraint["version"][1:]}')

0 comments on commit b0bf9a4

Please sign in to comment.