diff --git a/requirements.py b/requirements.py index 5b3951c..31a28a2 100644 --- a/requirements.py +++ b/requirements.py @@ -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:]}')